#1
Posted
:
Monday, March 9, 2015 8:41:18 AM(UTC)
Groups: Registered
Posts: 10
I cannot get the page count for multi-page PDFs. The following comes back with a count of 1 even though the Adobe viewer shows more. This is LeadTools 16 C++ class library. I have previously unlocked PDF support and set resolution to 300 for x and y.
LBitmapBase lb_base;
lb_base.SetFileName (L"c:\\temp\\test.pdf");
LFile l_file (&lb_base);
FILEINFO file_info;
file_info.uStructSize = sizeof (FILEINFO);
L_INT i_stat = l_file.GetInfo (&file_info, sizeof (FILEINFO), FILEINFO_TOTALPAGES);
int i_num_pages = file_info.TotalPages;
#2
Posted
:
Tuesday, March 10, 2015 6:55:19 AM(UTC)
Groups: Registered, Tech Support
Posts: 26
Randy,
Your code should work properly as long as other conditions are met, such as correct unlocking of PDF support.
Can you see this issue when using one of our pre-built demos such as the Main API demo? If yes, can you see it when using other multi-page PDF files?
If you still can't isolate the cause of the problem, send an email to
support@leadtools.com and include the following in it:
1- Your toolkit serial number (do NOT post it here).
2- Build number (file properties version info) of the following files:
Ltwvcu.dll
Ltwvc2u.dll
Ltwvca.dll
Lfpdfu.dll
Ltfilu.dll
Ltkrnu.dll
3- If you can't see the problem in our demos, please send us a small project that reproduces the problem. There's no need to send your DLLs with the project but remember to include the unlocking code and NOT post the code here.
Before sending the files, make sure to put them all in one ZIP or RAR file. If the ZIP or RAR file exceeds 5 MB in size, send an email to
support@leadtools.com to give you the steps needed for uploading the file to our FTP server. Please reference this post in your email.
Faris Shahin
Developer Support Engineer
LEAD Technologies, Inc.
![LEAD Logo LEAD Logo](https://www.leadtools.com/images/new-site-images/leadtools-logo-header.png)
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.