Summary: | Using /sProcessColorModel=DeviceGray & -dColorConversionStrategy=/Gray doesn't convert all images to Gray | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Kilobajt <info> |
Component: | PDF Writer | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | cloos |
Priority: | P4 | ||
Version: | master | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Customer: | Word Size: | --- |
Description
Kilobajt
2012-05-29 10:01:31 UTC
(In reply to comment #0) > Using /sProcessColorModel=DeviceGray & -dColorConversionStrategy=/Gray doesn't > convert all images to Gray anymore. This worked in 9.05. Result are invalid > PDF/A-1b files. Sample PDF file is available here: (17mb) > http://www.esrf.fr/files/Highlights/HL2006.pdf This is a 129 page PDF file, don't you have anything smaller ? (In reply to comment #1) > (In reply to comment #0) > > Using /sProcessColorModel=DeviceGray & -dColorConversionStrategy=/Gray doesn't > > convert all images to Gray anymore. This worked in 9.05. Result are invalid > > PDF/A-1b files. Sample PDF file is available here: (17mb) > > http://www.esrf.fr/files/Highlights/HL2006.pdf > > This is a 129 page PDF file, don't you have anything smaller ? I'll try to find something smaller. If this is any help: Ghostscript stops converting to gray at page 98 (1-97 are all in gray) so the last 32 pages stay in color. (In reply to comment #2) > I'll try to find something smaller. If this is any help: Ghostscript stops > converting to gray at page 98 (1-97 are all in gray) so the last 32 pages stay > in color. I extracted page 98 and ran that, GS gives the following warning: Unable to convert color space to Gray, reverting to LeaveColorUnchanged. Documented values for ColorConversionStrategy are; LeaveColorUnchanged, sRGB and DeviceIndependentColor. The warning is new, its to prevent a seg fault. Since 'Gray' is not a documented legal value for ColorConversionStrategy I'm inclined to feel this isn't a bug.... Note that the distiller parameter documentation does not list 'Gray' as a legal value either. I'll bear this in mind when we revisit the colour code in pdfwrite however. Perhaps there is a way to use one of the gray profiles (default_gray, ps_gray or sgray) as an OutputIntent to do what the OP wants? (In reply to comment #4) > Perhaps there is a way to use one of the gray profiles (default_gray, ps_gray > or sgray) as an OutputIntent to do what the OP wants? I don't think so, but you are welcome to prove me wrong. |