New Forum | Previous | Next | (P-PDF) Developers
Topic: Sorting out AV and PD layers
Conf: (P-PDF) Developers, Msg: 59343
Date: 5/29/2002 05:38 PM
After some help here, I've started down the path of using buttons for adding images to existing PDFs. I'm still quite new to the Acrobat world and think I'm having trouble with specifics, particularly when and how to use PD documents vs. AV documents.
I have the document in question as a PDDoc object. In order to add a button, I believe I have to open that as an AVDoc. I try to do so using:
oAVDoc = CREATEOBJECT("AcroExch.AVDoc")
This is Visual FoxPro so the syntax is similar to but not the same as VB. It does successfully create an object.
QUESTION 1: Is this an AVDoc object that it should've created?
I get an OLE Unknown Name error when I try to then do:
oAVDoc.AVDocOpenFromPDDoc( oPDDoc )
(where oPDDoc is an existing PD Document object and VFP does not qualify the type of parameter being passed like VB and C++ do)
Actually, I get the same error with every AVDoc method I try.
Am I missing the general concept on when to switch between the AV and PD layers? Anyone see what I'm missing on how to get an AVDoc to work for me?
Thanks in advance,