Creating an empty sheet in an existing PDF and adding a watermark
Posted on 2014-04-15
Hi experts. Want to know how to VFP9 programmatically insert a blank pdf sheet in an existing PDF file (as the first page) and put a watermark "Confidential stamp" on it. I already use that portion of code, but do not succeed to insert a blank sheet so far:
lo = createobject("AcroExch.App")
oNew = createobject("AcroExch.PDDoc")
oNew.InsertPages(-1,oNew,0,oNew.GetNumPages(),1) && this insert a copy of first page, not empty page...
Can you be of any help ?