Error while getting page count

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
ZSubotic
User
Posts: 4
Joined: Mon Aug 11, 2008 10:59 am

Error while getting page count

Post by ZSubotic » Mon Oct 04, 2010 11:47 am

Hi,
after many years successfull working with your pdf-libraries, now we are getting first post from customer.
The customer has attached his PDF-Document and tries to read it with our libs.
I'm using this code for that.

if (IS_DS_SUCCESSFUL(PXCp_ReadDocumentW(m_pdfDest, PDFFileDest, 0)) &&
IS_DS_SUCCESSFUL(PXCp_ReadDocumentW(pdfSrc, PDFFileSrc, 0)))
{
DWORD NoOfPages;

char szBuf[128];
szBuf[0] = '\0';
LONG dummVal = 128;
HRESULT retVal = PXCp_GetPagesCount(pdfSrc, &NoOfPages);

PXCp_GetPagesCount failes with the error (after using PXCp_Err_FormatErrorCode(retVal, szBuf, dummVal);) "compression error".
This message doesent't give me a proper information.

PDF-Document has some attributes or whatever that causes this error.
Please give me a hint to solve this problem.

Best regards
Zoran.
Attachments
0000000061_ID02342_002.pdf
(268.38 KiB) Downloaded 228 times

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

Re: Error while getting page count

Post by Lzcat - Tracker Supp » Mon Oct 04, 2010 12:12 pm

This document use encryption method (AES), not supported by V3 libraries.
V4 libraries support AES encription, so recommended solution is simple - upgrade.
HTH.
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.

ZSubotic
User
Posts: 4
Joined: Mon Aug 11, 2008 10:59 am

Re: Error while getting page count

Post by ZSubotic » Mon Oct 04, 2010 12:45 pm

Thanks, now it is clear.

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13320
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Error while getting page count

Post by Tracker Supp-Stefan » Mon Oct 04, 2010 1:26 pm

Our Pleasure ZSubotic

Best,
Stefan

Post Reply