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: Tracker Support, TrackerSupp-Daniel, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, Andrew - Tracker Support, Tracker - Clarion Support, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Support Staff, moderators

Post Reply
neilpitman
User
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);

if (!IS_DS_SUCCESSFUL(hr))
{

printf("Error Code %d\n",hr)
}
Attachments
badpsd.zip
(24.47 KiB) Downloaded 228 times

Lzcat - Tracker Supp
Site Admin
Posts: 711
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

Hi.

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
xref
1 13
0000000000 65535 f
0000025932 00000 n
<...>
0000026137 00000 n
trailer
<...>

There should be 0 (zero) instead of 1.
Victor
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