PXCp_SetPermissions not working

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
igorg
User
Posts: 38
Joined: Thu Nov 30, 2006 7:51 am

PXCp_SetPermissions not working

Post by igorg » Wed Jul 25, 2007 9:26 am

I used in my applcation with 2 Security Functions
1. PXCp_SignDocumentUsingPFXW
2. PXCp_SetPermissions
The Sign is work fine but the Set Permissions not work, the document have all permissions when i set Permissions nothing.
This is example of my code.

public enum PXC_SecurityPermissions : uint
{
Permit_Printing = (1 << 2),
Permit_Modification = (1 << 3),
Permit_Copying_And_TextGraphicsExtractions = (1 << 4),
Permit_Add_And_Modify_Annotations = (1 << 5),
Permit_FormFilling = (1 << 8),
Permit_TextGraphicsExtractions = (1 << 9),
Permit_Assemble = (1 << 10),
Permit_HighQualityPrinting = (1 << 11),
Permit_Nothing = 0xFFFFF0C0,
Permit_All = 0xFFFFFFFC,
};

[DllImport("xcpro35")] public static extern int PXCp_SetPermissions(int pObject, int enclevel, uint permFlags);

res = XCPro35_Defs.PXCp_SetPermissions(pdf, 128, (uint)XCPro35_Defs.PXC_SecurityPermissions.Permit_Nothing);

Ivan - Tracker Software
Site Admin
Posts: 3591
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Post by Ivan - Tracker Software » Wed Jul 25, 2007 10:19 am

Did you call PXCp_EnableSecurity function to enable security before saving the document ?
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

igorg
User
Posts: 38
Joined: Thu Nov 30, 2006 7:51 am

Post by igorg » Thu Jul 26, 2007 4:30 am

No i'm not used this funcion i will try and send you the result.

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Wed Aug 01, 2007 9:31 pm

Thanks - assume all to be well now unless we hear otherwise.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply