GhostScript PDF Compression - PDF Size Increasing Issue
<p>I am trying to compress the PDF file using my Asp.Net application with GhostScript.  But somehow i couldn't get the successful ouput for some PDF.</p>
<p><strong>GhostScript Application Details</strong></p>
<p>Version : 9.19</p>
<p>name : gswin64c.exe</p>
<p><strong>Please have a look at the below mentioned issue.</strong></p>
<p>My issue is, for some PDF, ghost compression technique is not working fine rather it increases the File size.</p>
<p>For eg. please have a look at this <a href="https://drive.google.com/a/tradingbell.com/folderview?id=0B6dwJntQAxG_cFVpVEdsbFBnSXc&amp;usp=sharing#" rel="nofollow noreferrer">link</a>  (Here i have added some of input and output files, which i had tested with application)</p>
<p><strong>Case 1: PDF compression not worked as desired.</strong></p>
<p>Here B_BeforeCompression.pdf (its size is 369 KB) is the source PDF, when i compress it using the GhostPDF Compression technique it actually increases its size B_AfterCompression.pdf (its size is 473 KB)</p>
<p><strong>Case 2: PDF Compression worked fine</strong></p>
<p>Here A_BeforeCompression.pdf (its size is 1458 KB) when it  is compressed, the output PDF is generated as A_AfterCompression.pdf size is 286 KB.</p>
<p>Here my question is, Why this contrary occurs (a technique works with one PDF but not successfully do with the another PDF.)</p>
<pre><code> &quot;-sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=&quot;OutputPDF&quot; &quot;InputPDF&quot;;

        
</code></pre>
<p>Please give me the possible solution that would make the PDF Compression is compatible for the all the PDF files.</p>