[cl-pdf-devel] Unicode/ISO-8859-2

Marc Battyani marc.battyani at fractalconcept.com
Mon Sep 26 09:36:14 UTC 2005


"Mészáros Levente" <Levente.Meszaros at netvisor.hu> wrote:

>Here are two versions generated with Jaws PDF creator and PDF Creator
>"whatever".

>In x.pdf I saw something like:

><</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[
>1/odblacute/udblacute/Odblacute/Udblacute]>>
>endobj

>I think this might be important.

Well unfortunately, in this example, the font used is not "Times roman" but
an embedded one:
As you can see a small font with 4 characters is created:

<</BaseFont/ASPNQQ+TTE1FE6578t00/FontDescriptor 9 0 R/ToUnicode 15 0
R/Type/Font
/FirstChar 1/LastChar 4/Widths[ 500 500 722 722]
/Encoding 17 0 R/Subtype/TrueType>>
endobj
17 0 obj
<</Type/Encoding/BaseEncoding/WinAnsiEncoding/Differences[
1/odblacute/udblacute/Odblacute/Udblacute]>>
endobj
9 0 obj
<</Type/FontDescriptor/FontName/ASPNQQ+TTE1FE6578t00/FontBBox[0 -15 711
877]/Flags 4
/Ascent 625
[...]

Also in the 8859-2 encoding the name are different:
Here is what is in document.pdf when I base the 8859-2 encoding on the
win-ansi one:

<< /Type /Encoding
/BaseEncoding /WinAnsiEncoding
/Differences [ 213 /Ohungarumlaut 219 /Uhungarumlaut 245 /ohungarumlaut 251
/uhungarumlaut ]
 >>
 endobj

As you can see the names are different:
Uhungarumlaut vs Udblacute

This is rather strange as the character is displayed correctly and the
string is output at once so it begins to look like an acrobat problem for
me.

BT
0.000 -14.001 Td
/CLF113 14.00 Tf
100.000 Tz
[ (áéíóöõüûúÁÉÍÓÖÕÜÛÚ) -28764 ] TJ
ET

Thinking about this, I tried to look at document.pdf with Ghostscript and it
displays just fine!
(I've attached the latest document.pdf)

Marc

Ps: I'm replying to the Batthyani's topic in a separate email.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: document.pdf
Type: application/pdf
Size: 1615 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-pdf-devel/attachments/20050926/5a15a50e/attachment.pdf>


More information about the cl-pdf-devel mailing list