• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Write to Phone and Fax Fields in PDF document using ITEXT

 
Ranch Hand
Posts: 47
  • 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
  • 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
  • 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.
 
When you have exhausted all possibilities, remember this: you haven't - Edison. Tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!