Merging PDF's with COM procedure

Hello Everyone,

I Have an Access(2007) application and need to merge 2 PDF's wich I managed very simply with the following code:

Public Sub PDFMerge(ByVal PDF1 As String, ByVal PDF2 As String, ByVal PDF_Dest As String) 'Fusionne deux Docs PDF

_ Dim Pdf As Object, Fichiers(1)_
_ Set Pdf = CreateObject("pdfforge.pdf.pdf")_
_ _
_ Fichiers(0) = PDF1_
_ Fichiers(1) = PDF2_
_ _
_ Pdf.MergePDFFiles_2 Fichiers, PDF_Dest, True_
_ _
_ Set Pdf = Nothing_

End Sub

Except that this works with the 1.7.3 version of PDF Creator which is far too old to manage the other tasks I require !!(I just got version 3.2.2)... And the codeline:

Set Pdf = CreateObject("pdfforge.pdf.pdf")

generates a mistake as the COM has been uninstalled when I put version 3.2.2

Is there a way to use the old COM from ver 1.7.3 together with the ver 3.2.2 or at least a simple code in VBA
to replace my Sub??

Thanks for help

Cem

Hi,

there is no way to use the old code together with the new version, but for a simple task like merging two documents, it shouldn't be much work to adapt it for the new version. You can find an example on how to merge files inside the COM samples folder which gets installed together with PDFCreator.

Best regards

Robin