Re: Count words/characters in ps or pdf
Hi Curt
On Fri, Oct 14, 2011 at 03:31:52PM +0000, Curt wrote:
> On 2011-10-14, Kumar Appaiah <a.kumar@alumni.iitm.ac.in> wrote:
> >
> > How about:
> > pdftotext <pdffile>|wc -w
>
> curty@einstein:~/glimmer$ pdftotext doctorswife.pdf | wc -w
> 0
>
> Oops.
>
> curty@einstein:~/glimmer$ pdftotext doctorswife.pdf - | wc -w
> 1415
>
> I think you need the stdout hyphen; otherwise, with the file name
> argument missing, it just writes <pdffile.txt>.
Thanks for pointing this out.
Greetings Elias
Reply to: