Summary: | PDF-file not converted or converted with wrong extent | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | artifex |
Component: | PDF Interpreter | Assignee: | Alex Cherepanov <alex> |
Status: | NOTIFIED FIXED | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 8.63 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Customer: | 870 | Word Size: | --- |
Attachments: |
Sample command lines for GhostScript-call
patch patch |
Description
artifex
2008-11-21 04:31:47 UTC
Created attachment 4615 [details]
Sample PDF-file
Created attachment 4616 [details]
Sample command lines for GhostScript-call
Created attachment 4620 [details] patch The attached patch fixes the the problem with the command line: bin/gs -sDEVICE=pngmono -dBufferSpace=200000 -sOutputFile="out_buffer200000_600DPI.png" -r600 -dBATCH -dNOPAUSE -q -f"input.pdf" -c quit I've verified that the other problem reported still occur with gshead (r9236). Also, the problem is not confined to pngmono, any 1bpp output format fails with this command line: bin/gs -sDEVICE=pbmraw -dBufferSpace=100000000 -sOutputFile=/dev/null input.pdf Created attachment 4621 [details] patch The sample file installs singular text matrix 0 0 0.99 0 3059 569 Tm. The patch adds special, tolerant to singular matrix processing, to the case when ImageMatrix is derived from the CTM, which happens in cached character rendering. Local regression testing shows no differences. Minor differences are possible at higher resolutions because of the difference in rounding errors. Testing on "GPL Ghostscript SVN PRE-RELEASE 8.64" shows that there's no difference between runs and -dBufferSpace=100000000 is OK. >md5sum *.png 63f3187d71dc9173ce030bd62ad5fd3f *out_buffer100000000_400DPI.png d5044057d3899e7a823462a385717755 *out_buffer100000000_600DPI.png 63f3187d71dc9173ce030bd62ad5fd3f *out_buffer20000000_400DPI.png d5044057d3899e7a823462a385717755 *out_buffer20000000_600DPI.png 63f3187d71dc9173ce030bd62ad5fd3f *out_buffer200000_400DPI.png d5044057d3899e7a823462a385717755 *out_buffer200000_600DPI.png 63f3187d71dc9173ce030bd62ad5fd3f *out_noBuffer_400DPI.png d5044057d3899e7a823462a385717755 *out_noBuffer_600DPI.png Please commit the patch so we can update the customer. The patch is committed as a rev. 9253. Regression testing shows no differences. |