• 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 avoid garbage values written into a pdf file using itext?

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
I m writing into a pdf file from my application using a itext api.A remark field from the application is first populated by the client which is stored in the database after saving and afterwards fetched from database and written into a pdf file.What client does is...he copies the data from a word file and copies it in the remark filed in the application before saving it.This data in MS Word contains bullets and numbers.So When this data is stored in the database ,it stores some garbage values into the database which I suppose represent the bullets.After generating the PDF the same garbage values appear in PDF.

the data written into PDF looks somewhat like this:
"Following are the actions taken by MCG
Bangalore:
Branch has marked debit freeze
in the Effone Technologies account no.

"


So..is there any way by which these garbage values can be avoided???
Please help me out as this is really urgent....

Thanks
 
Ranch Hand
Posts: 820
IntelliJ IDE VI Editor Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Best to scrub the MS Word garbage at its source before it gets into the database.

Either client-side with a script like the one described here:
http://jhy.io/tools/convert-word-to-plain-text

or on the server-side before saving it to DB.

reply
    Bookmark Topic Watch Topic
  • New Topic