pdf hebrew chars are GIBRISH

pdf hebrew chars are GIBRISH

Kfir Lavi lavi.kfir at gmail.com
Mon Sep 12 15:43:32 IDT 2011


On Mon, Sep 12, 2011 at 3:32 PM, shimi <linux-il at shimi.net> wrote:

>
>
> 2011/9/12 Kfir Lavi <lavi.kfir at gmail.com>
>
>>
>>
>> On Mon, Sep 12, 2011 at 11:32 AM, Kfir Lavi <lavi.kfir at gmail.com> wrote:
>>
>>> Hi,
>>> The CPA of our company gave me the salary in pdf.
>>> It is done with SHIKLULIT LE HALONOT (שיקלולית לחלונות).
>>> The header font is showing ok, but the font inside the form,
>>> shows in GIBRISH.
>>> It seems like a mismatch of font?!
>>> I'm using evince.
>>> I have culmus fonts installed.
>>>
>>> output of pdffonts:
>>> kfir at goofy /tmp $ pdffonts 2011.08.pdf
>>> name                                 type              emb sub uni object
>>> ID
>>> ------------------------------------ ----------------- --- --- ---
>>> ---------
>>> Arial                                CID TrueType      no  no  yes
>>> 6  0
>>> Arial,Bold                           CID TrueType      no  no  yes
>>> 10  0
>>> Miriam                               CID TrueType      no  no  yes
>>> 13  0
>>> David                                CID TrueType      no  no  yes
>>> 16  0
>>> David,Bold                           CID TrueType      no  no  yes
>>> 19  0
>>> MiriamFixed,Bold                     CID TrueType      no  no  yes
>>> 22  0
>>>
>>> kfir at goofy /tmp $ pdfinfo !$
>>> pdfinfo 2011.08.pdf
>>> Creator:        pdfsam-console (Ver. 2.4.0e)
>>> Producer:       iText 2.1.7 by 1T3XT
>>> CreationDate:   Sun Sep 11 20:12:03 2011
>>> ModDate:        Sun Sep 11 20:12:03 2011
>>> Tagged:         no
>>> Pages:          1
>>> Encrypted:      no
>>> Page size:      595.274 x 841.888 pts (A4)
>>> File size:      25669 bytes
>>> Optimized:      no
>>> PDF version:    1.4
>>>
>>> Thanks,
>>> Kfir
>>>
>>
>> When I create a docuement with LibreOffice, just for testing, and export
>> it to pdf the font names look different:
>> kfir at goofy /tmp $ pdffonts test.pdf
>> name                                 type              emb sub uni object
>> ID
>> ------------------------------------ ----------------- --- --- ---
>> ---------
>> BAAAAA+DavidCLM-Medium               TrueType          yes yes yes      9
>> 0
>> kfir at goofy /tmp $ pdffonts test1.pdf
>> name                                 type              emb sub uni object
>> ID
>> ------------------------------------ ----------------- --- --- ---
>> ---------
>> BAAAAA+ArialMT                       TrueType          yes yes yes      9
>> 0
>>
>> Does the name counts?
>>
>>
> Not sure (logic says that "yes, it should matter", as PDF should be
> *identical* where ever it is displayed, and thus a similar name should not
> cut it, unlike "font-family" in HTML...) - however - given your specific
> example, you can see that the font itself has been embedded in the PDF, and
> will thus always work. The same trick can be done by your CPA - if s/he will
> save the PDF with the option to "embed" / "inline" the fonts, the PDF would
> work anywhere, for everyone, on any device/OS, regardless of fonts... s/he
> might want to do it in general (the price of course is larger PDFs, as they
> contain the font data...)
>
> -- Shimi
>
> Yes,
I'm trying to find a Linux solution for the problem without asking the CPA
to ask SHIKLULIT why they are saving the pdf without embedding the fonts.

Kfir
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110912/42817c90/attachment.html>


More information about the Linux-il mailing list