Skip to content

filter/pdftopdf: Add print-as-image option (issue #601)#678

Open
KarunishaR wants to merge 1 commit intoOpenPrinting:masterfrom
KarunishaR:print-as-image-feature
Open

filter/pdftopdf: Add print-as-image option (issue #601)#678
KarunishaR wants to merge 1 commit intoOpenPrinting:masterfrom
KarunishaR:print-as-image-feature

Conversation

@KarunishaR
Copy link

Fixes #601

Adds a new print-as-image job option to the pdftopdf filter. When
enabled, each PDF page is rasterized via Ghostscript's pdfimage24
device before printing, fixing printers that misrender vector PDF
content or fonts.

Usage:
lpr -o print-as-image=true file.pdf
lpr -o print-as-image=true -o print-as-image-dpi=600 file.pdf

Tested with Ghostscript 10.02.1:

  • Rasterized output: 29K vs 2.3K original (confirms bitmap conversion)
  • Fallback to original PDF works if Ghostscript fails
  • Normal path without option works unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Offer a "Print as image" option for all the printers

1 participant