Page 1 of 1

SetOperationRestriction of IPXC_Document

Posted: Tue May 29, 2018 4:56 pm
by mmasood
Hi,

I am using VB6 and the latest version of Core API (7.0.325.1).

I am trying to set permissions on a pdf file but that is not working. Following is the code:

Code: Select all

pDoc.SetOperationRestriction Perm_ObjAnnot, Perm_OperCopy, True
pDoc.WriteToFile cdlg.Filename
The code above works but when I open the file again and get the permission, it has not changed. What am i missing here?

Regards,
M

Re: SetOperationRestriction of IPXC_Document

Posted: Wed May 30, 2018 7:25 am
by Sasha - Tracker Dev Team
Hello mmasood,

The SetOperationRestriction method sets the restrictions for the runtime, meaning that you cannot save these settings with the document, as the PDF security itself has very limited settings and the https://sdkhelp.pdf-xchange.com/vi ... Encryption method should be used to set it and save it with the document.

Cheers,
Alex

Re: SetOperationRestriction of IPXC_Document

Posted: Fri Jun 01, 2018 2:02 pm
by mmasood
Hi Alex,

Is there a companion Get method for getting the encryption with the security flags? If yes, can you please provide a link?

Regards,
M

Re: SetOperationRestriction of IPXC_Document

Posted: Sat Jun 02, 2018 6:31 am
by Sasha - Tracker Dev Team
Hello mmasood,

The developer who can answer this won't be available for the couple of days - hopefully I can tell more afterwards.

Cheers,
Alex

Re: SetOperationRestriction of IPXC_Document

Posted: Tue Jun 05, 2018 2:03 pm
by whoit
Hi -

Has your developer been able to address this yet?

Thanks,
Wayne

Re: SetOperationRestriction of IPXC_Document

Posted: Wed Jun 06, 2018 6:03 am
by Sasha - Tracker Dev Team
Hello Wayne,

He told that there is no such a method as of now, he will try to add it in one of the future releases though.

Cheers,
Alex

Re: SetOperationRestriction of IPXC_Document

Posted: Wed Jun 06, 2018 2:01 pm
by whoit
Hi Alex -

Ok, thanks for checking.

We are facing several security-based issues with our clients so this would help as well.

-Wayne

Re: SetOperationRestriction of IPXC_Document

Posted: Thu Jun 07, 2018 6:07 am
by Sasha - Tracker Dev Team
:)