This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Write to Phone and Fax Fields in PDF document  using ITEXT Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Write to Phone and Fax Fields in PDF document  using ITEXT" Watch "Write to Phone and Fax Fields in PDF document  using ITEXT" New topic
Author

Write to Phone and Fax Fields in PDF document using ITEXT

Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
Hi all,

I am a newbie to using Itext API, so far it has been a nice experience, however I am currently being faced with a problem and would appreciate if anyone could help in to find the answers.

I am trying to write to an existing pdf (filling an existing pdf with data), the code works just fine, however I am unable to write to fields like "Phone" and "Fax" correctly. The fields like "phone" and "Fax" have something like this [( ) ] (exclude the [ ]) when i try to write into these fields the text which is displayed is something like this [( ) 2222232]. Can any one let me know how to fix this ?

Would appreciate your help.

Regards
Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
can anyone throw some light on it please, below is the code and the explanation.



In the try block, I am trying to set the values for the pdf form i.e

, now say in the html I have a phone field which has a value (1234567890) in the pdf for the same phone field I will have ( ) 12345678 .

Can any one help me with this.
Anil Karamchandan
Ranch Hand

Joined: Sep 12, 2009
Posts: 47
got the answer, actually in pdf ( ) - is one field while the remaining number is the other field, thus there are 2 fields to complete one phone number - same goes with fax.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Write to Phone and Fax Fields in PDF document using ITEXT
 
Similar Threads
Itext seeking help
can we append a new Page to Existing PDF document
Appending to PDF form fields using iText APIs
How to create PDF file.
codofobia