4. Advanced flag translation (dpi, zoom, viewport, smart-shrinking, media-type) #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Map remaining wkhtmltopdf flags to Chrome arguments.
Tasks
--dpi→--device-scale-factor(DPI / 96 as scale factor)--zoom→ CSStransform: scale()wrapper or--force-device-scale-factor--viewport-size WIDTHxHEIGHT→--window-size=WIDTH,HEIGHT--disable-smart-shrinking→ disable auto-fit-to-page in print settings--print-media-type→ ensure Chrome uses print CSS media queries--extra-chromium-args→ append raw Chrome flags--quiet)Acceptance Criteria
--dpi 300→ device scale factor = 3.125--zoom 1.5→ content scaled by 1.5x--viewport-size 1920x1080→--window-size=1920,1080--disable-smart-shrinking→ no auto-shrink in PDF output--print-media-type→ print CSS applies in output--extra-chromium-args="--disable-extensions"→ passed through to ChromeNotes