Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to stop Ghostscript and pdfwrite breaking up images into multiple XObjects?
    text
    copied!<p>Edit: I've done some more investigation and can clarify the problem, I will leave the original question below too.</p> <p>It seems that when using TIFF image data with multiple strips, pdfwrite produces an output PDF with one XObject per strip. In my case I have 25 rows per strip so the full page image is being broken up into 25-pixel high images. This would be fine except it produces unpleasant visual artefacts.</p> <p>Using tiffcp to revert the file to one big strip fixes this, but Acrobat Distiller doesn't require this workaround as it maintains the image as one big XObject by default.</p> <p>Can we make Ghostscript do the same?</p> <hr> <p>I'm attempting to use pdfwrite instead of Acrobat Distiller to convert a PS file to PDF. The file contains many scanned TIFF images that are called with the GetTiff function (I think this was originally supplied by Xerox).</p> <p>Distiller's output is fine but pdfwrite seems to produce multiple vertical XObjects for each image, instead of just one as Distiller does. They all appear as below in the PDF with the exact same size:</p> <pre><code>104 0 obj &lt;&lt;/Subtype/Image /ImageMask true /Width 2550 /Height 25 /BitsPerComponent 1/Length 7975&gt;&gt;stream </code></pre> <p>Is there a way to stop this behaviour? The output seems fine when zoomed in a huge amount, or when printed, but on screen at a regular zoom there are rendering artefacts at the boundary between images.</p> <p>I've tried just a basic command line (no options except -sDEVICE and -sOutputFile) as well as a variety of image options but no difference so far. I've tried versions 9.05 and 8.54.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload