SuffolkLITLab / FormFyxer

A tool for learning about and pre-processing forms
MIT License
11 stars 1 forks source link

Add PDF unlocking code #27

Closed nonprofittechy closed 2 years ago

nonprofittechy commented 2 years ago

When I tried with this PDF: adr100.pdf

it didn't normalize the names. It looks like the form is "locked" from editing with no password. We should try automatically unlocking PDFs where it's possible or at least include a simple function that people can use for unlocking.

nonprofittechy commented 2 years ago

@colarusso, you do unlocking in your batch processing workflow: is that using something in Acrobat?

nonprofittechy commented 2 years ago

This seems to imply that just using pikepdf.open is enough: https://stackoverflow.com/questions/28192977/how-to-unlock-a-secured-read-protected-pdf-in-python