Exception 0x82142716 while calling OpenDocument(...)

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

s.zimmer
User
Posts: 2
Joined: Wed Sep 19, 2012 1:04 pm

Exception 0x82142716 while calling OpenDocument(...)

Post by s.zimmer »

Hello,

one of our customers receives the Exception "0x82142716" while calling OpenDocument.

I'm using the following .Net ( C# ) Code:

Code: Select all

int flag = (int)PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI;
int activeDocID;
axPDFXCview.OpenDocument(path, string.Empty, out activeDocID, flag);
This exception is only thrown when the Viewer shows the first file, after this exception the viewer works fine.

In DebugTrace this messages will be written by PDFXChange:

[6188] MainFrm.cpp(3432) : Trace/s : OpenDocumet:: ReadDocument start
[6188] MainFrm.cpp(3434) : Trace/s : OpenDocumet:: ReadDocument end: hr=0x00000000
[6188] PDFR_MetaData.cpp(682) : TraceError 0x82142716: Field 'Subject' isn't set into Info dictionary
[6188] PDFR_MetaData.cpp(682) : TraceError 0x82142716: Field 'Keywords' isn't set into Info dictionary
[6188] PDFR_MetaData.cpp(800) : TraceError 0x82142716: Field 'PXCViewerInfo' isn't set into Info dictionary
[6188] MainFrm.cpp(3776) : Trace/s : OpenDocumet:: hr = 0x00000000

Could you tell me how to avoid this?
Several customers use this code, this error occures only at one workstation.

Feel free to contact me if you need additional information.

Greetings,
S.Zimmer
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Exception 0x82142716 while calling OpenDocument(...)

Post by Nico - Tracker Supp »

Hi s. zimmer,

Thank you for your post.
The call returns with hr = 0x0 which means no errors and it looks fine to me.
The trace messages may indicate some problem or warning about the internal structure of the file.
Please let me ask you:
  • Does this happen with all pdf documents? Are you sure the pdf document you are opening is valid?
  • Could you send us a small test project which we can compile, run and test?
Thanks.

Sincerely,
s.zimmer
User
Posts: 2
Joined: Wed Sep 19, 2012 1:04 pm

Re: Exception 0x82142716 while calling OpenDocument(...)

Post by s.zimmer »

Hi,

I have two documents which throw the exception, but it will be thrown when calling "DoVerb" not while "OpenDocument", sorry for this misstake.

Code: Select all

                        
axPDFXCview.DoVerb("Documents[#4096].Pages[0].Text.Chars.Count", "get", DataIn, out countDataOut, 0);

                        int nCharsCount = (int)countDataOut;
                        object[] vArra = new object[2];
                        vArra[0] = 0;
                        vArra[1] = nCharsCount - 1;
                        object textDataOut = null;

//Exception
                        axPDFXCview.DoVerb("Documents[#4096"].Pages[0].Text", "Get", vArra, out textDataOut, 0);
Could you please contact me via E-Mail, so that I can send our customer documents to you.
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: Exception 0x82142716 while calling OpenDocument(...)

Post by Nico - Tracker Supp »

Hi s.zimmer,

Thank you for your post.
Please send the documents and others to support@pdf-xchange.com
Thanks.

Sincerely,