Problem/Motivation
We have secured PDFs which aren't actually encrypted with a password where we need to read the metadata. The underlying library logs a " Message: Secured pdf file are currently not supported." message. But we can tell the libary to ignore the encrypted flag and try anyways.
Steps to reproduce
Try to open an encrypted PDF.
Proposed resolution
Set a config option into the parser to tell it to ignore the encryption.
See https://github.com/smalot/pdfparser/blob/master/doc/CustomConfig.md#opti...
Issue fork file_mdm_pdf-3588844
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
minoroffense commentedComment #4
minoroffense commentedComment #5
somatick commentedThanks @minorOffense
I don't have the means to create an unencrypted pdf with the encryption bit set to test but the change looks pretty minimal so happy to merge.
Comment #7
somatick commentedCommitted
Comment #9
minoroffense commentedExcellent, thanks!