Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Concatenate PDF Files in VB 6

Status
Not open for further replies.

CrLf

Programmer
Jul 20, 2004
19
0
0
US
Hi all.

I have a VB6 app that creates several separate Crystal Reports (V10), each of which is being written immediately to PDF files (via CR) in a loop.

I now need to concatenate the PDF files in a specific order. Some of the PDF files can contain multiple pages.

Example:
Form1Page1.pdf + Form2Page2.pdf(can be pages 1-???) + Form3Page1.pdf = ONEPdfFile.pdf that contains ALL of them one right after another.

Anybody have blocks of code that can concatenate them? I really need to do this in code, and not buy somebody elses .DLL or .OCX since I am shipping this as part of a product I am marketing.

Something like:

Dim PDFFilesToConcatenate(5)
PDFFilesToConcatenate(1) = SomePDFfile.pdf
PDFFilesToConcatenate(2) = SomeOtherPDFFile.pdf
... etc ...
NewPDFFile.pdf = ConcatenatePDFFiles(PDFFilesToConcatenate)

Code would be in Function ConcatenatePDFFiles()

???

If it was easy, everybody would do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top