New Forum | Previous | Next | (P-PDF) Developers
Topic: how to make a pdf unsavable?
Conf: (P-PDF) Developers, Msg: 116930
Date: 8/7/2004 08:20 AM
I am using VB to open a pdf file and add a few forms, then I save it in vb, but each time when I am tring to close adobe, adobe prompts me to save it, I don't want to see this message, does anyone know how to workaround it?
here is my code snippet:
Set AVDoc = gApp.GetActiveDoc
Set PDDoc = AVDoc.GetPDDoc
Set AVPage = AVDoc.GetAVPageView
Set FormApp = CreateObject("AFormAut.App")
Set AcroForm = FormApp.Fields
Set Field = AcroForm.Add("Watermark1", "text", lngPage, 35, 45, 85, 30)
Call PDDoc.save(1, strPath)
is there anything wrong with these codes?