Hi,
I am trying to create PDF which will have table format and text in Japanese and
many other languages.
My code is like -
*****************************************************************************
PrintWriter out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(new
FileOutputStream ("Test.html"))));
BufferedReader lineReader = new BufferedReader(new
StringReader(simpleHtmlText));
String line;
while ((line = lineReader.readLine()) != null)
out.println (line);
lineReader.close();
out.flush();
out.close();
Document document = new Document(PageSize.A3, 0, 0, 90, 110);
PdfWriter.getInstance(document, new FileOutputStream("Test.pdf"));
document.open();
HTMLWorker worker = new HTMLWorker(document);
FileReader reader = new FileReader("Test.html");
worker.parse(reader);
reader.close();
*****************************************************************************
Here I am writing HTML file and then parsing that file to PDF, but i am getting
questions marks for Japanease character.
Please guide me. how i need to code?
Thanks,
Amit
This e-mail and any files transmitted with it are for the sole use of the
intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply
e-mail and destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing
or copying of this email or any action taken in reliance on this e-mail is
strictly
prohibited and may be unlawful.-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar