Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you run Ghostscript <code>-dPDFSETTINGS=/screen</code> this is just a sort of shortcut. In fact you'll get (implicitly) a whole bunch of settings used, which you can query with the following command:</p> <pre><code>gs \ -dNODISPLAY \ -c ".distillersettings {exch ==only ( ) print ===} forall quit" \ | grep '/screen' </code></pre> <p>On my Ghostscript (v9.06prerelease) I get the following output (slightly edited to increase readability):</p> <pre><code>/screen &lt;&lt; /DoThumbnails false /MonoImageResolution 300 /ColorImageDownsampleType /Average /PreserveEPSInfo false /ColorConversionStrategy /sRGB /GrayImageDownsampleType /Average /EmbedAllFonts true /CannotEmbedFontPolicy /Warning /PreserveOPIComments false /GrayImageResolution 72 /GrayACSImageDict &lt;&lt; /ColorTransform 1 /QFactor 0.76 /Blend 1 /HSamples [2 1 1 2] /VSamples [2 1 1 2] &gt;&gt; /ColorImageResolution 72 /PreserveOverprintSettings false /CreateJobTicket false /AutoRotatePages /PageByPage /MonoImageDownsampleType /Average /NeverEmbed [/Courier /Courier-Bold /Courier-Oblique /Courier-BoldOblique /Helvetica /Helvetica-Bold /Helvetica-Oblique /Helvetica-BoldOblique /Times-Roman /Times-Bold /Times-Italic /Times-BoldItalic /Symbol /ZapfDingbats] /ColorACSImageDict &lt;&lt; /ColorTransform 1 /QFactor 0.76 /Blend 1 /HSamples [2 1 1 2] /VSamples [2 1 1 2] &gt;&gt; /CompatibilityLevel 1.3 /UCRandBGInfo /Remove &gt;&gt; </code></pre> <p>I'm wondering if your PDFs are image-heavy, and if this sort of conversion does un-welcome things (f.e. re-sampling images with the 'wrong' parameters) which increase the file size...</p> <p>If this is the case (image-heavy PDF), tell so, and I'll update this answer with a few suggestions....</p> <hr> <h2>Update</h2> <p>I had a look at the sample file provided by DNA. Interesting...</p> <p>No, it does <strong>not</strong> contain any <em>image</em>.</p> <p>Instead, it contains one large stream (compressed using <code>/FlateDecode</code>) which consists of roughly 700.000+ (!!) operations, mostly single vector operations in PDF language, such as:<br> <code>m</code> (moveto),<br> <code>l</code> (lineto),<br> <code>d</code> (setdash),<br> <code>w</code> (setlinewidth),<br> <code>S</code> (stroke),<br> <code>s</code> (closepath and stroke),<br> <code>W*</code> (eoclip),<br> <code>rg</code> and <code>RG</code> (setrgbcolor)<br> and a few more. </p> <p><em>(That PDF code is very inefficiently written AFAICS (but does its job), because it does concatenate many short strokes instead of doing 'long' ones, and nearly each stroke defines the color again (even if it is the same as before), and has all the other overhead (start stroke, end stroke,...).</em></p> <p>Ghostscript's <code>-dPDFSETTINGS=/screen</code> do not have <strong>any</strong> effect here (there are no images to downsample, for example). The increased file size (+48 kByte to be precise) is probably due to Ghostscript re-organizing some of the internal stroking etc. commands to a different order when it interprets the file. </p> <p><strong>So there is not much you can do about the PDF file size</strong> ... </p> <ul> <li><strong>...unless you convert each of these PDF pages into a <em>REAL</em> image such as PNG:</strong> </li> </ul> <pre> gs \ -o out72.png \ -sDEVICE=pngalpha \ L_2lambda_max_1wl_E0_1_zg.pdf </pre> <p>(I used the <code>pngalpha</code> output to get transparent background.) The image dimensions of <em>'out.png'</em> are <code>259x213px</code>, the filesize is now 70 kByte. But I'm sure you'll not like the quality :-)</p> <p>The output quality is 'bad' because Ghostscript uses a default resolution of 72 dpi.</p> <p>Since you said you'd like to have 300dpi, the command becomes this:</p> <pre><code>gs \ -o out300.png \ -sDEVICE=pngalpha \ -r300 \ L_2lambda_max_1wl_E0_1_zg.pdf </code></pre> <p>The filesize now is 750 kByte, the image dimensions are <code>1080x889</code> Pixels.</p> <hr> <h2>Update 2</h2> <p>Since <em>Curiosity</em> is en vogue these days... :-) ...I tried to bring down the file size with the help of Adobe Acrobat X Pro on Mac.</p> <p>You wanna know the results?</p> <p>Performing a <em>'Save as... (PDF with reduced filesize)'</em> -- which for me in the past always yielded very good results! -- created a 1,8++ MByte file (+29%). I guess this definitely puts Ghostscript's performance (file size increase +3%) into a realistic perspective !</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

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