On Sat, Oct 31, 2009 at 00:11:44 +0100, Andreas Goesele wrote: > Hi! > > pdftops allows to expand a smaller page to fill the paper. xpdf > doesn't have such an option. > > I was wondering whether it would be possible to use pdftops in a > clever printing command in the xpdf printing dialog ("Print with > command" or "Print to file").
I don't know how to use pdftops as a print command because it does not seem to be capable of reading the PDF directly from STDIN. (Processing a PDF requires random access to the file and the STDIN stream is not seekable.) Ghostscript, on the other hand, is smart enough to copy the input PDF stream to a temporary file for processing: cat test.pdf | gs -q -dSAFER -sDEVICE=pswrite -dFIXEDMEDIA -dPDFFitPage -sPAPERSIZE=a4 -o %pipe%lpr - The above combination of commands prints test.pdf on my default printer after scaling it to fit the page. Therefore I would hope that the following works as a print command for XPDF (which I have not used in years, though): gs -q -dSAFER -sDEVICE=pswrite -dFIXEDMEDIA -dPDFFitPage -sPAPERSIZE=a4 -o %pipe%lpr - If you want to specify further options for lpr then you have to use quoting like this: "%pipe%lpr ..." where "..." stands for all the options. (The rest of the command remains the same.) -- Regards, | Florian | -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org