Page 1 of 1

Remove protection

Posted: Wed Jun 22, 2016 2:24 pm
by Tom Princen
What s the best way to remove the protection from a PDF? (without entering the pass)

I noticed that when I print to the tracker virtual printer the created PDF is not protected anymore.
Problem is that i do not know how to use virtual printer to create PDFs without the save as window is prompted... Or is that not possible?
(the C# samples do not work on my PC)

Or is there an easier way? Without using the driver dlls?

Re: Remove protection

Posted: Wed Jun 22, 2016 2:35 pm
by Sasha - Tracker Dev Team
Hello Tom,

The best way would be to use the IPXC_Document::SetStdEncryption method with the SEM_NoEncryption as a first argument. Note that this will work when the document has authorization for changes meaning that the owner password was used.

Cheers,
Alex

Re: Remove protection

Posted: Wed Jun 22, 2016 2:59 pm
by Tom Princen
This will not work because the passord is not available...

Is it possible to use the printer without the save file dialog?

Re: Remove protection

Posted: Wed Jun 22, 2016 3:04 pm
by Ivan - Tracker Software
This will not work because the passord is not available...
Unfortunately, to remove protection from existing document, you have to have owner permissions for this document.
Is it possible to use the printer without the save file dialog?
Is this question related to Core API SDK? Or you are talking now about Driver API SDK?

Re: Remove protection

Posted: Wed Jun 22, 2016 3:11 pm
by Tom Princen
then ideed is it for the driver API

Re: Remove protection

Posted: Wed Jun 22, 2016 3:20 pm
by Ivan - Tracker Software
Yes, it is possible. You have to set property "Save.ShowSaveDialog" to 0, and "Save.File" to the full file name where document should be stored.
For more information, please refer to Driver API help.

Re: Remove protection

Posted: Thu Jun 23, 2016 12:55 pm
by Tom Princen
Can I use this:

create a new page in a new document. And copy all contents from the protected page on the new page?
And then save the new document.

How do I copy all the contents?

Re: Remove protection

Posted: Thu Jun 23, 2016 3:50 pm
by Tracker Supp-Stefan
Hello Tom,

Technically this is possible, but you are in this way effectively circumventing the security restrictions placed by the author of the document - something that is not exactly good practice ;)

Regards,
Stefan