Thanks, initial tests are going well, this is very helpful! Would PDFBOX consider adding this as part of the API?
Although at initial glance t doesn't seem like it would be that bad of a problem to rasterize most printed documents, it is a problem in the low-dpi world (e.g. 180 DPI, 203 DPI receipts and shipping labels) as it's often the difference between a scannable barcode and a non-scannable one due to some odd default dithering settings in the printer drivers. Downstream PR, for those interested: https://github.com/qzind/tray/pull/959 -Tres - tres.finocchi...@gmail.com