SetOperationRestriction of IPXC_Document

A forum for questions or concerns related to the PDF-XChange Core API SDK

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

SetOperationRestriction of IPXC_Document

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
mmasood
User
Posts: 101
Joined: Fri Sep 18, 2015 9:49 pm

Re: SetOperationRestriction of IPXC_Document

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: SetOperationRestriction of IPXC_Document

Post by whoit »

Hi -

Has your developer been able to address this yet?

Thanks,
Wayne
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post 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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
whoit
User
Posts: 269
Joined: Tue Jul 07, 2015 3:30 pm

Re: SetOperationRestriction of IPXC_Document

Post 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
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply