We have been using Excel (VBA) to create and add stamps on PDF (PDFCreator version 1.7.3) since many years.
The Excel function was : Set pdf = CreateObject("pdfforge.pdf.pdf"), and it worked perfectly.
We had to download the new version of PDFCreator Pro, and since then, the function doesn't work anymore. Is it replaced by another function? If so, which one? How to change the code?
Here a part of our actual code:
Sub STAMP()
Dim pdf As Object, pdfText As Object, pdfText1 As Object, pdfText2 As Object, pdfLine As Object, pdfLine2 As Object, pdfLine3 As Object, pdfLine4 As Object
Dim sNomDoc As String
Dim Num As Long
Dim REF As String
Dim nlot As String
Set pdf = CreateObject("pdfforge.pdf.pdf")
Set pdfText = CreateObject("pdfforge.pdf.pdfText")
Set pdfText1 = CreateObject("pdfforge.pdf.pdfText")
Set pdfText2 = CreateObject("pdfforge.pdf.pdfText")
Set pdfLine = CreateObject("pdfforge.pdf.pdfline")
Set pdfLine2 = CreateObject("pdfforge.pdf.pdfline")
Set pdfLine3 = CreateObject("pdfforge.pdf.pdfline")
Set pdfLine4 = CreateObject("pdfforge.pdf.pdfline")
Hi everyone,
I have just installed PDFCreator 4.0.4 and the vba example inside Testpage2PDF.docm still contain
Set pdf = CreateObject("pdfforge.pdf.pdf")
It doesn't work!!
The description of the new COM-interface is too complicated for me. Could someone give a working example ? I need to merge several PDF from Word.
Hi everyone,
I just found the solution. Perhaps it will help someone
Sub MergePdf()
'Dim Pdf As Object, Fichiers(2)
Dim pdfCreator As Object
Dim pdfCreatorQueue As Object
Dim pdfCreatorPrintJob As Object
Dim Fichiers(2)
Dim pj As printJob