Jump to content
Sign in to follow this  
jaideept

documetn page count

Recommended Posts

jaideept

Hello Every one,

we are in the need of autoit script which can provide us page count of differnt formats like word, excel, txt, tiff, PDF etc.

i have found specific to word

$objWord = ObjCreate("Word.Application")

$objDoc = $objWord.Documents.Open($filePath)

$count = $objDoc.ComputeStatistics(2)

but i need a solution which would compute page count of all types of documents, more so, word, excel, txt, tiff, PDF.

i have even found articles related to file extended properties in the following thread which essentially talks about file's metadata

please help me for this.

thanks,

Jaideep

Share this post


Link to post
Share on other sites
PsaltyDS

First thing you have to do is write a sufficiently good definition of the word "Page" that applies to each of those formats. For example, in a TXT file, would you consider a FF or VT character to delimit a page? What if it's just 1,000 lines delimited by @CR, then how many lines will you assume per "page"?

Metadata fields are defined by the formats, and are optional to boot. Do you expect to just use those?

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
jaideept

we have now decided to convert txt file to PDF using PDF tools like EasyPDF.can you please provide me insight into how to get page count of word, excel, PDF, tif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×