1 |
On 2013-01-24, Joseph wrote: |
2 |
|
3 |
> On 01/24/13 11:25, Bruce Hill wrote: |
4 |
>>On Thu, Jan 24, 2013 at 09:43:06AM -0700, Joseph wrote: |
5 |
>>> I have a document "letter" size in landscape mode and I'm trying to |
6 |
>>> print it with e-document viewer |
7 |
>>> 4-pages per side and it will not print. Some documents prints OK |
8 |
>>> but this one will not print it. |
9 |
>>> |
10 |
>>> Are there better programs in Linux for printing pdf files? |
11 |
>>> |
12 |
>>> pdfinfo Biol_321_2013_Lec_06_Biogeography_1_per.pdf |
13 |
>>> Title: Microsoft PowerPoint - Biol 321 2013 Lec 06 |
14 |
>>> Biogeography.pptx |
15 |
>>> Author: hproctor |
16 |
>>> Creator: PScript5.dll Version 5.2.2 |
17 |
>>> Producer: Acrobat Distiller 7.0.5 (Windows) |
18 |
>>> CreationDate: Wed Jan 23 17:43:54 2013 |
19 |
>>> ModDate: Wed Jan 23 17:43:54 2013 |
20 |
>>> Tagged: no |
21 |
>>> Pages: 18 |
22 |
>>> Encrypted: no |
23 |
>>> Page size: 612 x 792 pts (letter) |
24 |
>>> File size: 961318 bytes |
25 |
>>> Optimized: yes |
26 |
>>> PDF version: 1.4 |
27 |
>> |
28 |
>>lp still does a good job for me: |
29 |
>> |
30 |
>>mingdao@workstation ~ $ lpstat -a |
31 |
>>Officejet_Pro_8500_A910 accepting requests since Wed 23 Jan 2013 |
32 |
>> 02:52:15 PM CST |
33 |
>>mingdao@workstation ~ $ lp -d Officejet_Pro_8500_A910 -o scaling=75 |
34 |
>> HOW-TO/apcupsd.pdf |
35 |
>>request id is Officejet_Pro_8500_A910-19 (1 file(s)) |
36 |
>> |
37 |
>>Bruce |
38 |
> |
39 |
> The document prints OK from windows but Linux drivers are not up to |
40 |
> standard :-/ |
41 |
> |
42 |
> I'm trying lpr but the following command does not print the pages I |
43 |
> want, it prints all pages instead of 1-8 |
44 |
> |
45 |
> lpr -o media=Letter -o landscape -o number-up=4 -o page-ranges=1-8 -o |
46 |
> number-up-layout=btlr |
47 |
> |
48 |
> I think "-o number-up=4" can not be combine with: "-o page-ranges=1-8" |
49 |
|
50 |
Try using something like pdfnup (app-text/pdfjam) to generate an n-up |
51 |
version of the pdf before sending it to the printer. |
52 |
|
53 |
If everything else fails, try rewriting the pdf, either using pdftops |
54 |
then ps2pdf, or by using ghostscript directly. |
55 |
|
56 |
And I don't think you can compare the two things directly: in Windows, |
57 |
IIRC, the applications print using GDI. lpr sends the PDF as is directly |
58 |
to the CUPS server. If the PDF lacks builtin fonts, for example, those |
59 |
won't appear even if your PDF viewer can view them (think, fonts under |
60 |
your home directory, a printing server in a different machine...). |
61 |
|
62 |
Some PDF or PostScript features can hit ghostscript bugs or other |
63 |
issues. |
64 |
|
65 |
But, if you want my two cents, look at psnup and pdfnup. At least then |
66 |
you can be sure that the 4-per-page part is done. lpr options are |
67 |
quite simplistic; do also have a look at pdftk if you need, for example |
68 |
to rotate PDF pages, or to concatenate PDFs without rewriting their |
69 |
contents (keep the code as-is, unlike what would happen if you just fed |
70 |
ghostscript several pdfs, where it would rewrite the PDF code). |
71 |
|
72 |
|
73 |
If your issue is with a single PDF, the problem is likely some issue |
74 |
between a PDF feature used by that PDF and the incarnation of |
75 |
ghostscript you are using. Try pdftops and ps2pdf and see if the result |
76 |
is printable. |
77 |
|
78 |
-- |
79 |
Nuno Silva (aka njsg) |
80 |
http://njsg.sdf-eu.org/ |