Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Extracting Page Numbers as a Variable |
Post Reply
|
| Author | |
datagraphic
Beginner
Joined: 22 May 13 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: Extracting Page Numbers as a VariablePosted: 22 May 13 at 10:38AM |
|
hi,
I need to extract the page numbers contained in a PDF. ie If there are 4 pages in the PDF i need to extract the number 4 and use it for calcualtions on another piece of software in a continuous automated process. Is this possible? DG. :-)
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 13 at 12:18PM |
|
Hi DG!
Yes. It's possible. What's the next question? :) Use one of the first step codes. Put in a LoadFromFile... ...and then use function PageCount. Cheers and welcome here, Ingo |
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 13 at 2:48AM |
|
DG, The second approach usig the DA functions will be the fastest as it doesn't need to load the entire file into memory. QP.LoadFromFile("4pages.pdf", ""); int pageCount = QP.PageCount(); QP.RemoveDocument(QP.SelectedDocument()); or int fh = QP.DAOpenFile("4pages.pdf", ""); int pageCount = QP.DAGetPageCount(fh); QP.DACloseFile(fh); Andrew.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() 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 |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store