Tres Finocchiaro created PDFBOX-5971:
----------------------------------------
Summary: Degraded quality on macOS when dpi is not provided
Key: PDFBOX-5971
URL: https://issues.apache.org/jira/browse/PDFBOX-5971
Project: PDFBox
Issue Type: Bug
Affects Versions: 3.0.4 PDFBox, 2.0.33
Environment: openjdk 11.0.26
macOS 15.3.1
Reporter: Tres Finocchiaro
Attachments: image-2025-03-07-13-34-55-860.png, pb_usps_sample-1.pdf
When providing a `-dpi` to PDFBOX:
{quote}Render into intermediate image with specific dpi and then print. Use -1
for automatic detection of printer resolution.
{quote}
When printing to a 203 DPI printer on macOS, the quality differences are quite
different, with `-dpi 203` being significantly better quality. This issue was
originally discovered in PDFBOX-5967 due to a downstream usage preferring `-dpi
203` for some older JDK versions due to a hard-crash.
Good: (with DPI)
{quote}{{java -jar ~/Downloads/pdfbox-app-2.0.33.jar PrintPDF -dpi 203
-noColorOpt /Users/owner/Downloads/pb_usps_sample.pdf}}
{quote}
Not as good:
{quote}{{java -jar ~/Downloads/pdfbox-app-2.0.33.jar PrintPDF -dpi 203
-noColorOpt /Users/owner/Downloads/pb_usps_sample.pdf}}
{quote}
[^pb_usps_sample.pdf]
!image-2025-03-07-13-34-55-860.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]