public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] can not print pdf w/e-document viewer
@ 2013-01-24 16:43 Joseph
  2013-01-24 17:25 ` Bruce Hill
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Joseph @ 2013-01-24 16:43 UTC (permalink / raw
  To: gentoo-user

I have a document "letter" size in landscape mode and I'm trying to print it with e-document viewer 
4-pages per side and it will not print.  Some documents prints OK but this one will not print it.

Are there better programs in Linux for printing pdf files?

pdfinfo Biol_321_2013_Lec_06_Biogeography_1_per.pdf 
Title:          Microsoft PowerPoint - Biol 321 2013 Lec 06 Biogeography.pptx
Author:         hproctor
Creator:        PScript5.dll Version 5.2.2
Producer:       Acrobat Distiller 7.0.5 (Windows)
CreationDate:   Wed Jan 23 17:43:54 2013
ModDate:        Wed Jan 23 17:43:54 2013
Tagged:         no
Pages:          18
Encrypted:      no
Page size:      612 x 792 pts (letter)
File size:      961318 bytes
Optimized:      yes
PDF version:    1.4


-- 
Joseph


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-24 16:43 [gentoo-user] can not print pdf w/e-document viewer Joseph
@ 2013-01-24 17:25 ` Bruce Hill
  2013-01-24 18:06   ` Joseph
  2013-01-24 23:33   ` [gentoo-user] " Alan McKinnon
  2013-01-25  9:15 ` Helmut Jarausch
  2013-01-25 10:06 ` Neil Bothwick
  2 siblings, 2 replies; 18+ messages in thread
From: Bruce Hill @ 2013-01-24 17:25 UTC (permalink / raw
  To: gentoo-user

On Thu, Jan 24, 2013 at 09:43:06AM -0700, Joseph wrote:
> I have a document "letter" size in landscape mode and I'm trying to print it with e-document viewer 
> 4-pages per side and it will not print.  Some documents prints OK but this one will not print it.
> 
> Are there better programs in Linux for printing pdf files?
> 
> pdfinfo Biol_321_2013_Lec_06_Biogeography_1_per.pdf 
> Title:          Microsoft PowerPoint - Biol 321 2013 Lec 06 Biogeography.pptx
> Author:         hproctor
> Creator:        PScript5.dll Version 5.2.2
> Producer:       Acrobat Distiller 7.0.5 (Windows)
> CreationDate:   Wed Jan 23 17:43:54 2013
> ModDate:        Wed Jan 23 17:43:54 2013
> Tagged:         no
> Pages:          18
> Encrypted:      no
> Page size:      612 x 792 pts (letter)
> File size:      961318 bytes
> Optimized:      yes
> PDF version:    1.4

lp still does a good job for me:

mingdao@workstation ~ $ lpstat -a
Officejet_Pro_8500_A910 accepting requests since Wed 23 Jan 2013 02:52:15 PM CST
mingdao@workstation ~ $ lp -d Officejet_Pro_8500_A910 -o scaling=75 HOW-TO/apcupsd.pdf 
request id is Officejet_Pro_8500_A910-19 (1 file(s))

Bruce
-- 
Happy Penguin Computers               >')
126 Fenco Drive                       ( \
Tupelo, MS 38801                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-24 17:25 ` Bruce Hill
@ 2013-01-24 18:06   ` Joseph
  2013-01-25 15:50     ` [gentoo-user] " Nuno Silva
  2013-01-24 23:33   ` [gentoo-user] " Alan McKinnon
  1 sibling, 1 reply; 18+ messages in thread
From: Joseph @ 2013-01-24 18:06 UTC (permalink / raw
  To: gentoo-user

On 01/24/13 11:25, Bruce Hill wrote:
>On Thu, Jan 24, 2013 at 09:43:06AM -0700, Joseph wrote:
>> I have a document "letter" size in landscape mode and I'm trying to print it with e-document viewer
>> 4-pages per side and it will not print.  Some documents prints OK but this one will not print it.
>>
>> Are there better programs in Linux for printing pdf files?
>>
>> pdfinfo Biol_321_2013_Lec_06_Biogeography_1_per.pdf
>> Title:          Microsoft PowerPoint - Biol 321 2013 Lec 06 Biogeography.pptx
>> Author:         hproctor
>> Creator:        PScript5.dll Version 5.2.2
>> Producer:       Acrobat Distiller 7.0.5 (Windows)
>> CreationDate:   Wed Jan 23 17:43:54 2013
>> ModDate:        Wed Jan 23 17:43:54 2013
>> Tagged:         no
>> Pages:          18
>> Encrypted:      no
>> Page size:      612 x 792 pts (letter)
>> File size:      961318 bytes
>> Optimized:      yes
>> PDF version:    1.4
>
>lp still does a good job for me:
>
>mingdao@workstation ~ $ lpstat -a
>Officejet_Pro_8500_A910 accepting requests since Wed 23 Jan 2013 02:52:15 PM CST
>mingdao@workstation ~ $ lp -d Officejet_Pro_8500_A910 -o scaling=75 HOW-TO/apcupsd.pdf
>request id is Officejet_Pro_8500_A910-19 (1 file(s))
>
>Bruce

The document prints OK from windows but Linux drivers are not up to standard :-/

I'm trying lpr but the following command does not print the pages I want, it prints all pages instead of 1-8

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"
-- 
Joseph


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-24 17:25 ` Bruce Hill
  2013-01-24 18:06   ` Joseph
@ 2013-01-24 23:33   ` Alan McKinnon
  2013-01-25  0:40     ` Joseph
  1 sibling, 1 reply; 18+ messages in thread
From: Alan McKinnon @ 2013-01-24 23:33 UTC (permalink / raw
  To: gentoo-user

On Thu, 24 Jan 2013 11:25:09 -0600
Bruce Hill <daddy@happypenguincomputers.com> wrote:

> On Thu, Jan 24, 2013 at 09:43:06AM -0700, Joseph wrote:
> > I have a document "letter" size in landscape mode and I'm trying to
> > print it with e-document viewer 4-pages per side and it will not
> > print.  Some documents prints OK but this one will not print it.
> > 
> > Are there better programs in Linux for printing pdf files?
> > 
> > pdfinfo Biol_321_2013_Lec_06_Biogeography_1_per.pdf 
> > Title:          Microsoft PowerPoint - Biol 321 2013 Lec 06
> > Biogeography.pptx Author:         hproctor
> > Creator:        PScript5.dll Version 5.2.2
> > Producer:       Acrobat Distiller 7.0.5 (Windows)
> > CreationDate:   Wed Jan 23 17:43:54 2013
> > ModDate:        Wed Jan 23 17:43:54 2013
> > Tagged:         no
> > Pages:          18
> > Encrypted:      no
> > Page size:      612 x 792 pts (letter)
> > File size:      961318 bytes
> > Optimized:      yes
> > PDF version:    1.4
> 
> lp still does a good job for me:
> 
> mingdao@workstation ~ $ lpstat -a
> Officejet_Pro_8500_A910 accepting requests since Wed 23 Jan 2013
> 02:52:15 PM CST mingdao@workstation ~ $ lp -d Officejet_Pro_8500_A910
> -o scaling=75 HOW-TO/apcupsd.pdf request id is
> Officejet_Pro_8500_A910-19 (1 file(s))
> 
> Bruce

I haven't printed anything in a long time, but:

CUPS drivers make all the difference. I used to pretty much get
pathetic results using whatever was TheOfficialDriverOfTheDay for a
given printer, and would get amazingly successful results using good
old vanilla postscript or Generic PCL5/6 drivers. Go figure.

There was a time the company went through just about every printer
manufacturer in the business in 6 months trying to find a printer that
actually worked (for sane values of work). In each case the official
CUPS driver simply would not offer double-sided or shrink 2 pages onto 1
mode for *ANY* model. Postscript and generic PCL always worked every
single time.

/me baffled


-- 
Alan McKinnon
alan.mckinnon@gmail.com



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-24 23:33   ` [gentoo-user] " Alan McKinnon
@ 2013-01-25  0:40     ` Joseph
  0 siblings, 0 replies; 18+ messages in thread
From: Joseph @ 2013-01-25  0:40 UTC (permalink / raw
  To: gentoo-user

On 01/25/13 01:33, Alan McKinnon wrote:
>
>I haven't printed anything in a long time, but:
>
>CUPS drivers make all the difference. I used to pretty much get
>pathetic results using whatever was TheOfficialDriverOfTheDay for a
>given printer, and would get amazingly successful results using good
>old vanilla postscript or Generic PCL5/6 drivers. Go figure.
>
>There was a time the company went through just about every printer
>manufacturer in the business in 6 months trying to find a printer that
>actually worked (for sane values of work). In each case the official
>CUPS driver simply would not offer double-sided or shrink 2 pages onto 1
>mode for *ANY* model. Postscript and generic PCL always worked every
>single time.
>
>/me baffled
>
>
>-- 
>Alan McKinnon
>alan.mckinnon@gmail.com

I couldn't agree more. I think all those Linux programs have problem printing if one tries to print few pages in landscape mode on a single sheet of pager.

For me this command line did the job:
lpr -o media=Letter -o landscape -o number-up=4 -o number-up-layout=btlr filename

-- 
Joseph


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-24 16:43 [gentoo-user] can not print pdf w/e-document viewer Joseph
  2013-01-24 17:25 ` Bruce Hill
@ 2013-01-25  9:15 ` Helmut Jarausch
  2013-01-25 10:06 ` Neil Bothwick
  2 siblings, 0 replies; 18+ messages in thread
From: Helmut Jarausch @ 2013-01-25  9:15 UTC (permalink / raw
  To: gentoo-user

On 01/24/2013 05:43:06 PM, Joseph wrote:
> I have a document "letter" size in landscape mode and I'm trying to  
> print it with e-document viewer 4-pages per side and it will not  
> print.  Some documents prints OK but this one will not print it.
> 
> Are there better programs in Linux for printing pdf files?

I have noticed that  evince, qpdfview and acroread handle pdf files  
differently.
So, if one of these fails you might try another one. Most of the time,  
evince does
a good job.

Helmut.



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-24 16:43 [gentoo-user] can not print pdf w/e-document viewer Joseph
  2013-01-24 17:25 ` Bruce Hill
  2013-01-25  9:15 ` Helmut Jarausch
@ 2013-01-25 10:06 ` Neil Bothwick
  2013-01-25 10:33   ` William Kenworthy
  2 siblings, 1 reply; 18+ messages in thread
From: Neil Bothwick @ 2013-01-25 10:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 434 bytes --]

On Thu, 24 Jan 2013 09:43:06 -0700, Joseph wrote:

> I have a document "letter" size in landscape mode and I'm trying to
> print it with e-document viewer 4-pages per side and it will not
> print.  Some documents prints OK but this one will not print it.
> 
> Are there better programs in Linux for printing pdf files?

Okular has always worked well for me.


-- 
Neil Bothwick

Exercise daily. Eat wisely. Die anyway.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 10:06 ` Neil Bothwick
@ 2013-01-25 10:33   ` William Kenworthy
  2013-01-25 11:54     ` Bruce Hill
  2013-01-25 12:00     ` Helmut Jarausch
  0 siblings, 2 replies; 18+ messages in thread
From: William Kenworthy @ 2013-01-25 10:33 UTC (permalink / raw
  To: gentoo-user

On 25/01/13 18:06, Neil Bothwick wrote:
> On Thu, 24 Jan 2013 09:43:06 -0700, Joseph wrote:
> 
>> I have a document "letter" size in landscape mode and I'm trying to
>> print it with e-document viewer 4-pages per side and it will not
>> print.  Some documents prints OK but this one will not print it.
>>
>> Are there better programs in Linux for printing pdf files?
> 
> Okular has always worked well for me.
> 
> 

there is also pdf2pdf - I cant find which package its in, but its saved
a few files for me (cleans/scrubs the pdf code as part of a pipeline)

BillK




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 10:33   ` William Kenworthy
@ 2013-01-25 11:54     ` Bruce Hill
  2013-01-25 12:00     ` Helmut Jarausch
  1 sibling, 0 replies; 18+ messages in thread
From: Bruce Hill @ 2013-01-25 11:54 UTC (permalink / raw
  To: gentoo-user

On Fri, Jan 25, 2013 at 06:33:45PM +0800, William Kenworthy wrote:
> 
> there is also pdf2pdf - I cant find which package its in, but its saved
> a few files for me (cleans/scrubs the pdf code as part of a pipeline)

emerge pfl && e-file pdf2pdf
-- 
Happy Penguin Computers               >')
126 Fenco Drive                       ( \
Tupelo, MS 38801                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 10:33   ` William Kenworthy
  2013-01-25 11:54     ` Bruce Hill
@ 2013-01-25 12:00     ` Helmut Jarausch
  2013-01-25 12:41       ` Bruce Hill
  2013-01-25 14:15       ` William Kenworthy
  1 sibling, 2 replies; 18+ messages in thread
From: Helmut Jarausch @ 2013-01-25 12:00 UTC (permalink / raw
  To: gentoo-user

On 01/25/2013 11:33:45 AM, William Kenworthy wrote:
> On 25/01/13 18:06, Neil Bothwick wrote:
> > On Thu, 24 Jan 2013 09:43:06 -0700, Joseph wrote:
> >
> >> I have a document "letter" size in landscape mode and I'm trying to
> >> print it with e-document viewer 4-pages per side and it will not
> >> print.  Some documents prints OK but this one will not print it.
> >>
> >> Are there better programs in Linux for printing pdf files?
> >
> > Okular has always worked well for me.
> >
> >
> 
> there is also pdf2pdf - I cant find which package its in, but its  
> saved
> a few files for me (cleans/scrubs the pdf code as part of a pipeline)

Thanks for the hint. To find a package

http://www.portagefilelist.de/ is your friend.

It shows that pdf2pdf is part of media-gfx/swftools-0.9.1 which is not
in the tree anymore. Furthermore it needs media-libs/pdflib which have
been abandoned, as well. But there is a newer version of
PDFlib Lite (7.0.5p3). Adapting the old ebuild for 7.0.4_p5 does work.
Then media-gfx/swftools-0.9.1 does build and it generates pdf2pdf.

Helmut.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 12:00     ` Helmut Jarausch
@ 2013-01-25 12:41       ` Bruce Hill
  2013-01-25 13:43         ` Joseph
  2013-01-25 14:15       ` William Kenworthy
  1 sibling, 1 reply; 18+ messages in thread
From: Bruce Hill @ 2013-01-25 12:41 UTC (permalink / raw
  To: gentoo-user

On Fri, Jan 25, 2013 at 01:00:18PM +0100, Helmut Jarausch wrote:
> > 
> > there is also pdf2pdf - I cant find which package its in, but its  
> > saved
> > a few files for me (cleans/scrubs the pdf code as part of a pipeline)
> 
> Thanks for the hint. To find a package
> 
> http://www.portagefilelist.de/ is your friend.
> 
> It shows that pdf2pdf is part of media-gfx/swftools-0.9.1 which is not
> in the tree anymore. Furthermore it needs media-libs/pdflib which have
> been abandoned, as well. But there is a newer version of
> PDFlib Lite (7.0.5p3). Adapting the old ebuild for 7.0.4_p5 does work.
> Then media-gfx/swftools-0.9.1 does build and it generates pdf2pdf.

e-file is much more efficient, then use eshowkw:

mingdao@server ~ $ e-file pdf2pdf
 *  media-gfx/swftools
	Available Versions:	0.9.1 
	Homepage:		http://www.swftools.org/
	Description:		SWF Tools is a collection of SWF manipulation and generation utilities
	Matched Files:		/usr/bin/pdf2pdf; 

mingdao@server ~ $ eshowkw media-gfx/swftools
Keywords for media-gfx/swftools:
      |                           | u   |  
      | a a             p     s   | n   |  
      | l m   h i m m   p s   p   | u s | r
      | p d a p a 6 i p c 3   a x | s l | e
      | h 6 r p 6 8 p p 6 9 s r 8 | e o | p
      | a 4 m a 4 k s c 4 0 h c 6 | d t | o
------+---------------------------+-----+-------
0.9.2 | o ~ o ~ o o o ~ o o o ~ ~ | o 0 | gentoo
-- 
Happy Penguin Computers               >')
126 Fenco Drive                       ( \
Tupelo, MS 38801                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 12:41       ` Bruce Hill
@ 2013-01-25 13:43         ` Joseph
  2013-01-25 14:03           ` Helmut Jarausch
  0 siblings, 1 reply; 18+ messages in thread
From: Joseph @ 2013-01-25 13:43 UTC (permalink / raw
  To: gentoo-user

On 01/25/13 06:41, Bruce Hill wrote:
>On Fri, Jan 25, 2013 at 01:00:18PM +0100, Helmut Jarausch wrote:
>> >
>> > there is also pdf2pdf - I cant find which package its in, but its
>> > saved
>> > a few files for me (cleans/scrubs the pdf code as part of a pipeline)
>>
>> Thanks for the hint. To find a package
>>
>> http://www.portagefilelist.de/ is your friend.
>>
>> It shows that pdf2pdf is part of media-gfx/swftools-0.9.1 which is not
>> in the tree anymore. Furthermore it needs media-libs/pdflib which have
>> been abandoned, as well. But there is a newer version of
>> PDFlib Lite (7.0.5p3). Adapting the old ebuild for 7.0.4_p5 does work.
>> Then media-gfx/swftools-0.9.1 does build and it generates pdf2pdf.
>
>e-file is much more efficient, then use eshowkw:
>
>mingdao@server ~ $ e-file pdf2pdf
> *  media-gfx/swftools
>	Available Versions:	0.9.1
>	Homepage:		http://www.swftools.org/
>	Description:		SWF Tools is a collection of SWF manipulation and generation utilities
>	Matched Files:		/usr/bin/pdf2pdf;
>
>mingdao@server ~ $ eshowkw media-gfx/swftools
>Keywords for media-gfx/swftools:
>      |                           | u   |
>      | a a             p     s   | n   |
>      | l m   h i m m   p s   p   | u s | r
>      | p d a p a 6 i p c 3   a x | s l | e
>      | h 6 r p 6 8 p p 6 9 s r 8 | e o | p
>      | a 4 m a 4 k s c 4 0 h c 6 | d t | o
>------+---------------------------+-----+-------
>0.9.2 | o ~ o ~ o o o ~ o o o ~ ~ | o 0 | gentoo
>-- 
>Happy Penguin Computers               >')
>126 Fenco Drive                       ( \
>Tupelo, MS 38801                       ^^
>support@happypenguincomputers.com
>662-269-2706 662-205-6424
>http://happypenguincomputers.com/

I just emerge swftools-0.9.2 
It did not generate "pdf2pdf" binary 

-- 
Joseph


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 13:43         ` Joseph
@ 2013-01-25 14:03           ` Helmut Jarausch
  0 siblings, 0 replies; 18+ messages in thread
From: Helmut Jarausch @ 2013-01-25 14:03 UTC (permalink / raw
  To: gentoo-user

On 01/25/2013 02:43:49 PM, Joseph wrote:
> On 01/25/13 06:41, Bruce Hill wrote:
>> On Fri, Jan 25, 2013 at 01:00:18PM +0100, Helmut Jarausch wrote:
>>> >
>>> > there is also pdf2pdf - I cant find which package its in, but its
>>> > saved
>>> > a few files for me (cleans/scrubs the pdf code as part of a  
>>> pipeline)
>>> 
>>> Thanks for the hint. To find a package
>>> 
>>> http://www.portagefilelist.de/ is your friend.
>>> 
>>> It shows that pdf2pdf is part of media-gfx/swftools-0.9.1 which is  
>>> not
>>> in the tree anymore. Furthermore it needs media-libs/pdflib which  
>>> have
>>> been abandoned, as well. But there is a newer version of
>>> PDFlib Lite (7.0.5p3). Adapting the old ebuild for 7.0.4_p5 does  
>>> work.
>>> Then media-gfx/swftools-0.9.1 does build and it generates pdf2pdf.
>> 
>> e-file is much more efficient, then use eshowkw:
>> 
>> mingdao@server ~ $ e-file pdf2pdf
>> *  media-gfx/swftools
>> 	Available Versions:	0.9.1
>> 	Homepage:		http://www.swftools.org/
>> 	Description:		SWF Tools is a collection of SWF  
>> manipulation and generation utilities
>> 	Matched Files:		/usr/bin/pdf2pdf;
>> 
>> mingdao@server ~ $ eshowkw media-gfx/swftools
>> Keywords for media-gfx/swftools:
>>      |                           | u   |
>>      | a a             p     s   | n   |
>>      | l m   h i m m   p s   p   | u s | r
>>      | p d a p a 6 i p c 3   a x | s l | e
>>      | h 6 r p 6 8 p p 6 9 s r 8 | e o | p
>>      | a 4 m a 4 k s c 4 0 h c 6 | d t | o
>> ------+---------------------------+-----+-------
>> 0.9.2 | o ~ o ~ o o o ~ o o o ~ ~ | o 0 | gentoo
>>-- 
>> Happy Penguin Computers               >')
>> 126 Fenco Drive                       ( \
>> Tupelo, MS 38801                       ^^
>> support@happypenguincomputers.com
>> 662-269-2706 662-205-6424
>> http://happypenguincomputers.com/
> 
> I just emerge swftools-0.9.2 It did not generate "pdf2pdf" binary

Yes, there is a patch in that ebuild to not build any pdf stuff.
But if you skip that patch it fails.

So, I stepped back to 0.9.1. But even this version doesn't build
pdf2pdf unless it finds a workin libpdf which has been removed from the  
tree.
But one can reactivate it for the new version of it.

Helmut.


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 12:00     ` Helmut Jarausch
  2013-01-25 12:41       ` Bruce Hill
@ 2013-01-25 14:15       ` William Kenworthy
  2013-01-25 14:39         ` Bruce Hill
  2013-01-25 14:40         ` Bruce Hill
  1 sibling, 2 replies; 18+ messages in thread
From: William Kenworthy @ 2013-01-25 14:15 UTC (permalink / raw
  To: gentoo-user

On 25/01/13 20:00, Helmut Jarausch wrote:
> On 01/25/2013 11:33:45 AM, William Kenworthy wrote:
>> On 25/01/13 18:06, Neil Bothwick wrote:
>> > On Thu, 24 Jan 2013 09:43:06 -0700, Joseph wrote:
>> >
>> >> I have a document "letter" size in landscape mode and I'm trying to
>> >> print it with e-document viewer 4-pages per side and it will not
>> >> print.  Some documents prints OK but this one will not print it.
>> >>
>> >> Are there better programs in Linux for printing pdf files?
>> >
>> > Okular has always worked well for me.
>> >
>> >
>>
>> there is also pdf2pdf - I cant find which package its in, but its saved
>> a few files for me (cleans/scrubs the pdf code as part of a pipeline)
> 
> Thanks for the hint. To find a package
> 
> http://www.portagefilelist.de/ is your friend.
> 
> It shows that pdf2pdf is part of media-gfx/swftools-0.9.1 which is not
> in the tree anymore. Furthermore it needs media-libs/pdflib which have
> been abandoned, as well. But there is a newer version of
> PDFlib Lite (7.0.5p3). Adapting the old ebuild for 7.0.4_p5 does work.
> Then media-gfx/swftools-0.9.1 does build and it generates pdf2pdf.
> 
> Helmut.
> 

Pity, it was quite useful.  I did stumble across a script that did a
similar task using ghotstscript: http://antihe.ro/scripts/pdf2pdf.sh.txt

BillK




^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 14:15       ` William Kenworthy
@ 2013-01-25 14:39         ` Bruce Hill
  2013-01-25 14:40         ` Bruce Hill
  1 sibling, 0 replies; 18+ messages in thread
From: Bruce Hill @ 2013-01-25 14:39 UTC (permalink / raw
  To: gentoo-user

On Fri, Jan 25, 2013 at 10:15:59PM +0800, William Kenworthy wrote:
> 
> Pity, it was quite useful.  I did stumble across a script that did a
> similar task using ghotstscript: http://antihe.ro/scripts/pdf2pdf.sh.txt

There are other apps if you search the internet, including a pretty good
online one that will do it and you can save the file locally.
-- 
Happy Penguin Computers               >')
126 Fenco Drive                       ( \
Tupelo, MS 38801                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] can not print pdf w/e-document viewer
  2013-01-25 14:15       ` William Kenworthy
  2013-01-25 14:39         ` Bruce Hill
@ 2013-01-25 14:40         ` Bruce Hill
  1 sibling, 0 replies; 18+ messages in thread
From: Bruce Hill @ 2013-01-25 14:40 UTC (permalink / raw
  To: gentoo-user

On Fri, Jan 25, 2013 at 10:15:59PM +0800, William Kenworthy wrote:
> 
> Pity, it was quite useful.  I did stumble across a script that did a
> similar task using ghotstscript: http://antihe.ro/scripts/pdf2pdf.sh.txt
> 
> BillK

Forgot to add, "but I think he wants one in portage", which is always my
choice for apps, also; and why I didn't post online apps earlier.
-- 
Happy Penguin Computers               >')
126 Fenco Drive                       ( \
Tupelo, MS 38801                       ^^
support@happypenguincomputers.com
662-269-2706 662-205-6424
http://happypenguincomputers.com/

Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting


^ permalink raw reply	[flat|nested] 18+ messages in thread

* [gentoo-user] Re: can not print pdf w/e-document viewer
  2013-01-24 18:06   ` Joseph
@ 2013-01-25 15:50     ` Nuno Silva
  2013-01-26  0:48       ` Joseph
  0 siblings, 1 reply; 18+ messages in thread
From: Nuno Silva @ 2013-01-25 15:50 UTC (permalink / raw
  To: gentoo-user

On 2013-01-24, Joseph wrote:

> On 01/24/13 11:25, Bruce Hill wrote:
>>On Thu, Jan 24, 2013 at 09:43:06AM -0700, Joseph wrote:
>>> I have a document "letter" size in landscape mode and I'm trying to
>>> print it with e-document viewer
>>> 4-pages per side and it will not print.  Some documents prints OK
>>> but this one will not print it.
>>>
>>> Are there better programs in Linux for printing pdf files?
>>>
>>> pdfinfo Biol_321_2013_Lec_06_Biogeography_1_per.pdf
>>> Title: Microsoft PowerPoint - Biol 321 2013 Lec 06
>>> Biogeography.pptx
>>> Author:         hproctor
>>> Creator:        PScript5.dll Version 5.2.2
>>> Producer:       Acrobat Distiller 7.0.5 (Windows)
>>> CreationDate:   Wed Jan 23 17:43:54 2013
>>> ModDate:        Wed Jan 23 17:43:54 2013
>>> Tagged:         no
>>> Pages:          18
>>> Encrypted:      no
>>> Page size:      612 x 792 pts (letter)
>>> File size:      961318 bytes
>>> Optimized:      yes
>>> PDF version:    1.4
>>
>>lp still does a good job for me:
>>
>>mingdao@workstation ~ $ lpstat -a
>>Officejet_Pro_8500_A910 accepting requests since Wed 23 Jan 2013
>> 02:52:15 PM CST
>>mingdao@workstation ~ $ lp -d Officejet_Pro_8500_A910 -o scaling=75
>> HOW-TO/apcupsd.pdf
>>request id is Officejet_Pro_8500_A910-19 (1 file(s))
>>
>>Bruce
>
> The document prints OK from windows but Linux drivers are not up to
> standard :-/
>
> I'm trying lpr but the following command does not print the pages I
> want, it prints all pages instead of 1-8
>
> 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/



^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [gentoo-user] Re: can not print pdf w/e-document viewer
  2013-01-25 15:50     ` [gentoo-user] " Nuno Silva
@ 2013-01-26  0:48       ` Joseph
  0 siblings, 0 replies; 18+ messages in thread
From: Joseph @ 2013-01-26  0:48 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2013-01-26  0:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 16:43 [gentoo-user] can not print pdf w/e-document viewer Joseph
2013-01-24 17:25 ` Bruce Hill
2013-01-24 18:06   ` Joseph
2013-01-25 15:50     ` [gentoo-user] " Nuno Silva
2013-01-26  0:48       ` Joseph
2013-01-24 23:33   ` [gentoo-user] " Alan McKinnon
2013-01-25  0:40     ` Joseph
2013-01-25  9:15 ` Helmut Jarausch
2013-01-25 10:06 ` Neil Bothwick
2013-01-25 10:33   ` William Kenworthy
2013-01-25 11:54     ` Bruce Hill
2013-01-25 12:00     ` Helmut Jarausch
2013-01-25 12:41       ` Bruce Hill
2013-01-25 13:43         ` Joseph
2013-01-25 14:03           ` Helmut Jarausch
2013-01-25 14:15       ` William Kenworthy
2013-01-25 14:39         ` Bruce Hill
2013-01-25 14:40         ` Bruce Hill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox