Thanks, seems like it wasn't the antialiasing. Turning it off and on didn't 
change the results between 2.0.13 and 2.0.14. What did help however was 
                hints.put(RenderingHints.KEY_RENDERING, 
RenderingHints.VALUE_RENDER_QUALITY);

Setting this on 2.0.14 seems to restore the 2.0.13 behavior. Could be 
coincidence though. Need to verify it with a larger amount of documents first. 
Has something about this setting changed between versions when rendering in 
BINARY mode? 

Lukas

-----Ursprüngliche Nachricht-----
Von: Tilman Hausherr <[email protected]> 
Gesendet: Freitag, 5. April 2019 17:00
An: [email protected]
Betreff: Re: QR Image Detection Down 2.0.13 -> 2.0.14

Yes, PDFRenderer now allows to pass rendering hints.

Tilman

Am 05.04.2019 um 16:42 schrieb STAMPF Lukas:
> Hi,
>
> I am using  PDFBox to generate BufferedImages  which I feed to ZXing 3.3.3 to 
> do QR scanning. When I updated from 2.0.13 to 2.0.14 I noticed a severe 
> reduction in scanning reliability. I guess its related to this change 
> https://issues.apache.org/jira/browse/PDFBOX-4391
>
> This is the render command I use:
>              bim = pdfRenderer.renderImageWithDPI(pageCounter, dpi, 
> ImageType.BINARY);
>
> I try multiple dpi settings between 150 and 300, to increase my changes to 
> find a QR code.
> Is there some flag I can set to test out if the antialiasing causes this?
>
> Kind regards
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to