Solved

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

Posted on 2014-07-24
3
2,170 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 101

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn how to successfully download and install the SARDU utility on Windows 8, without downloading adware.
Introduction to Processes

707 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