Q:
I was able to bypass printing securities for the image extraction, but
wanted also to test the security removal. I could not find a sample of
how to do this. Please help me with the needed code to remove the
security of a PDF and save that PDF as a new PDF without security.
A:
Please take a look at the following FAQ:
How do I remove PDF security?
The VB.NET translation could be as follows:
…
Dim doc as PDFDoc = new PDFDoc(“encrypted.pdf”)
doc.InitializeSecurityHandler()
doc.SetSecurityHandler(Nothing) ’ or something similar.
doc.Save(“out.pdf”, SDF.Doc.SaveOptions.e_linearized)