Search 1.9 billion lines of Odoo code on GitHub

pdf_compression

Author: Benjamin Bachmann ,bloopark systems GmbH & Co. KG ,Odoo Community Association (OCA)
License: AGPL-3
Branch: pdf_compression
Repository: Benniphx/reporting-engine
Dependencies: base, knowledge, report, and web
Languages: PO File (58, 10.4%), Python (377, 67.8%), XML (53, 9.5%), and reStructuredText (68, 12.2%)
Other repositories: Benniphx/server-tools

<a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.svg"> </a> <a name="pdf-compression-pdf-a"></a> <h2>PDF Compression &amp; PDF/A</h2> <p>This addon provides the ability to convert outgoing and imported PDF attachments. You can compress the PDFs to save space in you database or file system. Also the possibility exists to convert PDFs in PDF/A. Currently implemented:</p> <ul class="simple"> <li>PDF/A-1b</li> <li>PDF/A-2b (recommend to use this setting because it is faster and result in smaller files)</li> </ul> <a name="installation"></a> <h3>Installation</h3> <ol class="arabic simple"> <li>You need at least Gostscript 9.18 (I recommend 9.19) <a class="reference external" href="http://ghostscript.com/download/gsdnld.html">http://ghostscript.com</a></li> </ol> <a name="configuration"></a> <h3>Configuration</h3> <p>If the odoo module is installed:</p> <ol class="arabic simple"> <li>You can define <code>Compession level</code> and <code>PDF/A TYPE</code> via <cite>Settings -&gt; Configuration -&gt; Knowledge</cite>.</li> <li>Also you can override PDF/A option for individual Reports apart from Global Settings via <cite>Settings -&gt; Technical -&gt; Reports -&gt; Reports -&gt; Select a Report -&gt; PDF/A archiving</cite>.</li> </ol> <a name="usage"></a> <h3>Usage</h3> <ol class="arabic"> <li><p class="first">Compression rate outcome:</p> <p>I uploaded a 1MB PDF file with a mix of pictures tables and text.</p> <p>Settings:</p> <ul class="simple"> <li>screen: selects low-resolution output similar to the Acrobat Distiller &quot;Screen Optimized&quot; setting.</li> <li>ebook: selects medium-resolution output similar to the Acrobat Distiller &quot;eBook&quot; setting.</li> <li>printer: selects output similar to the Acrobat Distiller &quot;Print Optimized&quot; setting.</li> <li>prepress: selects output similar to Acrobat Distiller &quot;Prepress Optimized&quot; setting.</li> <li>default: selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.</li> </ul> <p>Examples:</p> <ul class="simple"> <li>screen: 1MB -&gt; 200KB some quality loss notice (jpg artefacts in pictures)</li> <li>ebook: 1MB -&gt; 540KB little quality loss notice (some jpg artefacts in pictures but way better then screen)</li> <li>printer: 1MB -&gt; 740KB no quality loss notice</li> <li>prepress: 1MB -&gt; 820KB no quality loss notice</li> <li>default: 1MB -&gt; 680KB little quality loss notice (some jpg artefacts in pictures but way better then screen)</li> </ul> </li> <li><p class="first">PDF/A conversion:</p> <p><a class="reference external" href="https://en.wikipedia.org/wiki/PDF/A">Info wiki page</a></p> <p>PDFs will be converted to:</p> <ul class="simple"> <li>PDF/A-1b</li> <li>PDF/A-2b</li> </ul> </li> </ol> <a name="known-issues-roadmap"></a> <h3>Known issues / Roadmap</h3> <ul class="simple"> <li>Had to override the _run_wkhtmltopdf Function to pass context through it</li> <li>Implementing other PDF/A options</li> <li>Future Goal to integrate ZUGFeRD</li> <li>only PDFs which are saved as attachments are converted</li> <li>(if you use the print button to generate pdf the &quot;first&quot; time the compession/pdfa is not used but the saved attachment is converted)</li> </ul> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/server-tools/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://github.com/OCA/maintainer-tools/blob/master/template/module/static/description/icon.svg">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Benjamin Bachmann &lt;<a class="reference external" href="https://github.com/Benniphx">https://github.com/Benniphx</a>&gt;</li> </ul> <a name="maintainer"></a> <h4>Maintainer</h4> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>This module is maintained by the OCA.</p> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>