spadged / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Romanian/Latin Characters #287

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. pdf.addText("ăîşţ");

What is the expected output? What do you see instead?
Is expected to see romanian characters "ăîşţ" but instead there are strange 
characters.

What version of the product are you using? On what operating system?
Win 7, AlivePDF 0.1.5 RC

Please provide any additional information below.
First I thought the problem is with charset, and this was just part of it. I 
replaced the original line of code with this one:
buffer.writeMultiByte( content+"\n", "iso-8859-2" );
Doing so, I'm able to see needed characters in the pdf if I open it with a text 
editor, but opening the pdf with adobe reader, I see strange chars instead. I 
use CoreFont.Times for this. I think problem is somewhere around the 
"/Encoding/WinAnsiEncoding" in the pdf, but please help me to fix this. 
AlivePDF is a great tool that I want to use in an aplicattion for the 
university, but 2 days I'm looking for this solution.
Thanks, 
Dima

Original issue reported on code.google.com by dimadeve...@gmail.com on 23 Nov 2010 at 10:28

Attachments: