Bug 687380 - 8.5MB PDF becomes 1GB PS with -dUseCIEColor
Summary: 8.5MB PDF becomes 1GB PS with -dUseCIEColor
Status: NOTIFIED DUPLICATE of bug 686919
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PS Writer (show other bugs)
Version: master
Hardware: PC Windows 2000
: P2 normal
Assignee: Jack Moffitt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 08:28 UTC by Ken
Modified: 2011-09-18 21:47 UTC (History)
0 users

See Also:
Customer: 130
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken 2004-03-22 08:28:01 UTC
Attached is a PDF, 5981-9354EN.pdf, which seems to be a otherwise normal PDF. 
When converted to postscript, this file explodes to almost a gigabyte.  However,
when I remove -dUseCIEColor from the commandline, a normal 33MB PS file results.

The command I ran to create the file is:

/c/gs/gs8.14/bin/gswin32c -sDEVICE=pswrite -sOutputFile=out.ps -dNOPAUSE -dBATCH
-dSAFER -dUseCIEColor -dAutoRotatePages=/None' 5981-9354EN.pdf

I've looked at the PDF and the resulting PS and the problem seems to be related
to colorspaces (particularly when removing -dUseCIEColor fixes the problem,
albeit with skewed colorspaces).  About 80% of the postscript is giant blocks of
code that looks like:

	12 19 13 rG
	398 7737 2 3 rf

I poked around the PS header and I think this basically says "set the color,
then write some pixels".  If the high-level CIE colorspace in the PDF could not
be encoded in postscript, I would expect something like this.  But a 100-fold
increase in file size?

I realize the postscript device has no high-level colorspace handling yet...is
that the source of this problem?  Is there some other way to avoid making such
expensive redundancies?
Comment 1 Ken 2004-03-22 08:54:36 UTC
Created attachment 572 [details]
8.5MB, 8-page PDF
Comment 2 Jack Moffitt 2004-06-23 11:27:48 UTC

*** This bug has been marked as a duplicate of 686919 ***
Comment 3 Marcos H. Woehrmann 2011-09-18 21:47:32 UTC
Changing customer bugs that have been resolved more than a year ago to closed.