Opening Badly Formated PDFs

PDF-XChange Editor SDK for Developers

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.
Post Reply
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Opening Badly Formated PDFs

Post by jeffp »

With the new Editor SDK, I have had a number of customers alert me to the fact that when a PDF is poorly formatted error or warning messages appear in the Editor about things like misaligned objects or other problems detected in the document.

In the ViewerAX, which we used before the Editor SDK, apparently these message did not show up.

Is there a way to turn off these messages when opening a PDF?

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

Re: Opening Badly Formated PDFs

Post by Sasha - Tracker Dev Team »

Hello Jeff,

Can you please show one of those warnings on a screenshot?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Opening Badly Formated PDFs

Post by jeffp »

See attached.
PDF_warning_for_Lucion_Support_2.png
PDF_warning_for_Lucion_Support.png
PDF_warning_for_Lucion_Support.png (11.59 KiB) Viewed 1418 times
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Opening Badly Formated PDFs

Post by Sasha - Tracker Dev Team »

Hello Jeff,

You will have to fill the DocInfoBar.DisabledSpans array in settings with the IDs of the info bars that need to be hidden. Here's the list:
  • docInfoBarSpan.ProFeaturesUsed
    docInfoBarSpan.ViewSignVer
    docInfoBarSpan.PDFA
    docInfoBarSpan.DigiSig
    docInfoBarSpan.Form
    docInfoBarSpan.ApplyRedact
    docInfoBarSpan.ApplySign
    docInfoBarSpan.BrokenFlags
    docInfoBarSpan.FlashAvail
    docInfoBarSpan.UR3
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Opening Badly Formated PDFs

Post by jeffp »

Do you have a code snippet example of how to set this array?
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Opening Badly Formated PDFs

Post by Sasha - Tracker Dev Team »

Hello Jeff,

Like any other array type CAB node:

Code: Select all

PDFXEdit.ICabNode input = pOp.Params.Root["Input"];
input.Add().v = pAnnot;
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply