Svetlana Stelmokaite wrote:
> in some computers it works OK (I mean in PDF document,than I read it
> with Acrobat Reader, all *lithuanian *characters are correct and in
> document fonts properties I see that True Type fons was formed),
The fonts are OK by accident.
> but in some computers it doesn't work -*lithuanian *characters are
> incorrect and
> document fonts properties show Type 1.
Based on your source code, this behavior is what I would expect on all
computers.
The problem is here:
> BaseFont bf = BaseFont.createFont(BaseFont.COURIER, BaseFont.CP1257,
> true);
You tell iText that the fonts needs to be embedded,
BUT you are using one of the standard type 1 fonts
(formerly known as the Base14 fonts).
These fonts are NEVER embedded. In the past these
fonts were shipped with Adobe Reader. Now a replacement
font is supposed to be on the end-user's system.
The not embedded Type 1 font can be replaced by
different fonts on different computers. That's the problem
you are experencing.
You can solve this by using another font that can be
embedded in a PDF document.
For instance, if you have Courier New (cour.ttf) on your
machine, you could create the BaseFont like this:
BaseFont bf = BaseFont.createFont("c:/windows/fonts/cour.ttf",
BaseFont.CP1257, true);
In this case, a subset of the TrueType font will be embedded
in your document, and the Lithuanian characters will be visible
for all end-users regardless of the system on their computer.
br,
Bruno
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions