Need to merge amyuni pdf files

If you are a VFP developer and have any questions about using our products from VFP here is the place to post them.
Post Reply
aqui
Posts: 5
Joined: Wed Nov 20 2002

Need to merge amyuni pdf files

Post by aqui »

I looked at Pdf = createobject(“CDINTF.CDINTF”)
But was unable to figure out how to use this...
Is there an example you can provide???
PLEASE...
Aqui
aqui
Posts: 5
Joined: Wed Nov 20 2002

found the answer

Post by aqui »

NewPdf1 = CreateObject("CDIntf.Document")
NewPdf2 = CreateObject("CDIntf.Document")


NewPdf1.Open( "c:\file1.pdf")
newpdf1.SetBookmark(1,"file1",0)
NewPdf1.Save( "c:\file1.pdf" )

NewPdf2.Open( "c:\file2.pdf")
newpdf2.SetBookmark(1,"file2",0)
NewPdf2.Save( "c:\file2.pdf" )

NewPdf1.Open( "c:\file1.pdf")
NewPdf1.Append( "c:\file2.pdf" )
NewPdf1.Save( "c:\file3.pdf" )

RELEASE newpdf1,newpdf2
Post Reply