Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encoding problem in converting PDF to Image using PDFImageWriter

 
kien ngo doan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi every body!
I have a small project and the purpose of project is:
- Generate PDF file from a xls fo file (*.fo)
- Convert file PDF into multiple image (.jpg or .png), each image display a page of PDF file.
I've generated PDF file successfully but I encountered a problem: All unicode character (é, à, á ...) and special character (Europe currency character ... ) in PDF file are not displayed properly in file image.
This error was happened only with my generated PDF file. I've attempted convert other PDF file and its okay. So I guest the problem is from my generated PDF, but I cant correct it.
Can you help me? Thanks a lot

my project link: convert_pdf_to_image
ps: my project was uploaded in mediafire site, just click to download it and run it by eclipse IDE.
file fo: test.fo
generated pdf: test.pdf
generated image: preview1.jpg
all necessary libraries in ./test/lib
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic