On 01/25/13 17:50, Nuno Silva wrote:
lpr -o media=Letter -o landscape -o number-up=4 -o page-ranges=1-8 -o
number-up-layout=btlr

I think "-o number-up=4" can not be combine with: "-o page-ranges=1-8"

Try using something like pdfnup (app-text/pdfjam) to generate an n-up
version of the pdf before sending it to the printer.

If everything else fails, try rewriting the pdf, either using pdftops
then ps2pdf, or by using ghostscript directly.

And I don't think you can compare the two things directly: in Windows,
IIRC, the applications print using GDI. lpr sends the PDF as is directly
to the CUPS server. If the PDF lacks builtin fonts, for example, those
won't appear even if your PDF viewer  can view them (think, fonts under
your home directory, a printing server in a different machine...).

Some PDF or PostScript features can hit ghostscript bugs or other
issues.

But, if you want my two cents, look at psnup and pdfnup. At least then
you can be sure that the 4-per-page part is done. lpr options are
quite simplistic; do also have a look at pdftk if you need, for example
to rotate PDF pages, or to concatenate PDFs without rewriting their
contents (keep the code as-is, unlike what would happen if you just fed
ghostscript several pdfs, where it would rewrite the PDF code).


If your issue is with a single PDF, the problem is likely some issue
between a PDF feature used by that PDF and the incarnation of
ghostscript you are using. Try pdftops and ps2pdf and see if the result
is printable.

--
Nuno Silva (aka njsg)
http://njsg.sdf-eu.org/

I was able to figure it out.
"-o page-ranges=1-8" refers to number of sheets printed not number of pages in 
a document.
so if I 4-pages per sheet, this should be: "-o page-ranges=1-2"
and it can be combine with "-o number-up=4"

--
Joseph

Reply via email to