Hi,
I try to print a PDF document that is secured via a password.
I'm using the Pdf2Xps Addon to convert the PDF before printing it.pdftron.PDF.Convert.ToXps(doc, xpsFilePath);
var writer = PrintQueue.CreateXpsDocumentWriter(printDialog.PrintQueue); writer.WriteAsync(xpsFilePath);
Any idea what else to do that it will work?
Thanks for your Help
Jan
You would use doc.GetSecurityHandler ().GetUserPassword(). For the owner password (GetMasterPassword()) because the original password may be truncated or padded it may not be the same as original owner password so you should probably not rely on this method to obtain the original pass.
Hio,
thanks for the answer.
Is it possible too retrieve the already entered password (to view the pdf) from the viewer or else where?
So the user must nocht enter the password again.
Thanks for your help.