[cups-devel] [UNKN] STR #4607: Mac cgpdftops creates bad PostScript output for Cyrillic PDF document

Alex Korobkin noreply at cups.org
Tue Mar 17 08:54:10 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Discovered on Mavericks (10.9, CUPS 1.7.2). 

When attached PDF with Cyrillic fonts is printed on a Mac, Cyrillic
characters are not rendered correctly. 

The first called filter, cgpdftops, creates a PS file that cannot be parsed
by Adobe Distiller, GhostScript, or printer PS engine. 

Here is the output of Distiller:

Start Time: Tuesday, March 17, 2015 at 11:50:12
Source: cgp2.ps
Destination: cgp2.pdf
Adobe PDF Settings: C:\ProgramData\Adobe\Adobe PDF\Settings\High Quality
Print.joboptions
%%[ Error: invalidfont; OffendingCommand: xshow; ErrorInfo: MetricsCount
- --nostringval-- ]%%

Stack:
- -dict-
- -file-


%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%
Distill Time: 00 Hour(s) : 00 Minute(s) : 00.109 Second(s)
**** End of Job ****

Here is the output of GS:

gs /tmp/cgp2.ps 
GPL Ghostscript 9.05 (2012-02-08)
Copyright (C) 2010 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
GPL Ghostscript 9.05: Error: Font Renderer Plugin ( FreeType ) return code
= -10
GPL Ghostscript 9.05: Error: Font Renderer Plugin ( FreeType ) return code
= -10
Can't render Font INRIXH+AA0102+Arial with FAPI, will do with native GS
renderer.
Can't render Font F1.1 ( aliased from INRIXH+AA0102+Arial ) with FAPI, will
do with native GS renderer.
Error: /rangecheck in --xshow--
Operand stack:

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
- --nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
- --nostringval--   false   1   %stopped_push   1910   1   3   %oparray_pop  
1909   1   3   %oparray_pop   1893   1   3   %oparray_pop   1787   1   3  
%oparray_pop   --nostringval--   %errorexec_pop   .runexec2  
- --nostringval--   --nostringval--   --nostringval--   2   %stopped_push  
- --nostringval--
Dictionary stack:
   --dict:1160/1684(ro)(G)--   --dict:0/20(G)--   --dict:78/200(L)--  
- --dict:90/141(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 201751
GPL Ghostscript 9.05: Unrecoverable error, exit code 1

Poppler's pdftops and pdftocairo filters on Linux can process the original
PDF just fine. GS on Linux can convert this PDF to PS just fine, too. Only
cgpdftops on Mac is affected. 

Original file contract-p2.pdf is attached.
Resulting cgp2.ps file is also attached.

Link: https://www.cups.org/str.php?L4607
Version: 1.7.2
Attachment: https://www.cups.org/strfiles.php/3468/contract-p2.pdf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJVCE4iAAoJENujp6sI12IjhXEQAKCBCelxPsi8E847+x4I9bym
lpOBRPjCE7mj5oNCKaYx8JOQzB+oxfM91axuh7P9IoZC37OPn77jCz3pQOVFLtK2
9yBRR1U4BS8Z4Vh4DoEhqMJT7Zd4aqqi6VgRRKy1vmJihymq6oImGAvkQfqZ8uuf
dISHAqHy6J3P/PNPE7fi24TiV4welLKhnCMAHBG7M9UqAJbwXY2utXmK2l4hCa3e
Lliqb4NVnKFYfZv/jstpIsVJFAA+Mtfgn4bHHoOhM7a0ZjEDq6FpeujTRg9S9xVZ
N1bZRCFop2k6jQQgvKGf6hiYc40Mg3z/msjR3MsdRjUoXwkc1K//rmphrvKhp/3l
95S82JxKxYG9Fu0ZXhv7hGw85iLQdXvR6kRq7qoBSJhYOKYGmux62RmlohwNxcKS
DhVN+vTSQQRrYPN4Fqu94krUm3IKN1O9+cY5Kx+e5KpL01ytcVvEKsbjtGUqxxfi
5fNC+HAY6wKWnXql8ocN8eS9PZDBIe7c9VODpYpXvz/EWY91JedzUb7Rg6kK2WRv
w3V50FTsuthv6HSszf9vgKXzZjdO3wboFtm/hMmSRGHNt/IVE/DnIt9XMsYZdrlr
Anxi3OwomKOREaKz1Sjf+gKpcsAEel0j0tY3qmSUd3ofOivRvOFXzklQVgF3jqnG
Arzs9nWen1kiEcQeD2X2
=raZo
-----END PGP SIGNATURE-----




More information about the cups-devel mailing list