Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Add new field dictionary to the

Pradeepa Evangovan

2007-08-07

Replies:

Thanks Paulo.
I have added the field dictionary to the 'FIELDS' array. But the newly created dictionary is added as direct object and the fields are not visible.
At present, I am adding PdfIndirectReference object (got using PdfReader.getPRIndirectReference) to the 'FIELDS' dictionary. How to  create an indirect reference using iText?
Please help.

Thanks in advance,
Pradeepa

Date: Tue, 7 Aug 2007 16:19:03 +0100
From: "Paulo Soares" <psoares@consiste.pt>
Subject: Re: [iText-questions] Add new field dictionary to the
       existing pdf
To: "Post all your questions about iText here"
       <itext-questions@lists.sourcefo rge.net>
Message-ID: <007001c7d906$53002ca0$f0b92a0a
@psoaresw>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
       reply-type=original

If you use PdfStamper.addAnnotation() there are limitations on what the
field naming can be but if you go directly to PdfReader it's possible to
create a field with, for example, TextField and insert it as a kid or in any
other place.

Paulo

----- Original Message -----
From: "Pradeepa Evangovan" <pelangovan@filelogix.net >
To: <itext-questions@lists.sourceforge.net>
Sent: Tuesday, August 07, 2007 3:42 PM
Subject: [iText-questions] Add new field dictionary to the existing pdf


> Hi,
>         I have gone through the PdfStamper API and Pdf reference... I am
> able to add form fields in the existing pdf, change the kids and parent
> properties of the existing form fields.
>         Is it possible to add a new field dictionary to the existing pdf?
> I
> have created a field dictionary using "new PdfDictionary(PdfName.TX )" and
> set the attributes for that field dictionary. Is it possible to add this
> field dictionary to the existing pdf using PdfStamper.
>    I apologise if this question has been answered already. I am not able
> to
> find the solution for this problem.
>
> Thanks in advance,
> Pradeepa
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.