Discussion:
[gs-bugs] [Bug 698697] - Ghostscript - Corrupted pdf output when cropping?
b***@artifex.com
2017-10-25 15:53:13 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698697

Bug ID: 698697
Summary: Corrupted pdf output when cropping?
Product: Ghostscript
Version: 9.21
Hardware: PC
OS: Windows 10
Status: UNCONFIRMED
Severity: normal
Priority: P4
Component: General
Assignee: ghostpdl-***@artifex.com
Reporter: ***@gmail.com
QA Contact: gs-***@ghostscript.com
Word Size: ---

Created attachment 14415
--> http://bugs.ghostscript.com/attachment.cgi?id=14415&action=edit
Large ps to crop to pdf

When using the following command
gswin32c.exe -dBATCH -dNOPAUSE -dSAFER -g2880x2880 -r72
-sOutputFile="C:\Users\prc\AppData\Local\Temp\tmp0cgcuziw.ps_1_1.pdf"
-sDEVICE=pdfwrite -c "<</.HWMargins [35 35 35 35] /PageOffset [5 5] >>
setpagedevice" -f "C:\Users\prc\AppData\Local\Temp\tmp0cgcuziw.ps"

to create a pdf the output pdf seems to be corrupted. Adobe reader DC
complains that it cannot extract an embedded font. When I try to combine this
single page pdf to other pages with Ghostscript, I also get the following
error;

GPL Ghostscript 9.21 (2017-03-16)
Copyright (C) 2017 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
**** Error reading a content stream. The page may be incomplete.
Output may be incorrect.
**** Error: File did not complete the page properly and may be damaged.
Output may be incorrect.
**** The file was produced by:
**** >>>> GPL Ghostscript 9.21 <<<<

**** This file had errors that were repaired or ignored.
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.

**** The rendered output from this file may be incorrect.

Ghostscript 9.21 compiled for Windows via msys2
mingw-w64-x86_64-ghostscript-9.21-1-any.pkg.tar.xz
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-25 15:55:23 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698697

--- Comment #1 from Paul Culley <***@gmail.com> ---
Created attachment 14416
--> http://bugs.ghostscript.com/attachment.cgi?id=14416&action=edit
Corrupted output pdf
--
You are receiving this mail because:
You are the QA Contact for the bug.
b***@artifex.com
2017-10-25 16:01:37 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=698697

Ken Sharp <***@artifex.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WORKSFORME

--- Comment #2 from Ken Sharp <***@artifex.com> ---
For me I do get a corrupted PDF file with 9.21 but not with the current release
(9.22). I'd suggest you upgrade.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Loading...