numPages

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

numPages

Post by Rad1 »

Hello,

I'm trying to get the number of pages in a document. I use this code

Code: Select all

PDFView.RunJavaScript("this.numPages;")
It works but I can't get the result of the runing JS. I can't use PDFView.RunJavaScript("this.numPages;", str, DocID, 0) because our product is developed with javascript.

have you any idea to get the numPages ?
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: numPages

Post by Corwin - Tracker Sup »

Hi.
In viewer ActiveX you can read "Documents[0].Pages.Count" property.
Rad1
User
Posts: 108
Joined: Wed May 13, 2009 2:21 pm

Re: numPages

Post by Rad1 »

Thank you, I found it in the help file.
It works.
User avatar
John - Tracker Supp
Site Admin
Posts: 5223
Joined: Tue Jun 29, 2004 10:34 am

Re: numPages

Post by John - Tracker Supp »

;) Excellent - pleased all is well.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com