Encoding problem in converting PDF to Image using PDFImageWriter
kien ngo doan
posted 5 years ago
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