Searching the wiki found http://wiki.tcl.tk/20204 . I've
downloaded it and the referenced ISO document. Running the code
on the page shows what I want is possible.
I want to get the number of pages in all PDF's in a directory. Is
there existing code for my restricted goals?
No, but I can help.
This follow-up is in part an experiment. I've had trouble posting
lately.
Thanks, I'll take any help I can get.
Times not critical, I'm doing a small project because someone
told me "It can not be done." I've basically done it and am
working on making the solution "elegant". Other half of
motivation is increasing my minimal skill in Tcl/Tk. I'm one of
those who gets little from tutorials. I need real problems.
>
> This follow-up is in part an experiment. I've had trouble posting
> lately.
Google Groups has been giving people fits for last few weeks.
From what I've seen posts make it to usenet promptly but Google
users don't see it for days. Your post today I saw less than an
hour after indicated posting time (3 Jul 2011 13:07:15 GMT).
see examples below:
http://groups.google.com/group/comp.dsp/browse_thread/thread/fd629f4c9f767a4d/d580d08908f9db6b?hide_quotes=no#msg_d580d08908f9db6b
for samples of same problem for several years see:
http://groups.google.com/groups/search?safe=off&q=group%3Acomp.dsp+insubject%3Agoogle+groups&btnG=Search&sitesearch=
I don't know if it can helps, but there are hints in the source code
of pdf.js :
https://github.com/andreasgal/pdf.js
GS
On 2 juil, 14:43, Richard Owlett <rowl...@pcnetinc.com> wrote:
> I do not need to completely parse the PDF file.
> I _need only_ the number of pages (having the default page size
> would be nice).
>
> Searching the wiki foundhttp://wiki.tcl.tk/20204. I've
Doesn't http://wiki.tcl.tk/20204 show how many pages
are in the document. I wrote it a while ago so I've
forgotten the details, but I thought it showed the
total number of pages.
Keith
Yes it does. And in doing so it gave me encouragement that I
wasn't charging down a dead end ending in a cliff.
It's apparent goal is to display the
*maximum* amount of information about a *single* pdf file.
My goal is to acquire
*single* piece of information about *many* pdf files.
I could probably find what I'm looking for by dissecting your
code. But that's a daunting task for my level of Tcl/Tk fluency.
That may be worthwhile in itself as the goal of my underlying
project is learning Tcl. I'm retired so time is not a restraint.
I'm downloading it. Reading it should be interesting as I know
less JavaScript than I do Tcl/Tk ;/
Thanks for the pointer.
A cursory look onto the code tells me, that the naumber of pages is read
into $PAGES(/Count). Hopefully your Tcl parsing skills are sufficient to
string this together with some foreach [glob *.pdf] loop to get what you
want. Alternatively, on Unix, you can use the shell:
for i in *.pdf; do echo $i; pdfinfo $i| grep Pages; done
(pdfinfo is part of xpdf)
Christian