Hi Support,
Please describe in detail how each of the PXC_DocumentOpenFlags (used in OpenDocumentFromFile) affects opening a core document.
-žarko
Details for DocumentOpenFlags for OpenDocumentFromFile SOLVED
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.
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: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Details for DocumentOpenFlags for OpenDocumentFromFile
Hello zarkogajic,
Here goes:
DocOpenFlag_Preview - if the document is protected by the DRM protection, this protection won't be initialized. Furthermore, the XFA documents will be initialized differently, so their scripts won't have access to the UI.
DocOpenFlag_IgnoreXFA - if set, then XFA won't be initialized at all. Thus the XFA documents will display only the default page data that they have.
DocOpenFlag_NeedOwnerPerms - the owner password will be requested for the password protected documents. Without this flag, both the user and owner password will grant access.
DocOpenFlag_NoAuthUI - forbids to show UI for the protection system, for example password request. If the password is needed and such a flag is specified, then the authorization error will be returned.
DocOpenFlag_StrictHeaders - the PDF Specification does not forbid some garbage data before the PDF document header. Thus the header should not necessary be at the beginning of the file. But this often causes a problem for example when the PDF file is embedded and other format (*.msg for example) can be mistaken for the PDF file. When this flag is set, the garbage data is not allowed before the header.
Cheers,
Alex
Here goes:
DocOpenFlag_Preview - if the document is protected by the DRM protection, this protection won't be initialized. Furthermore, the XFA documents will be initialized differently, so their scripts won't have access to the UI.
DocOpenFlag_IgnoreXFA - if set, then XFA won't be initialized at all. Thus the XFA documents will display only the default page data that they have.
DocOpenFlag_NeedOwnerPerms - the owner password will be requested for the password protected documents. Without this flag, both the user and owner password will grant access.
DocOpenFlag_NoAuthUI - forbids to show UI for the protection system, for example password request. If the password is needed and such a flag is specified, then the authorization error will be returned.
DocOpenFlag_StrictHeaders - the PDF Specification does not forbid some garbage data before the PDF document header. Thus the header should not necessary be at the beginning of the file. But this often causes a problem for example when the PDF file is embedded and other format (*.msg for example) can be mistaken for the PDF file. When this flag is set, the garbage data is not allowed before the header.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 1372
- Joined: Thu Sep 05, 2019 12:35 pm
Re: Details for DocumentOpenFlags for OpenDocumentFromFile SOLVED
Hi Alex,
All clear, thanks.
-žarko
All clear, thanks.
-žarko
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Details for DocumentOpenFlags for OpenDocumentFromFile
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ