3 ms·
Some small PDF files are saved as uncompressed text. Invoices are a typical example. This means that we can open those files, read them as one single string an
by pmontra 3y ago
Some small PDF files are saved as uncompressed text. Invoices are a typical example.
This means that we can open those files, read them as one single string and match the expected text in unit tests. I've got a few projects doing that and it was fine.
If the text is compressed, pipe its content to qpdf first.