• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to insert replace(multiple language) text in existing pdf and create new one

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,


i am using i text to create a pdf with place holders and using this pdf existing pdf for place holders as template , i am able to read this existing pdf using pdf reader in to string buffer , and able to change the place holders with some other strings it is also displaying correctly in newly generating pdf , but i am facing a problem to use different languages (as i need to make a receipt in more than 50 languages dynamically) it is not displaying correctly.how to use Encoding while changing the strings in existng pdf and creating with that changes.



thanks,
vamshi
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think you can change the encoding after a PDF has been created. I would anyway advise against doing this kind of text manipulation. Since no re-layout takes place, you have to be very careful not to disturb the layout by inserting text that is too wide (or too tall, in the case of CJK-like fonts).

Would it be feasible to create the PDFs completely at runtime, without using them as templates?
 
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by vamshiambati krishna:
Hi,

Just i am advising you use ResourceBundle......
i am using i text to create a pdf with place holders and using this pdf existing pdf for place holders as template , i am able to read this existing pdf using pdf reader in to string buffer , and able to change the place holders with some other strings it is also displaying correctly in newly generating pdf , but i am facing a problem to use different languages (as i need to make a receipt in more than 50 languages dynamically) it is not displaying correctly.how to use Encoding while changing the strings in existng pdf and creating with that changes.



thanks,
vamshi

 
reply
    Bookmark Topic Watch Topic
  • New Topic