Summary: | app-text/ghostscript-{gnu,gpl} patch request: /invalidfont in --show-- when trying to convert the PDF file | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ed Catmur <ed> |
Component: | [OLD] Printing | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | didier, hkbst |
Priority: | High | ||
Version: | 2006.1 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://bugs.ghostscript.com/show_bug.cgi?id=688536 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 132706 | ||
Attachments: |
688536-bugs.ghostscript.com-invalidfont.patch
foo.ps foo.ps |
Description
Ed Catmur
2007-01-05 09:58:27 UTC
Ed, is this fixed in ghostscript-gnu-8.55? (In reply to comment #1) > Ed, is this fixed in ghostscript-gnu-8.55? No, the patch still applies. Ed, can you provide a patch for one of the ghostscript ebuilds and attach the patch to this bug? I'm having some trouble getting it to apply. Created attachment 111640 [details, diff]
688536-bugs.ghostscript.com-invalidfont.patch
This is tested against ghostscript-gpl-8.54.
Created attachment 111814 [details]
foo.ps
Ed, can you reproduce on the attached ps?
Created attachment 111815 [details]
foo.ps
I mean this one.
Yes, fully reproducible (i.e. the bug shows up when compiled without the patch, and disappears when compiled with the patch). I asked because I noticed no difference in behaviour myself. What are the respective outputs? Without patch: $ gs -dNOSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=foo.pdf -c .setpdfwrite -f foo.ps GPL Ghostscript 8.54 (2006-05-17) Copyright (C) 2006 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Error: /invalidfont in --glyphshow-- Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- Dictionary stack: --dict:1126/1686(ro)(G)-- --dict:0/20(G)-- --dict:70/200(L)-- Current allocation mode is local Current file position is 118 GPL Ghostscript 8.54: Unrecoverable error, exit code 1 With patch: $ gs -dNOSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=foo.pdf -c .setpdfwrite -f foo.ps GPL Ghostscript 8.54 (2006-05-17) Copyright (C) 2006 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. $ echo $? 0 /usr/share/fonts/TTF/luximr.ttf is from font-bh-ttf. I've just tested the ps file with the last gnu gs package (8.56.0) and the file is interpreted correctly. I submit a new ebuild for this new gnu version. Can you test it after portage tree update ? Thanks for report it with a test case ! Tested this, too with ghostscript-gpl-8.57 and it seems to work. # gs -dNOSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=foo.pdf -c .setpdfwrite -f foo.ps GPL Ghostscript 8.57 (2007-05-11) Copyright (C) 2007 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. # pdfinfo foo.pdf Producer: GPL Ghostscript 8.57 CreationDate: Wed Jun 13 12:10:10 2007 ModDate: Wed Jun 13 12:10:10 2007 Tagged: no Pages: 1 Encrypted: no Page size: 612 x 792 pts (letter) File size: 5483 bytes Optimized: no PDF version: 1.4 seems to be fixed. If not please reopen. |