Print Page | Close Window

PDFViewer PageCount

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=3365
Printed Date: 03 May 24 at 9:05PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: PDFViewer PageCount
Posted By: luet
Subject: PDFViewer PageCount
Date 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



Replies:
Posted By: Ingo
Date Posted: 09 Aug 16 at 7:14PM
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



Posted By: luet
Date Posted: 10 Aug 16 at 10:53AM
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


Posted By: Ingo
Date Posted: 10 Aug 16 at 9:25PM
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 of http://www.debenu.com/products/development/debenu-pdf-library/" rel="nofollow - Debenu 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.



-------------
Cheers,
Ingo



Posted By: luet
Date Posted: 13 Aug 16 at 12:52PM
Hello Ingo,Smile

pity that there is no Page Count in the viewer then I have to manage myself differently.
Thanks for your good help :-)
luet


Posted By: mLipok
Date Posted: 14 Aug 16 at 4:25PM
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


Posted By: mLipok
Date Posted: 14 Aug 16 at 4:32PM
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.0

November 4, 2015

Summary

  • New GetSelectedText function
  • New SetNavigationPaneMode function
  • Debenu Quick PDF Library and rendering add-on now compiled directly into one binary for Debenu PDF Viewer SDK

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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk