You are not logged in.

#1 2008-05-11 13:22:24

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

How to count words in a PDF file?

Is there any way I can count words in a PDF file without resorting to Acrobat Reader (which apparently has that feature)?
That's a massive program, which I actually don't like.
I need to count words in the PDF file because I write my papers with LaTeX, and they're full of my extensive comments.

Do you know of any alternative?


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

#2 2008-05-11 13:30:20

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: How to count words in a PDF file?

see if there's a pdftotxt/pdf2txt command and then pass it's output through "wc". Might not be perfectly accurate but should give you an idea.

Offline

#3 2008-05-11 13:33:52

dolby
Member
From: 1992
Registered: 2006-08-08
Posts: 1,581

Re: How to count words in a PDF file?

that utility IIRC cannot be found on xpdf (the official Archlinux package) anymore and its part of poppler

edit: its pdftotext btw

Last edited by dolby (2008-05-11 13:35:05)


There shouldn't be any reason to learn more editor types than emacs or vi -- mg (1)
[You learn that sarcasm does not often work well in international forums.  That is why we avoid it. -- ewaller (arch linux forum moderator)

Offline

#4 2008-05-11 13:53:58

finferflu
Forum Fellow
From: Manchester, UK
Registered: 2007-06-21
Posts: 1,899
Website

Re: How to count words in a PDF file?

Thanks guys, I guess that will have to do for me.


Have you Syued today?
Free music for free people! | Earthlings

"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away." -- A. de Saint-Exupery

Offline

Board footer

Powered by FluxBB