Page 1 of 1

ShowBrokenInfo - Identifying Issues with PDF documents

Posted: Tue Aug 02, 2016 5:57 pm
by GregWente
We have run across some issues when loading a PDF into the PDF-XChange Viewer SDK and some of the pages are missing. When I use the PDF-XChange Viewer and open the PDF, there is an explanation mark on the status bar "Show Broken Info". It allows me to click on it for a dialog box to appear to specify the issue. What parameter can I look for in the Viewer.SDK to quickly look for "Broken Info" without having to call the "ShowBrokenInfo"? I would like to identify the issue prior to the dialog box displaying.

Re: ShowBrokenInfo - Identifying Issues with PDF documents

Posted: Wed Aug 03, 2016 4:53 pm
by Vasyl-Tracker Dev Team
Hi, Greg.

If I understand you correctly - you need feature to get 'Broken Info' description programmatically?
Sorry, but currently it is not possible.

Cheers.

Re: ShowBrokenInfo - Identifying Issues with PDF documents

Posted: Wed Aug 03, 2016 6:04 pm
by GregWente
Is there an indicator that there is something wrong with the PDF? I can always pull the description from the ShowBrokenInfo dialog box when displayed.

Thank you!

Re: ShowBrokenInfo - Identifying Issues with PDF documents

Posted: Wed Aug 03, 2016 8:22 pm
by Vasyl-Tracker Dev Team
No such indicator currently. But you may try to obtain state of 'ShowBrokenInfo' command when document is opened:

Code: Select all

pdfViewer.GetProperty("Commands["ShowBrokenInfo"].State", val, 0);

bool docIsBroken = val != 0;
HTH

Re: ShowBrokenInfo - Identifying Issues with PDF documents

Posted: Wed Aug 03, 2016 9:13 pm
by GregWente
Worked perfectly. Thank you!

Re: ShowBrokenInfo - Identifying Issues with PDF documents

Posted: Thu Aug 04, 2016 9:26 am
by Tracker Supp-Stefan
:)