Details for DocumentOpenFlags for OpenDocumentFromFile  SOLVED

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
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Details for DocumentOpenFlags for OpenDocumentFromFile

Post by zarkogajic »

Hi Support,

Please describe in detail how each of the PXC_DocumentOpenFlags (used in OpenDocumentFromFile) affects opening a core document.

-žarko
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Details for DocumentOpenFlags for OpenDocumentFromFile

Post by zarkogajic »

Support?

ž
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Details for DocumentOpenFlags for OpenDocumentFromFile

Post by zarkogajic »

Ping :)

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

Re: Details for DocumentOpenFlags for OpenDocumentFromFile

Post by Sasha - Tracker Dev Team »

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
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1370
Joined: Thu Sep 05, 2019 12:35 pm

Re: Details for DocumentOpenFlags for OpenDocumentFromFile  SOLVED

Post by zarkogajic »

Hi Alex,

All clear, thanks.

-žarko
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Details for DocumentOpenFlags for OpenDocumentFromFile

Post by Sasha - Tracker Dev Team »

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