Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

double sided pdfs on a single sided printer

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1041
Location: Worcestershire

PostPosted: Sat Jun 22, 2013 8:09 pm    Post subject: double sided pdfs on a single sided printer Reply with quote

I have lots of pdfs which are supposed to be printed double sided, but my printer is only single sided.

Easy, just print all odd sides, then turn the wad over and print all the even sides in reverse order.

Except, selecting "odd sides only" causes the Gnome(?) Document Viewer -> CUPS -> Epson printer driver chain to crash with no output. I suspect whatever package parses the pdf file for CUPS, but I'm not sure what that would be.

One way out would be to split each pdf into two, one with all the odd sides and one with all the even. There are too many to do manually, so a script would be needed.

Any ideas, either for a Debian-free tool with functional pdf print options or for said script?
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
johnhudson
LXF regular


Joined: Wed Aug 03, 2005 2:37 pm
Posts: 857

PostPosted: Sat Jun 22, 2013 9:22 pm    Post subject: Reply with quote

The document is/should be sent as a series of pdf pages which CUPS then converts to postscript for printing.

So the problem is not a printer or a CUPS problem since, apart from rastering images, everything ends up in postscript.

The problem is the document viewer which is failing to concatenate all the odd pages before sending them to CUPS.
Back to top
View user's profile Send private message
Dutch_Master
LXF regular


Joined: Tue Mar 27, 2007 2:49 am
Posts: 2422

PostPosted: Sat Jun 22, 2013 11:09 pm    Post subject: Reply with quote

Try another PDF reader, like xpdf.
Back to top
View user's profile Send private message
wyliecoyoteuk
LXF regular


Joined: Sun Apr 10, 2005 11:41 pm
Posts: 3422
Location: Birmingham, UK

PostPosted: Sun Jun 23, 2013 7:55 am    Post subject: Reply with quote

Actually, pdfs are already postscript.
You could use a script which parses the postscript and selects the odd then the even pages.
Cups can be set to print to a program, you need to create a virtual printer.
_________________
The sig between the asterisks is so cool that only REALLY COOL people can even see it!

*************** ************
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Sun Jun 23, 2013 9:06 am    Post subject: Reply with quote

pdftk splits and reassembles PDF files, it has options to split out the odd or even or any other page range) into a separate file. Reading the man page, it would appear you can use it to generate two PDFs, for the even and odd pages, and even reverse the page order in one of them.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1041
Location: Worcestershire

PostPosted: Sun Jun 23, 2013 11:45 am    Post subject: Reply with quote

Thanks all.

Yay, xpdf works. It seems to barf on many modern pdfs so I didn't think of it here. Works fine with my relatively simple ones for the buk of this job. Yeeks! Motif brings back memories.

If I run into trouble with the diagrams I'll take a look at pdftk.
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
guy
LXF regular


Joined: Thu Apr 07, 2005 1:07 pm
Posts: 1041
Location: Worcestershire

PostPosted: Sun Jun 23, 2013 1:13 pm    Post subject: Reply with quote

Update: xpdf did barf over the diagrams pdf. It couldn't cope that the pages were rotated 90 deg to print on portrait paper like the main document, and printed them non-rotated but shrunk to fit instead.

Amazingly, the Document Viewer coped with this pdf.
_________________
Cheers,
Guy
The eternal help vampire
Back to top
View user's profile Send private message
nelz
Site admin


Joined: Mon Apr 04, 2005 12:52 pm
Posts: 8364
Location: Warrington, UK

PostPosted: Sun Jun 23, 2013 1:26 pm    Post subject: Reply with quote

It is possible that these PDFs break the standard in some way. In that case, the solution may be as simple as doing a Print-to-PDF in the document viewer and then working with the new PDFs.
_________________
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast