How to find number of pages in word document or pdf or HTML using Lotus script

Hi,

I need the code in lotus script for finding the number of pages in a word document. For example… I have a word document or HTML file or PDF on my hard disk. My lotus script should access the word document or HTML or PDF and should find out how many pages (if a page is considered as A4 sheet or even if it is same as the page in word document) are there in those files.

Please do provide me the code which will be help full for me.

Thank you very much for your help in advance…

Subject: How to find number of pages in word document or pdf or HTML using Lotus script.

Not sure about PDF and HTML but with Word, there are probably properties that you can check to see how many pages would be printed. You will need to instantiate a Microsoft Word Application object and I believe that the wdStatisticPages will help you discover the number of pages.

For HTML, there is no such concept of a page because the on-screen representation may need to scroll onto a number of pages and that depends on how you print the HTML - landscape/portrait or other properties.