Hi Support,
This topic is a kind of extension to https://forum.pdf-xchange.com/viewtopic.php?t=39056 but I'm creating a new topic as maybe the answer will be different.
When using OpenDocumentFromFile to open a non-Standard secured PDF ("Adobe.PubSec"), providing empty AuthDoc implementation for IPXC_DocAuthCallback parameter - the document get's opened (so no exception).
But, trying to get the page count (IPXC_Pages::Count) -> exception "PXCLib: Required value not found" is thrown. This is the case never mind if the certificate (digital id used to encrypt) is available on my machine or not.
Using OpenDocumentFromFile without the pAuthCallback parameter (so using null):
1) for document encrypted with available certificate: all works (can get to document's pages and the rest)
2) for document encrypted with unavailable certificate: "Wrong password" is thrown.
For 1 I would somehow need to know it will result in (2) on another machine (where certificate is not available).
For 2 I would expect a different exception - as it is not that the password is wrong but digital id does not exist.
-žarko
OpenDocumentFromFile using IPXC_DocAuthCallback for non-Standard security handler SOLVED
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, 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.
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.
-
- User
- Posts: 1370
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 1370
- Joined: Thu Sep 05, 2019 12:35 pm
Re: OpenDocumentFromFile using IPXC_DocAuthCallback for non-Standard security handler SOLVED
Hi,
I will close this topic as the next answer applies here as well: https://forum.pdf-xchange.com/viewtopic.php?p=161889#p161889
-ž
I will close this topic as the next answer applies here as well: https://forum.pdf-xchange.com/viewtopic.php?p=161889#p161889
-ž
- TrackerSupp-Daniel
- Site Admin
- Posts: 8579
- Joined: Wed Jan 03, 2018 6:52 pm
OpenDocumentFromFile using IPXC_DocAuthCallback for non-Standard security handler
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com