Closed bitstreamout closed 3 years ago
Are you requesting that this output gets parsed into some structured metadata?
Are you requesting that this output gets parsed into some structured metadata?
I do not get this ... I've submitted the attached patch to our local build of (python-)python-magic package here fix-4-file-5.40.zip
python-magic does not include a copy of libmagic, it requires that is provided by the system. So if you had libmagic 5.40 installed this new feature should just work.
With libmagic 5.40 the python-magic test of its pdf test file simply fails and the patch in the attached zip does fix this. Compare with bug https://bugzilla.opensuse.org/show_bug.cgi?id=1184881 ... if you think this is not required than simply close this issue.
Ah, you mean the tests. Thanks for letting me know!
@bitstreamout since your patch makes the test fails with earlier file
versions, what about testing `startswith('PDF document, version 1.2') instead?
@ahupp is there a way in your test framework?
@pombredanne I fixed those tests to handle both outputs in 0.4.23
New file version 5.40 counts pages in PDF files: