Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Developers


Topic: Re: Merging and sorting two pdf files
Conf: (P-PDF) Developers, Msg: 32758
From: mletterman
Date: 1/14/2002 08:39 AM

Hi,

If you are searching the way to merge 2 pdf files into 1 pdf file with visual basic, I can help you if you are looking for that.

It looks a bit like this:(I copied the most important piece of the source, im not that good programmer yet, so I guess it can be programmed better, but it works at least:-)

Dim AcroPDDoc As CAcroPDDoc
Dim PDDoc As CAcroPDDoc

Set AcroPDDoc = CreateObject("AcroExch.PDDoc")
b = AcroPDDoc.Open(strDestinationDir & "\" & strCheckfilenaam)
Dim intAantal1 As Integer
intAantal1 = AcroPDDoc.GetNumPages

Set PDDoc = CreateObject("AcroExch.PDDoc")
b = PDDoc.Open(strPDFOutputDir & "\" & File2.List(0))
Dim intAantal2 As Integer
intAantal2 = PDDoc.GetNumPages

b = AcroPDDoc.InsertPages(intAantal1 - 1, PDDoc, 0, intAantal2, False)
b = AcroPDDoc.Save(1, strDestinationDir & "\" & strfilenaam)

Cya
Marco

PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: PDF eBooks-Library

If you are looking for a good store of PDF content, you could do a lot worse than visiting eBooks-Library.com...

September 03, 2009
Search Planet PDF
more searching options...







Download PDF Creator

PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

QuickPDF: The Unrivaled PDF Developer Toolkit

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

No upcoming events

PDF Store Categories