Re: [Dorset] Printing of extra blank page for PDF's

2016-06-13 Thread tda

Hi Ralph

On 13/06/16 10:13, Ralph Corderoy wrote:

when it comes to scaling when printing and the comprehensive scaling
options in Evince are completely missing in Okular.


I don't have a good command-line program for that.  pdftk(1) does a
bunch of things, but not N-up printing.  psnup(1) means going to
PostScript and back.  CUPS offers -o number-up={1,2,4,6,9,16} and I
think it can be configured to print to a PDF?  Anyone know of a good
command-line PDF-manipulation program?  (Hijacking Clive's thread a
bit.)



pdftk is great but it is a PDF manipulation toolkit rather than a print 
tool. cups-pdf is a PDF-printing backend for CUPS.



Cheers

Tim


--
Next meeting:  Bournemouth, Tuesday, 2016-07-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Printing of extra blank page for PDF's

2016-06-13 Thread Ralph Corderoy
Hi Tim,

> From memory it's associated with the way Evince mishandles duplexing
> (ie it treats a non-duplex printer like Laserjet 6P as a duplex
> printer). Try printing a pdf with an even number of pages to confirm -
> you shouldn't get the blank page.

Perhaps this is what I was remembering;  I quizzed Clive in the pub
about odd v. even page documents and he said a blank appeared in both
cases.

> Currently using Evince 3.14.1 (Debian Jessie), and that has issues
> with scaling pages, which disappear if you do a print preview prior to
> printing!

Yesterday's Googling suggested some bugs related to the "scale to fit"
and "rotate to match paper" options as if evince does more intervention
in those cases and gets it wrong.

> Okular is OK

With the move away from Gnome, I've started using mupdf(1).  Very fast
rendering.  Lots of keyboard control.  `3m' sets mark 3, `3t' moves back
to it.  Plain `m' pushes the current page on the stack and `t' pops it.
Has somce nice filtering, e.g. greyscale, inverted, and tinting.  But I
don't think it prints!

> when it comes to scaling when printing and the comprehensive scaling
> options in Evince are completely missing in Okular.

I don't have a good command-line program for that.  pdftk(1) does a
bunch of things, but not N-up printing.  psnup(1) means going to
PostScript and back.  CUPS offers -o number-up={1,2,4,6,9,16} and I
think it can be configured to print to a PDF?  Anyone know of a good
command-line PDF-manipulation program?  (Hijacking Clive's thread a
bit.)

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2016-07-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Printing of extra blank page for PDF's

2016-06-13 Thread tda

Hi Clive

On 11/06/16 22:50, C Wills wrote:

Info for Ralph and others:-

At the last DLUG meeting I asked if anyone was having trouble when
printing a PDF, as every time I print a PDf it produces a blank page
after the last page ( a blank does not show on any print preview).
Ralph had a look but all the usual suggestions did not provide an answer.
Tonight I tried changing the default reader from Evince to Ocular and no
extra page was printed!  To confirm I printed the same file again with
Evince - blank page printed!
I've not been able to find any setup options/properties in Evince; so my
default is now Ocular.
If anyone can tell me if there is a setup in Evince for PDFs I'll try
going back to the supported default.
System used is Cinnamon Mint 17.3




I've seen this in the past. Each new version of Evince seems to 
introduce a new set of printing bugs. Although it's a couple of Debian 
(stable) releases back that I saw this. From memory it's associated with 
the way Evince mishandles duplexing (ie it treats a non-duplex printer 
like Laserjet 6P as a duplex printer). Try printing a pdf with an even 
number of pages to confirm - you shouldn't get the blank page.


Currently using Evince 3.14.1 (Debian Jessie), and that has issues with 
scaling pages, which disappear if you do a print preview prior to 
printing! But the blank page problem is fixed.


Okular is OK, but the biggest limitation is that it decides what to do 
when it comes to scaling when printing and the comprehensive scaling 
options in Evince are completely missing in Okular. So it's no good for 
printing things like sheets of labels. Okular is also very easy to set 
up with synctex if you happen to use LaTeX for writing documents.


Then there's Xpdf. I've found that it is unable to print many PDF's at all.

The other option is to print straight to CUPS:

lpr -P printername file.pdf



Cheers

Tim

--
Next meeting:  Bournemouth, Tuesday, 2016-07-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Printing of extra blank page for PDF's

2016-06-12 Thread Ralph Corderoy
Hi Clive,

> > > Tonight I tried changing the default reader from Evince to Ocular
> > > and no extra page was printed!  To confirm I printed the same file
> > > again with Evince - blank page printed!

Ah, I didn't realise you printed a PDF from a PDF viewer.  I thought it
would be from some GUI file manager that would just queue it up similar
to using lp(1) or lpr(1) at the command line.

The printer is an HP LaserJet 6P and that supports HP's PCL 6 and
PostScript Level 2 so I'd expect the PDF to be converted.  I haven't run
a printer for years, but I think CUPS does that conversion when it's
given the PDF, e.g. with lp(1).

But Google suggests evince might also convert PDFs and, given signs of
previous bugs where every page printed blank, it could be this
conversion that's adding the blank page.  evince has a "print to PDF
file" option, I think?  If you produce a new PDF using that and view it
in Ocular has a blank page been added?

It does sound like an evince bug.  Google finds plenty of other "blank
page" evince bugs, but not a simple "blank page appended" one AFAICS.

If you'd prefer to keep using evince then you could see if your GUI file
manager lets you select the PDF and then print it, e.g. with a pop-up
menu.

Cheers, Ralph.

-- 
Next meeting:  Bournemouth, Tuesday, 2016-07-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Printing of extra blank page for PDF's

2016-06-12 Thread Terry Coles
On Sunday, 12 June 2016 11:04:03 BST C Wills wrote:
> On 12/06/16 07:50, Terry Coles wrote:
> > I didn't have Evince installed by default on Kubuntu 16.04, so I put it on
> > and printed a single page with no problems.  I'm not sure if that helps
> > but it presumably is either down to some interaction between Evince and
> > Mint, or between Evince and your printer.
> Just seems strange that it stops with Ocular and comes back with Evince.
> The problem has been with us for some time and even on the desktop (not
> running Mint) which Lily uses most.   So I wonder if it's an upgrade in
> Evince.
> Because it's on both machines I thought it was an upgrade in the origin
> PDF program because we get a lot of them (PDF's) from many different
> sources using Windows, Macs and Linux.

Hmmm, it seems more likely to be a problem with incompatibility between your 
printer and Evince.  I installed the latest Evince on Kubuntu and had no 
problem printing to my HP All-in-One.

What printer are you using?  Can you try it with a different one?


-- 
Next meeting:  Bournemouth, Tuesday, 2016-07-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR

Re: [Dorset] Printing of extra blank page for PDF's

2016-06-12 Thread Terry Coles
On Saturday, 11 June 2016 22:50:03 BST C Wills wrote:
> At the last DLUG meeting I asked if anyone was having trouble when
> printing a PDF, as every time I print a PDf it produces a blank page
> after the last page ( a blank does not show on any print preview).
> Ralph had a look but all the usual suggestions did not provide an answer.
> Tonight I tried changing the default reader from Evince to Ocular and no
> extra page was printed!  To confirm I printed the same file again with
> Evince - blank page printed!

I didn't have Evince installed by default on Kubuntu 16.04, so I put it on and 
printed a single page with no problems.  I'm not sure if that helps but it 
presumably is either down to some interaction between Evince and Mint, or 
between Evince and your printer.

I believe you said that this had only occurred since you upgraded Mint, so I 
would investigate there first.

> I've not been able to find any setup options/properties in Evince; so my
> default is now Ocular.

I couldn't find any Setup Option in Evince either, but there is a menu item 
'Save current settings as default'.  Bizarre!

> If anyone can tell me if there is a setup in Evince for PDFs I'll try
> going back to the supported default.
> System used is Cinnamon Mint 17.3

Are there any system wide print settings in Mint?  There may be something in 
there.

-- 

Terry Coles



-- 
Next meeting:  Bournemouth, Tuesday, 2016-07-05 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR