Date: Wed, 10 Jun 2009 16:49:29 -0700 From: "b. f." <bf1783@googlemail.com> To: djuatdelta@gmail.com Cc: freebsd-questions@FreeBSD.org Subject: Re: PDF inventory software Message-ID: <d873d5be0906101649s66f20fd9wac4b08c4f74d1763@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
>Hmm.. The command > >find *.pdf -exec pdftotext {} \; > >works in directories in which no PDF file returns the "Document has >not the mandatory ending %EOF" error. When a directory contains one >of these files, none of the files get converted. Is there some way to >ignore or skip over this %EOF problem and continue operating on the >remaining PDFs? Use something like: find -X DIR -name '*.[pP][dD][fF]' | xargs -I % pdftotext "%" where DIR is the root of the filesystem directory hierarchy to be searched. Be careful of how many arguments you feed to pdftotext: it can overwrite files. You may need to handle some files with encryption, etc. differently. b.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d873d5be0906101649s66f20fd9wac4b08c4f74d1763>