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!
![]() |
PDFViewer PageCount |
Post Reply ![]() |
Author | |
luet ![]() Team Player ![]() ![]() Joined: 09 Aug 16 Location: Germany Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() Posted: 09 Aug 16 at 2:40PM |
How can I get the number of pages in a PDF document?
DPVActiveX1.DQPLPageCount not work. Why not? DPVActiveX1.GetCurrentPage work properly, but PageCount not? How can I DQPL methods apply in the PDF viewer? Many thanks for your help luet
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Luet,
the ViewerSDK and the QuickPDF-lib can work together. But i don't know how this can be done 'cause i'm not using the ViewerSDK. On the official support pages you'll find many "first step guides" and the big reference- and developer-guide: http://www.quickpdf.org/ Getting the pagecount is one of the oldest and easiest functions in the library - unbeleavable that it couldn't work ;-) Perhaps you want to post your complete code around the pagecount-call here and then we'll find the mistake - i'm pretty sure ;-) BTW: Opening the pdf-file with a normal editor like Notepad will show you the internal pdf-script. My sample below is from a 3-page-pdf-document. The pagecount is in the object "/Type /Pages /Count...". %PDF-1.4 %âãÏÓ 1 0 obj << /Type /Pages /Count 3 /Kids [ 2 0 R 9 0 R 16 0 R ] >> endobj 2 0 obj << Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
|
luet ![]() Team Player ![]() ![]() Joined: 09 Aug 16 Location: Germany Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
Hello,
Thanks for your answer. I know the Page Count method of QuickPDF-lib. But I do not want to apply, as I loaded the PDF document in PDF Viewer. The PDF viewer has the GetcurrentPage method works, but why does the viewer no Page Count method? The viewer has unfortunately DQPLPageCount method does not work? Why not? How can I get the number of pages in a PDF document? With the Viewer SDK! Code VB6: Me.DPVActiveX1.OpenFile Addslash (App.Path) & "Test.pdf" Me.Label1.Caption = Me.DPVActiveX1.GetcurrentPage & "off" & Me.DPVActiveX1.DQPLPageCount DQPLPageCount not operating. How can I DQPL methods apply in the PDF viewer? Many thanks for your help luet
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Luet,
i was on the ViewerSDK-pages ... There i've read this one: ... Debenu PDF Viewer SDK is an add-on to and requires the latest version ofDebenu Quick PDF Library (version 12.x). ... So you should take the page count method from the library. If you don't want it at all you can try (if it's existing) something like "MoveToLastPage" or similar and then GetCurrentPage - perhaps this could be an option to get the page count? This doesn't work? Me.Label1.Caption = Me.DPVActiveX1.GetcurrentPage & "off" & Me.DPVActiveX1.PageCount I don't have knowledges regarding the viewer sdk but with Debenu products it's often that you can't mix different types of functions in one instance - so perhaps DQPL- and non-DQPL-functions won't work together? Is there anything in your documentation? BTW: We're all users hear... mostly users of the library - so help could be rare. Edited by Ingo - 10 Aug 16 at 9:45PM |
|
Cheers,
Ingo |
|
![]() |
|
luet ![]() Team Player ![]() ![]() Joined: 09 Aug 16 Location: Germany Status: Offline Points: 41 |
![]() ![]() ![]() ![]() ![]() |
Hello Ingo,
![]() pity that there is no Page Count in the viewer then I have to manage myself differently. Thanks for your good help :-) luet |
|
![]() |
|
mLipok ![]() Senior Member ![]() ![]() Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
![]() ![]() ![]() ![]() ![]() |
Questions:
Whether any DPVActiveX1.DQPL... functions works for you ? Which version of DViewer you are using ? btw. did you try this: void pageCountChanged( Long pageCount); Fired when current page count has changed. Usually after opening new Document or calling RefreshDocument function after changes in opened document. |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
![]() |
|
mLipok ![]() Senior Member ![]() ![]() Joined: 23 Apr 14 Location: Poland, Zabrze Status: Offline Points: 453 |
![]() ![]() ![]() ![]() ![]() |
As you can read here: http://www.debenu.com/products/development/debenu-pdf-viewer-sdk/updates/ starting form 12 : Debenu PDF Viewer SDK 12.11.1.0November 4, 2015
So I ask about Viewer version as in 11 you should use something like this: $oDPVS.LibraryPath = @ScriptDir & '\DebenuPDFLibraryDLL1113.dll' $oDPVS.RendererPath = @ScriptDir & '\DebenuPDFRendererDLL1113.dll' |
|
Here you can find description how to test my examples:
http://www.quickpdf.org/forum/forum_posts.asp?TID=2932&PID=12600&title=drawcapturedpagematrix-matrix-howto#12600 |
|
![]() |
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