Tuesday, March 23, 2021
1 change · master
Resolved issues and error corrections
Survey certification PDFs now use the available A4 page space correctly, avoiding overly large top and side margins. This improves the appearance and professionalism of printed certificates for users and recipients.
Original PR description
Generated PDF was shrunk down, not taking up the full width and size of the A4 format, leaving big margins on right and top. Setting `disable-smart-shrinking` to `True` helps with this, but layout is slightly too big. Setting `dpi` to `96` and removing the `width` and `height` on the parent element fully fixes the issue. This merge also adds a boolean field `disable_shrinking` in model `report.paperformat`. If set to True it adds one argument `--disable-smart-shrinking` in commands that prevents the pdf shrinking. See issue[1] for more information. This options is utilized for printing survey certificaiton. Task ID-2483393 COM PR odoo/odoo#68188 UPGPR odoo/upgrade#2293 issue[1] - wkhtmltopdf/wkhtmltopdf#3226