I was hoping for something which could run from within my MS Access database and would be able to look at a Dir and calculate the page count all all tiff files in the Dir.
Perhaps i might have to rethink how i go about this.
I actually mis-read you answer. I thought you were saying that what I was looking to do could NOT be done. It's only when I re-read your answer that I realised you were actually saying the opposite.
I've been looking at the TiffTeller tool. Using their command line tool, how would I call this from MS Access VBA? They have the following example:
Usage: TiffTeller.exe <source> <destination> <options>
If you have path with spaces, use quotation marks.
Options:
-log <FileName> - Don`t show errors. Write them to the log file
-f - Export format
csv - Comma Separated Values, .csv (default)
dif - Data Interchange File Format, .dif
sylk - Symbolic Links Format, .slk
txt - Plain Text Format, .txt
-e - Show extensions
-r - Include suffolders
Note that -list is used when there is a list of files in a file.
Would it be possible to get the total page count back to my application?
> Would it be possible to get the total page count back to my application?
I haven't used the Tiff Teller command line call, but I have used both PDFtk and Xpdf's pdfinfo command line tools. All three of them work the same way — they put the information in a file. For example, PDFtk puts this line in a plain text file:
NumberOfPages: 3
Likewise, pdfinfo "prints" this line, among others (but it's easy to redirect to a plain text file):
Pages: 3
It seems that the Tiff Teller command line does something similar, even giving you a choice of output file format (csv, dif, sylk, txt), as well as providing an option for recursing into subfolders (-r). But at the end of the day, with all three of them, you'll need to read the files created and parse the output to extract the number of pages. I've done that many times with custom (stand-alone) programs, but I don't know to do it in VBA — I don't even know if it's possible to do in VBA. Regards, Joe
Microsoft Access
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.
ASKER
Perhaps i might have to rethink how i go about this.
Thanks for all your advice.