[poppler] [PATCH] pdftoppm, SplashBitmap: stdin input, stdout output, cropping, scale-to

Albert Astals Cid aacid at kde.org
Wed Aug 22 14:30:24 PDT 2007


A Dissabte 21 Juliol 2007, Ilmari Heikkinen va escriure:
> Hi, this patch adds the following features to pdftoppm:
>
>   * if omitting input filename or using - for input filename, reads
> pdf from stdin
>     - e.g. pdftoppm -f 1 -l 1 < foo.pdf | ppmtojpeg > foo.jpg
>     - e.g. pdftoppm - foo_images < foo.pdf
>
>   * if omitting output filename, prints output to stdout
>     - e.g. pdftoppm -f 1 -l 1 foo.pdf | ppmtopng > foo.png
>
>   * create image of a cropped rectangle of the pdf
>     - e.g. -x 30 -y 40 -W 500 -H 400
>
>   * scale pdf to fit in a square of wanted size
>     - e.g. -scale-to 2048 to create image with max dimension 2048
>
> It also overloads SplashBitmap::writeToPNM to accept FILE* argument
> (in order to write to stdout).
>
> The patch is against the CVS head, created with cvs diff -d -u

Hi Ilmari thanks for the patch, i've added it to the CVS and will be included 
in poppler 0.6

Any other patch will be welcome.

Albert

P.S: Sorry for taking so much to react


More information about the poppler mailing list