• 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 ...
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown

How to avoid garbage values written into a pdf file using itext?

Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
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....

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:

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

It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic