-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encrypt is not working and recrypt cleans pdf metadata #350
Comments
That should not happen, encrypting should not remove metadata. Have you tried in the first code to remove the protectionFlag and see what happens on default? 4 means allow printing if i remember right? |
Yes, I've tryed removing I've created this codesanbox returning pdf's metadata logs. I'm using I also noticed that EDIT:
|
Currently my laptop is broken and so I'm unable tohelp or investigate. |
when will it be fixed sir? |
I can confirm it strips the original metadata. |
i use PyPDF2 library python for the backend to create the rest api gateway then use it in my node js application, everything is fine and working perfectly, using only buffer so nothing saves on the disk. Only issue is that i get errors or fails when the request is too high |
Added a test receipt really throws stuff away. Will get to it. |
I'm trying to encrypt a pdf file but the following code is not working:
If I save/open returned pdf on Adobe reader I can see all metada (title, author, subject, etc...) but no password is required to open the pdf and on file properties Adobe says the pdf is not password protected.
Then I tryed to move to
recrypt
, this is working and my pdf is now password protected but the problem is all metadata are cleared. All fields (title, subject, author, etc..) are empty. I've tryed recrypt usingencryptedBuffer
, also tryed adding metadata with other library and every metadata is present if I don't recrypt the pdf.Here's my
recrypt
code:How can I have both
The text was updated successfully, but these errors were encountered: