How to use SetStdEncryption

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
Mitsuaki
User
Posts: 2
Joined: Wed Dec 09, 2015 12:32 am

How to use SetStdEncryption

Post by Mitsuaki »

Please tell me the method to add a limit to without UserPassword.

It becomes the error when I perform it as follows.

Code: Select all

HRESULT hr = pDocument->SetStdEncryption( PXC_StdEncryptionMehtod::SEM_AV3, VARIANT_TRUE, PXC_SecurityPermissions::Permit_Nothing, "", "OwnerPassword" );
hr is 0x80070057.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: How to use SetStdEncryption

Post by Sasha - Tracker Dev Team »

Hello Mitsuaki,

I've debuged our code an it seems that there was a bug when pUserPassword == "". The fixed function will be available next build.

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