Hello,

In itext, can we decrypt a pdf file using the user password that was used to
encrypt the file?

I know decryption can be done using owner password. What I want to achieve
is:

In my web application, keep pdf files in encrypted form. When the authorized
user requests for a pdf file, then depending on the permissions (user's
role), I send them a file with appropriate permissions - ALLOW_PRINTING,
ALLOW_COPY etc.

What I am doing right now is I encrypt a file using OWNER and USER passwords
and then decrypt it using OWNER password but then that file allows all
actions - print, copy etc.

thanks,
deep
-- 
View this message in context: 
http://itext-general.2136553.n4.nabble.com/pdf-decryption-using-user-password-tp3031879p3031879.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to