Bladieblah / xpdf-python

Python wrapper around the pdftotext functionality of xpdf
GNU General Public License v3.0
2 stars 2 forks source link

Add password support #10

Closed Bladieblah closed 1 year ago

Bladieblah commented 1 year ago

closes #4

ReMiOS commented 1 year ago

Good work, but i have a suggestion When i look in the PFDDoc.h and PDFDoc.cc is see no userName value I think "userName" should be "ownerPassword and "password" like "userPassword"

In the PdfLoader.cc the value should be passed if one (or both) of the values is provided

if (userName && password) { ==> if (ownerPassword || userPassword) {