Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Tilman Hausherr
Hi, I've committed your suggestion with some minor changes, among them this: I did not use "if (rasterDpi != RASTERIZE_OFF)" and used "if (dpi > 0 || dpi == RASTERIZE_DPI_AUTO)" because in the past, a negative dpi would be treated like dpi 0 (i.e. no rastering) and I wanted to keep it that way

Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Tilman Hausherr
On 04.12.2024 15:56, Kevin Day wrote: Thank you. Your approach to preserving the current negative dpi value behavior makes a lot of sense. It's tricky messing with public APIs! Would you like me to propose a patch for PDF Debugger as well? Thanks for the feedback; the changes for PDFDebugger h

Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Kevin Day
Great - that's much nicer than what I had in mind... K On Wed, Dec 4, 2024, 8:03 AM Tilman Hausherr wrote: > On 04.12.2024 15:56, Kevin Day wrote: > > Thank you. Your approach to preserving the current negative dpi value > behavior makes a lot of sense. It's tricky messing with public APIs! >

Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Tres Finocchiaro
Kevin, > Thanks for the test - it is a good additional data point. If you are able > to easily test on Windows, and it fails, that would be very good > information to have. It might mean I need to open an issue with OpenJDK. Just an update, but I tested on Windows 11 using PDFBOX 3.x using both

Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Kevin Day
Thank you, Tres! This pushes me even further in a direction of thinking the issue must be a low level Java issue. I know for sure the printer I tested on is PCL. If you've had problems with PCL drivers and Java, that is good to know. I'm going to just switch to rasterizing for the sites that ha

Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Tres Finocchiaro
Kevin, Just as an aside, if you (or anyone else here) does find yourself needing to escalate bugs with printing APIs to the JDK-level, please feel free to send me a DM. Here's some examples, authored by a commercial JDK-support provider that I work closely with. I say this out of empathy (no spo

Re: Printing fails to render some page contents, potential PDFPageable rasterizing improvements

2024-12-04 Thread Kevin Day
Thank you. Your approach to preserving the current negative dpi value behavior makes a lot of sense. It's tricky messing with public APIs! Would you like me to propose a patch for PDF Debugger as well? On Wed, Dec 4, 2024, 4:56 AM Tilman Hausherr wrote: > Hi, > > I've committed your suggestio