Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Create PDF Form by Acrobat SDK (Plug - In)

0 views
Skip to first unread message

Aandi Inston

unread,
Jul 29, 2003, 5:31:36 AM7/29/03
to
Are you trying to create a form XObject or a form field?

Aandi Inston

trighetti

unread,
Jul 29, 2003, 5:09:40 AM7/29/03
to
I have to create a form object with some field by Acrobat plug in.
I found a SDK API for create a Form :PDEFormCreateFromCosObj.
I try to use it, but the plug-in give me an exception about wrong object dictionary!!!!
I don't know hoe this API work and then how I do to insert a Field in that form.
Can anybody help me??

Thanks.

trighetti

unread,
Jul 29, 2003, 6:00:30 AM7/29/03
to
I'm interested to both type of object.
Because I don't know very well the difference.

Thanks.

Aandi Inston

unread,
Jul 29, 2003, 6:25:40 AM7/29/03
to
>I'm interested to both type of object.
>Because I don't know very well the difference.

I think this is a big problem for you. You are using a method to
create a form XObject, but your words imply you are dealing with form
fields, which have no connection.

You must first understand which you need. The PDF Reference describes
both elements, and that is your next essential reading...

Aandi Inston

trighetti

unread,
Jul 29, 2003, 6:59:37 AM7/29/03
to
Ok thanks!!!
I have to develop a plug in that inserts a variable text into a pdf document.
Then I have to intercept that text to change its value.
The problem is that for this operation (to change the value) I have to do open the PDF document as a text file.
So, I have to develop a plug-in that makes a reference to that textobject (inserted o selected into pdf).
I saw that if I insert a Field (like a form) into a PDF document, I can also insert a name and description to that object. So when I save a document and open it with a text editor I can locate the object finding the its name.

thanks.

Aandi Inston

unread,
Jul 29, 2003, 7:17:11 AM7/29/03
to
But editing a PDF with a text editor will damage it! You should use
only an API designed for PDF to make changes.

Why not just fill the form with the required data, when you need it?

Aandi Inston

trighetti

unread,
Jul 29, 2003, 8:36:04 AM7/29/03
to
First of all Thank U very much for spending time answering my questions.

You are right, but I have to create a field using my plug in and not using the PDF tool and I must fill the field form using a text editor because the process that I use requires it.
I know that when I save a PDF document with a text editor I spoile it, but that is another problem that I have to solve later!!

Now I need only to create the field form with the API ACROBAT SDK!!!

Thanks very much for your help!!!!

trighetti

unread,
Jul 29, 2003, 9:58:37 AM7/29/03
to
I try to use a Forms API I'm using a AFPDFieldFromCosObj API but I' don't know how I can use it!!! The documentation ask me to use a CosObj ...but wich one?? there aren't sample or documentation to use it!!!

Please help me one more time!!! please!!!

I search on the web for more detail documentation about it but I didn't found!!

Aandi Inston

unread,
Jul 29, 2003, 9:39:34 AM7/29/03
to
But that is a VERY big problem to solve. Why make trouble for
yourself?

Have you considered using FDF files to fill the form?

To create form fields you should refer to the Forms API document,
separately from the Core API (though you still need the Core API).

Aandi Inston

Aandi Inston

unread,
Jul 29, 2003, 10:34:04 AM7/29/03
to
If you want to create a forms object from a Cos object you have to
completely make the Cos object yourself. The PDF Reference describes
the format - what you need is to create a Widget annotation. You also
have to add it to the file. This method does very little - it is more
like a typecast, for working with existing fields.

I have to admit, looking at the documentation, that the forms API is
not much help in creating form fields from a plug-in. You might as
well use the Cos API entirely. To emphasise: you have to know
everything about the internal structure of a form field in order to
create one.

Or, rather more easily, consider using the OLE component of the Forms
API, or JavaScript.

Aandi Inston

trighetti

unread,
Jul 29, 2003, 10:48:04 AM7/29/03
to
while (true)
{
Thanks for all !!!!
}
0 new messages