Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tres Finocchiaro
Is there a way to increase this programmatically? I'm still not sure what the 72 dpi is, is this something that can be adjusted? The contents of the PDF are predominantly vectors, so I would expect the document to scale up properly as it does for all other applications I've tested. - tres.finocc

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tilman Hausherr
72dpi is the 100% in PDFDebugger and in the renderImage() call with 1 parameter or with scale 1. Printers usually have a higher dpi. AFAIK desktop printers have 1200 dpi. The first LaserJet printer had 300 dpi. A cheap label printer has 203 dpi. Tilman On 18.10.2023 17:53, Tres Finocchiaro wro

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tres Finocchiaro
Hi, yes, I understand this, but are you saying it's a bug with the way the PDF is created? Since it contains mostly factor shapes, I would expect it to scale properly, as it does with other applications. Is this assumption wrong? The PDF is created by a 3rd party application (possible directly f

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tres Finocchiaro
Typo: it contains mostly *vector shapes

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tilman Hausherr
Hi, The PDF is likely fine. The bug is either with PDFBox or with Java itself. My suspicion is that it's a rounding error. 72dpi and 100% is the same thing. 72 dpi is because a unit in PDF is 1/72 inch. Tilman On 18.10.2023 18:29, Tres Finocchiaro wrote: Hi, yes, I understand this, but ar

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tres Finocchiaro
> > The PDF is likely fine. The bug is either with PDFBox or with Java itself. > My suspicion is that it's a rounding error. Thanks. Should I file a bug report against this behavior? Somewhat unrelated but I tracked down the source of the PDF and it comes from Pitney Bowes API: https://docs.shi

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tilman Hausherr
default dpi means that it is rendered at 100%, i.e. 1 PDF unit = 1 screen unit. This is too small for a modern screen, and too small for a printer. Like I wrote, a cheap label printer has more. The unit is defined in the PDF specification ("user space unit is 1⁄72 inch"). There is no need to

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tres Finocchiaro
Hi, Your initial complaint was about PDFDebugger PDFDebugger was mentioned because the top and bottom cut off symptom was visible there as well as the PDFwriter. The original symptom we observed was that the right side of the bordering box on the PDF is cut off. This right side is only cut of

Re: Slight rendering issues Apache FOP document

2023-10-18 Thread Tilman Hausherr
Hi, It's mostly in PageDrawer.java search for things line width and clip. Also convert the PDF to uncompressed and try to change the page content stream so that only the lines remain, i.e. try to get a "reduced" PDF that still produces the effect. Tilman On 19.10.2023 06:28, Tres Finocchia