Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Write to Phone and Fax Fields in PDF document using ITEXT

 
Anil Karamchandan
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic