Error -2112946175 on PXCp_ReadDocumentW

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
Posts: 39
Joined: Fri Jun 17, 2005 8:38 am

Error -2112946175 on PXCp_ReadDocumentW

Post by neilpitman » Fri May 22, 2009 9:11 am

Attempting to read the attached PDF file gives the error above.

It is PDF version 1.1 which is a little unusual these days, but the file does read OK elsewhere.

All we are doing is :
hr = PXCp_ReadDocumentW(pObject,CA2W(pdfFile),0);


printf("Error Code %d\n",hr)
(24.47 KiB) Downloaded 264 times

Lzcat - Tracker Supp
Site Admin
Posts: 722
Joined: Thu Jun 28, 2007 8:42 am

Re: Error -2112946175 on PXCp_ReadDocumentW

Post by Lzcat - Tracker Supp » Fri May 22, 2009 2:23 pm


The problem is that your file does not conform to the PDF Reference/format and xcpro supports only fully correct pdf files. Both the Acrobat and PDF-XChange Viewer have more advanced PDF reading engines and can compensate/read such files.
Specififcally - the problem is in the reference table:
% Object reference table begins here
1 13
0000000000 65535 f
0000025932 00000 n
0000026137 00000 n

There should be 0 (zero) instead of 1.
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.

Post Reply