[poppler] pdfinfo can read from the standard input ?

Stefano Emilio Campanini stefano.campanini at tinvention.net
Mon May 23 23:03:39 PDT 2011


On 20 May 2011 13:43, "Harry Roberts" <harry at midnight-labs.org> wrote:
>
> pdfinfo and other apps in the `utils` directory use the standard
convention of passing "-" as the filename to instruct it to read from STDIN.
>
> for example:
>
>   # pdfinfo - < Desktop/servlet-30.pdf
>

It works,  thanks !

> Alternatively you can use "fd://0" (replacing 0 with whichever FD you want
to read from)
>
> On 20 May 2011 11:54, Stefano Emilio Campanini <
stefano.campanini at tinvention.net> wrote:
>>
>> Hi
>>
>> I'm using poppler from a while, I find it of high quality and very
>> performant also on big files, in particular the tools pdftoppm and
>> pdfinfo.
>>
>> The question: seems to be not possible having pdfinfo tool reading the
>> file from the standard input, is it true ? Or I have missed something
>> ?
>>
>> stefano at tinvention-notebook-asus:~$ pdfinfo < Desktop/servlet-30.pdf
>> pdfinfo version 0.12.4
>> Copyright 2005-2009 The Poppler Developers -
http://poppler.freedesktop.org
>> Copyright 1996-2004 Glyph & Cog, LLC
>> Usage: pdfinfo [options] <PDF-file>
>>  -f <int>         : first page to convert
>>  -l <int>         : last page to convert
>>  -box             : print the page bounding boxes
>>
>> stefano at tinvention-notebook-asus:~$ pdfinfo Desktop/servlet-30.pdf
>> Creator:        cairo 1.7.4 (http://cairographics.org)
>> Producer:       cairo 1.7.4 (http://cairographics.org)
>> Tagged:         no
>>
>>
>> Another question, the pdfinfo help report the "-f" and "- l"
>> parameters saying "first page to convert" , does pdfinfo convert pages
>> ? Is it a mistake ?
>>
>> Thanks in advance for the help.
>> Stefano
>>
>> --
>> Tinvention - Ingegneria Informatica -
>> http://tinvention.net/
>> ing. Stefano E. Campanini
>> _______________________________________________
>> poppler mailing list
>> poppler at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/poppler
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20110524/b128171a/attachment.html>


More information about the poppler mailing list