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
poppler-pdftoppm-stdout-crop.diff
Description: Binary data
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
