I have an issue when Inkscape works differently on two different PCs.
I have a PDF technical drawing with some texts. In Adobe Reader are all USED FONTS in encoding: "Identify-H".
If I open it in Inkscape on PC with Win7 and save it again to PDF, there is nothing changed and USED FONTS are in encoding: "Identify-H" again. All is fine.
If I open it in Inkscape on PC with WinXP and save it again to PDF, there is USED FONT changed to encoding: ANSI. And that is a problem, because now font CMAP is corrupted and all text is changed to strange characters.
Why PDFs are not the same? How to prevent to change of font encoding?
Thank You for help
Saving PDF in encoding identity-H / ANSI
Re: Saving PDF in encoding identity-H / ANSI
Hi.
Maybe on xp your inkscape is an older version, using cairo instead of the currennt ghostscript pdf modul?
Using the same version would solve this perhaps.
You may try to edit the pdf manually in a notepad, there seems to be a line which says:
/Encoding /WinAnsiEncoding -in a pdf saved with the current sabile version.
You can avoid any font issues by choosing the convert text to paths in the save option, however then you cannot edit it as a text later.
Maybe on xp your inkscape is an older version, using cairo instead of the currennt ghostscript pdf modul?
Using the same version would solve this perhaps.
You may try to edit the pdf manually in a notepad, there seems to be a line which says:
/Encoding /WinAnsiEncoding -in a pdf saved with the current sabile version.
You can avoid any font issues by choosing the convert text to paths in the save option, however then you cannot edit it as a text later.
-
- Posts: 2
- Joined: Mon Jan 27, 2014 8:16 pm
Re: Saving PDF in encoding identity-H / ANSI
Thank You for an answer.
Nope. Exactly the same 0.48 version on both machines.
OK. I'll try to check it. Here are examples of the same text note from both drawings. Drawing was only opened and saved on two different computers.
Part of PDF edited correctly:
Part of PDF edited incorrectly:
Still there is a question why on one machine it is correct and on the other not? Why there is different saving procedure?
It should work, but I realy do not want to loose text edit possibility.
Maybe on xp your inkscape is an older version, using cairo instead of the currennt ghostscript pdf modul? Using the same version would solve this perhaps.
Nope. Exactly the same 0.48 version on both machines.
You may try to edit the pdf manually in a notepad, there seems to be a line which says:
/Encoding /WinAnsiEncoding -in a pdf saved with the current sabile version.
OK. I'll try to check it. Here are examples of the same text note from both drawings. Drawing was only opened and saved on two different computers.
Part of PDF edited correctly:
Code: Select all
27 0 obj
<< /Type /FontDescriptor
/FontName /QJLXHC+SWRomnd
/FontFamily (SWRomnd)
/Flags 4
/FontBBox [ -58 -266 964 931 ]
/ItalicAngle 0
/Ascent 931
/Descent -266
/CapHeight 931
/StemV 80
/StemH 80
/FontFile2 23 0 R
>>
endobj
28 0 obj
<< /Type /Font
/Subtype /CIDFontType2
/BaseFont /QJLXHC+SWRomnd
/CIDSystemInfo
<< /Registry (Adobe)
/Ordering (Identity)
/Supplement 0
>>
/FontDescriptor 27 0 R
/W [0 [ 500 593 662 314 627 488 698 698 627 733 767 767 314 698 698 698 698 872 698 1082 733 ]]
>>
endobj
7 0 obj
<< /Type /Font
/Subtype /Type0
/BaseFont /QJLXHC+SWRomnd
/Encoding /Identity-H
/DescendantFonts [ 28 0 R]
/ToUnicode 25 0 R
>>
endobj
Part of PDF edited incorrectly:
Code: Select all
25 0 obj
<< /Type /FontDescriptor
/FontName /QJLXHC+SWRomnd
/FontFamily (SWRomnd)
/Flags 32
/FontBBox [ -58 -266 964 931 ]
/ItalicAngle 0
/Ascent 931
/Descent -266
/CapHeight 931
/StemV 80
/StemH 80
/FontFile2 21 0 R
>>
endobj
7 0 obj
<< /Type /Font
/Subtype /TrueType
/BaseFont /QJLXHC+SWRomnd
/FirstChar 32
/LastChar 122
/FontDescriptor 25 0 R
/Encoding /WinAnsiEncoding
/Widths [ 733 0 0 0 0 0 0 0 0 0 0 0 0 872 0 0 0 698 698 0 0 0 698 698 698 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 314 0 733 0 0 767 0 0 0 0 0 593 767 0 0 0 0 0 0 0 0 0 0 0 698 0 0 0 627 0 0 0 0 0 0 314 1082 698 662 0 0 488 0 0 0 0 0 0 0 627 ]
/ToUnicode 23 0 R
>>
endobj
Still there is a question why on one machine it is correct and on the other not? Why there is different saving procedure?
You can avoid any font issues by choosing the convert text to paths in the save option, however then you cannot edit it as a text later.
It should work, but I realy do not want to loose text edit possibility.
Last edited by JimmyFLASH on Tue Feb 04, 2014 6:57 pm, edited 1 time in total.
Re: Saving PDF in encoding identity-H / ANSI
Off topic:
Ghostscript is not involved when opening and saving PDF files: Inkscape depends on poppler for PDF import, and on cairo for PDF export.Lazur URH wrote:Maybe on xp your inkscape is an older version, using cairo instead of the currennt ghostscript pdf modul?
Import of PostScript-based formtas requires ps2pdf from Ghostscript (to convert them on-the-fly to PDF).
Export to PostScript-based formats uses only internal cairo-based functions.
Re: Saving PDF in encoding identity-H / ANSI
Thank's for the correction! My bad.
-
- Posts: 1
- Joined: Wed Dec 14, 2016 3:59 pm
Re: Saving PDF in encoding identity-H / ANSI
If the problem is indeed what you describe, Notepad++ should do what you want, it's free. Create a new document in Notepad++, make sure 'Encode in ANSI' is selected in the Encoding menu, paste the text there, then choose 'Convert to UTF-8 without BOM' in the Encoding menu.