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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - PDFViewer  PageCount
  FAQ FAQ  Forum Search   Register Register  Login Login

PDFViewer PageCount

 Post Reply Post Reply
Author
Message
luet View Drop Down
Team Player
Team Player
Avatar

Joined: 09 Aug 16
Location: Germany
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote luet Quote  Post ReplyReply Direct Link To This Post Topic: PDFViewer PageCount
    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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
luet View Drop Down
Team Player
Team Player
Avatar

Joined: 09 Aug 16
Location: Germany
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote luet Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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 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

Back to Top
luet View Drop Down
Team Player
Team Player
Avatar

Joined: 09 Aug 16
Location: Germany
Status: Offline
Points: 41
Post Options Post Options   Thanks (0) Thanks(0)   Quote luet Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
mLipok View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 Apr 14
Location: Poland, Zabrze
Status: Offline
Points: 449
Post Options Post Options   Thanks (0) Thanks(0)   Quote mLipok Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store