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...

Command icon 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

minoroffense created an issue. See original summary.

minoroffense’s picture

Status: Active » Needs review
minoroffense’s picture

Issue summary: View changes
somatick’s picture

Thanks @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.

somatick’s picture

Status: Needs review » Fixed

Committed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

minoroffense’s picture

Excellent, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.