Solved

How can I merge to PDF Files in VB6 using PDFCreator COM

Posted on 2014-07-24
3
1,973 Views
Last Modified: 2014-07-25
How can I merge to PDF Files in VB6 using PDFCreator COM?

Here is the code I'm using.  PDFCreator prints files to a PDF so the second file overwrites the first and doesn't combine.  Is there a "Wait" I should put in to pause it in the printer spooler to combine?
With opt
           .AutosaveDirectory = exportpath$ & "\"
           .AutosaveFilename = "ALLSAM.pdf"
           .AutosaveFormat = 0 ' PDF
           .UseAutosave = 1
           .UseAutosaveDirectory = 1
           .AutosaveStartStandardProgram = 0
         
 End With
 Set PDFCreator1.cOptions = opt
 
 Set Printer = Printers(PrinterIndex("PDFCreator"))
        With Printer
            File1 = "C:\data\SAM1.pdf"
            File2 = "C:\data\SAM2.pdf"
            PDFCreator1.cPrintFile (File1)
            PDFCreator1.cPrintFile (File2)
            PDFCreator1.cCombineAll
        End With
        PDFCreator1.cPrinterStop = False

Open in new window

0
Comment
Question by:AndrewBanfer
3 Comments
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 40219864
In reading the manual it is a multiple step process to merge them.

FIrst step is to create a queue for the conversion jobs then you can merge them

Single file
http://www.pdfforge.org/pdfcreator/manual/simpleconversion

Merging files
http://www.pdfforge.org/pdfcreator/manual/multipleconversion

mlmcc
0
 

Author Closing Comment

by:AndrewBanfer
ID: 40219952
Thanks very much!  Very helpful!  

Have a great day!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
Viewers will learn how to use the Hootsuite Dashboard.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now