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, Sean - Tracker, Chris - Tracker Supp, 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: 99
Joined: Fri Sep 18, 2015 9:49 pm

SetOperationRestriction of IPXC_Document

Post by mmasood » Tue May 29, 2018 4:56 pm

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

User avatar
Sasha - Tracker Dev Team
User
Posts: 4433
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post by Sasha - Tracker Dev Team » Wed May 30, 2018 7:25 am

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.tracker-software.com/vi ... Encryption method should be used to set it and save it with the document.

Cheers,
Alex
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

mmasood
User
Posts: 99
Joined: Fri Sep 18, 2015 9:49 pm

Re: SetOperationRestriction of IPXC_Document

Post by mmasood » Fri Jun 01, 2018 2:02 pm

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

User avatar
Sasha - Tracker Dev Team
User
Posts: 4433
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post by Sasha - Tracker Dev Team » Sat Jun 02, 2018 6:31 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

whoit
User
Posts: 271
Joined: Tue Jul 07, 2015 3:30 pm

Re: SetOperationRestriction of IPXC_Document

Post by whoit » Tue Jun 05, 2018 2:03 pm

Hi -

Has your developer been able to address this yet?

Thanks,
Wayne

User avatar
Sasha - Tracker Dev Team
User
Posts: 4433
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post by Sasha - Tracker Dev Team » Wed Jun 06, 2018 6:03 am

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
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

whoit
User
Posts: 271
Joined: Tue Jul 07, 2015 3:30 pm

Re: SetOperationRestriction of IPXC_Document

Post by whoit » Wed Jun 06, 2018 2:01 pm

Hi Alex -

Ok, thanks for checking.

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

-Wayne

User avatar
Sasha - Tracker Dev Team
User
Posts: 4433
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: SetOperationRestriction of IPXC_Document

Post by Sasha - Tracker Dev Team » Thu Jun 07, 2018 6:07 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply