These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Merge 2 PDF files with batch command or VB

Faisal
Registered: Aug 2 2007
Posts: 2

Hi every one,

1- Is there a batch command switch of acrodist.exe that I can use to merge two PDF files 1.pdf and 2.pdf ?

Like for exemple (in MS-DOS) : >acrodist.exe 1.pdf > 2.pdf /merge ??!!

2- Is there a solution to do that with VB ?

Like for exemple : Object.Merge("1.pdf","2.pdf") ?!!!

Thank you.
Faisal.
________________

lkassuba
ExpertTeam
Registered: Jun 28 2007
Posts: 3636
You can use Runfilex.ps to combine multiple PS into one PDF and Rindirex.txt to combine a set of PS files from a specific folder or directory in to one PDF via Distiller.

For more information on this capability check out the Adobe PDF Creation Settings documentation available at:
http://www.adobe.com/devnet/acrobat/pdfs/pdf_creation_settings.pdf

Lori Kassuba is an AUC Expert and Community Manager for AcrobatUsers.com.

tractionsoftware
Registered: May 3 2007
Posts: 27
Hi,

We have a PDF tool that can do exactly this for you, see: http://www.traction-software.co.uk/devappendpdf

example VB code:

Dim obj As AppendPDFLib.AppendPDFCom
Set obj = New AppendPDFLib.AppendPDFCom
GetAppendPDFFile = CStr(obj.GetAppendPDFFile("f1.pdf", "f2.pdf", "out.pdf"))

Lee.
Traction Software
http://www.traction-software.co.uk