Closed gvsyn closed 4 years ago
Came here to do just this, nice to be beaten to it. I have this exact change patched into our systems, would love to see it merged.
My testing has not identified any problems, and on the upside, it fixes the problem failing to open valid PDFs.
@dasyurid It's probably worth re-doing, I thought I'd closed this whilst trying to look at the coverage problem (also it seems I nuked my fork).
Similarly, had to put this patch in at work. There are a slew of other font loading ones I've put in there, but they need cleaning up for more general use.
When trying to open PDFs from Sharp scanners,
open
fails reporting invalid PDF version. The header is as follows:From the PDF spec there are no restrictions stating that after the minor version there should be a newline or similar. Adjusted the code to not care what there is after the 1.x