When you use PhpWkhtmlToPdf as render engine, the Paper Size setting of Entity Print is ignored.

Proposed Fix:
Add code to read the Paper Size configuration Entity Print and apply this in PhpWkhtmlToPdf.

Comments

finne created an issue. See original summary.

finne’s picture

StatusFileSize
new1.59 KB

Attached a pach that fixes the Paper Size, and also adds the PhpWkhtmlToPdf zoom option to the GUI.

The Paper Size + Zoom options together allow you print hairlines: Set the paper size to A0 and the zoom to 4, to be able to print hairline widths on A4. See also http://stackoverflow.com/questions/9978335/specify-hairline-thickness-in....

finne’s picture

Status: Active » Needs review
benjy’s picture

StatusFileSize
new2.97 KB

Thanks for this, will commit shortly. I just updated the weights on the base class to give me consistent experience across all the forms, that way plugins can just set the weights for the fields they manage.

  • benjy committed 02170f0 on 8.x-2.x authored by finne
    Issue #2879347 by finne, benjy: Page size and zoom in PhpWkhtmlToPdf
    
benjy’s picture

Status: Needs review » Fixed

Committed and pushed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.