Skip to Content
Menu

PDF Attachment Compression

by
Odoo

53.43

v 18.0 Third Party 56
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2194
Technical Name azk_pdf_compression
LicenseAGPL-3
Websitehttp://azka.tech
Versions 13.0 14.0 15.0 16.0 17.0 18.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Discuss (mail)
Lines of code 2194
Technical Name azk_pdf_compression
LicenseAGPL-3
Websitehttp://azka.tech
Versions 13.0 14.0 15.0 16.0 17.0 18.0
header

Introduction

Enables compressing PDF stored as attachments or in DB for any model by compressing its pictures content.


Key Features

  • Compress pdf based on a set of rules
  • Flexible rules for compression:
  • By model where pdf are uploaded
  • By ratio; allows to compress images inside pdf to configured ratio.
  • By minimum image width; allows to compress images inside pdf which width bigger than configured width
  • By quality; allows to compress images inside pdfto configured quality.
  • By size; it allows to compress images having a bigger size than the configured size
  • Compress attachments newer or older than specific dates

How it Works

  • Add pdf: Add some pdf attachments that contains images in the models.
    In the following example, we selected the sale model in my compression rule. So, we are adding 2 pdf files which contain images. pdf_before
  • Run the compression rule: Go to the corresponding compression rule and run it. The pdfs satisfying these rules should be compressed.
    The system will show a pop up with the details of the compression:
    compressed pdf and total size reduction comp
  • Check results: Go back to the model where the pdf was uploaded and verify the results.
    Download the pdf and check the size reduction. pdf_after
  • File Store: Notice that upon running a compression rule or when the scheduled action runs them,
    the size of the filestore is reduced if Replace All was checked before after

Configuration

  • Setup a compression rule
    • Select the models where pdf attachments to be compressed. model
    • Set the compression ratio ratio
    • Set the optional minimum image width inside pdf attachment. min_img_width
    • Set the optional minimum size of attachment. min_size
    • Set the optional newer than/older than days to compress. newer
    • Set the quality of the compressed image (value between 0 and 100 where the larger the value, the higher the compression but the lower the quality) quality
    • In Odoo, storage is done by content. Thus, if the same pdf was uploaded twice, it will be saved on the disk once.
      Thus, there is an option to match all similar pdf, compress them and delete the uncompressed pdf.
      To activate this feature, check the "Replace All" replace
    • If you want the scheduled action to run this compression rule daily, keep it active. active
  • Scheduled Action
    Upon installing the module, a daily scheduled action "Run attachments compression rules" is added automatically action

Suggested Apps


Our Services

odoo consultancy

Odoo
Consultancy

odoo implementation

Odoo
Implementation

odoo customization

Odoo
Customization

odoo integration

Odoo
Integration

odoo data migration

Odoo
Data Migration

odoo training

Odoo
Training

odoo support

Odoo
Support

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author or have a question related to your purchase, please use the support page.