Re: set default print options on printer

2018-03-10 Thread Brian
On Sat 10 Mar 2018 at 23:01:29 +, Brian wrote:

> You said
> 
>  > Unfortunately testing is still stuck at qt 5.9...
> 
> You did not say "I am using testing". You also did not pick up on
> the disparity between our observations on what the print dialog shows.
> Presumably you thought I was using the same distribution as you.
> 
> >there are lots of wikis.
> > Did you mean a Debian one, a KDE one, a CUPS one or a Tea4cups one? Even
> > within each subject there are often multiple wikis.
> 
> This is a Debian list, Debians's wiki is the obvious first place to
> look. If I had meant a wiki other than the Debian one I would have said.
> Besides, "tea4cups" is sufficient as a key term to get the correct page
> as the first hit. As I said - initiative.

I've got over this now. :) and would rather not detract from producing
an acceptable solution to the problem.

The issue of having an Advanced tab for changing a user's PageSize is
neither here nor there because it can be done with lpoptions on stretch.
On unstable and testing the situation is that A4 rules, ok!

https://forum.kde.org/viewtopic.php?f=251&t=109723

 > The removal of the "Advanced" tab in the print dialog is a known
 > issue in Qt. Apparently the Qt developers were unhappy with how
 > the dialog worked in Qt4 and removed it in Qt5. There were plans
 > to replace it with something better, but lack of time and money
 > have stalled this. Further information (including links to
 > relevant mailing list discussions) is available on the Qt
 > bugtracker: https://bugreports.qt.io/browse/QTBUG-54464

-- 
Brian.




Re: set default print options on printer

2018-03-10 Thread Brian
On Sat 10 Mar 2018 at 17:26:05 -0500, Gary Dale wrote:

> On 2018-03-10 03:49 PM, Brian wrote:
> > On Sat 10 Mar 2018 at 15:07:55 -0500, Gary Dale wrote:
> > 
> > > On 2018-03-10 12:04 PM, Brian wrote:
> > > > On Sat 10 Mar 2018 at 09:52:27 -0500, Gary Dale wrote:
> > > > 
> > > > > On 2018-03-10 08:23 AM, Brian wrote:
> > > > > > BTW, it is possible to alter $HOME/.cups/lpoptions from within 
> > > > > > okular.
> > > > > > File/Print/Name/Properties/Advanced. Highlight Page Size and double-
> > > > > > click at the right side of the highlighted portion.
> > > > > > 
> > > > > > Perhaps you have encountered the bug in Qt that Curt pointed to.
> > > > > I can't get to the location you referred to. I get to File | Print 
> > > > > OK, but
> > > > > the Name is a pull down list. I can select any printer (they all show 
> > > > > A4
> > > > > paper as the default size) then click on the Properties button but 
> > > > > there is
> > > > > never an Advanced tab or button. I can't highlight Paper size nor the 
> > > > > paper
> > > > > pull down list. Double clicking on either does nothing.
> > > > On stretch I see two tabs: Page (for Page Size, Orientation and Margins)
> > > > and Advanced; I am using the PPD for your printer and Advanced options
> > > > are under JCL and General.
> > > On Buster I see Page and Job Options. Neither has an "Advanced Options".
> > Where have you ever mentioned you are using buster on the client? I
> > think that anyone responding to a mail asking for help is entitled to
> > assume the user is using Debian. Debian is not buster. It also isn't
> > unstable. wheezy and jessie are not Debian. The only Debian distribution
> > is stretch.
> > 
> > The onus is on the person asking the question to make it clear what is
> > being used. Only now do you reveal it. Not only are we not on the same
> > page in the hymn book, we are not in the same church. Much of the time
> > it might not a make difference, but it does with okular.
> > 
> > Regarding my single word response to your single word question in the
> > other part of this mail: if you cannot find the wiki and search, then
> > guiding you through any subsequent process seems fraught.
> > 
> > 
> I mentioned it two messages back. As for the wiki,

You said

 > Unfortunately testing is still stuck at qt 5.9...

You did not say "I am using testing". You also did not pick up on
the disparity between our observations on what the print dialog shows.
Presumably you thought I was using the same distribution as you.

>there are lots of wikis.
> Did you mean a Debian one, a KDE one, a CUPS one or a Tea4cups one? Even
> within each subject there are often multiple wikis.

This is a Debian list, Debians's wiki is the obvious first place to
look. If I had meant a wiki other than the Debian one I would have said.
Besides, "tea4cups" is sufficient as a key term to get the correct page
as the first hit. As I said - initiative.

-- 
Brian.



Re: set default print options on printer

2018-03-10 Thread Gary Dale

On 2018-03-10 03:49 PM, Brian wrote:

On Sat 10 Mar 2018 at 15:07:55 -0500, Gary Dale wrote:


On 2018-03-10 12:04 PM, Brian wrote:

On Sat 10 Mar 2018 at 09:52:27 -0500, Gary Dale wrote:


On 2018-03-10 08:23 AM, Brian wrote:

BTW, it is possible to alter $HOME/.cups/lpoptions from within okular.
File/Print/Name/Properties/Advanced. Highlight Page Size and double-
click at the right side of the highlighted portion.

Perhaps you have encountered the bug in Qt that Curt pointed to.

I can't get to the location you referred to. I get to File | Print OK, but
the Name is a pull down list. I can select any printer (they all show A4
paper as the default size) then click on the Properties button but there is
never an Advanced tab or button. I can't highlight Paper size nor the paper
pull down list. Double clicking on either does nothing.

On stretch I see two tabs: Page (for Page Size, Orientation and Margins)
and Advanced; I am using the PPD for your printer and Advanced options
are under JCL and General.

On Buster I see Page and Job Options. Neither has an "Advanced Options".

Where have you ever mentioned you are using buster on the client? I
think that anyone responding to a mail asking for help is entitled to
assume the user is using Debian. Debian is not buster. It also isn't
unstable. wheezy and jessie are not Debian. The only Debian distribution
is stretch.

The onus is on the person asking the question to make it clear what is
being used. Only now do you reveal it. Not only are we not on the same
page in the hymn book, we are not in the same church. Much of the time
it might not a make difference, but it does with okular.

Regarding my single word response to your single word question in the
other part of this mail: if you cannot find the wiki and search, then
guiding you through any subsequent process seems fraught.


I mentioned it two messages back. As for the wiki, there are lots of 
wikis. Did you mean a Debian one, a KDE one, a CUPS one or a Tea4cups 
one? Even within each subject there are often multiple wikis.




Re: set default print options on printer

2018-03-10 Thread Brian
On Sat 10 Mar 2018 at 15:07:55 -0500, Gary Dale wrote:

> On 2018-03-10 12:04 PM, Brian wrote:
> > On Sat 10 Mar 2018 at 09:52:27 -0500, Gary Dale wrote:
> > 
> > > On 2018-03-10 08:23 AM, Brian wrote:
> > > > BTW, it is possible to alter $HOME/.cups/lpoptions from within okular.
> > > > File/Print/Name/Properties/Advanced. Highlight Page Size and double-
> > > > click at the right side of the highlighted portion.
> > > > 
> > > > Perhaps you have encountered the bug in Qt that Curt pointed to.
> > > I can't get to the location you referred to. I get to File | Print OK, but
> > > the Name is a pull down list. I can select any printer (they all show A4
> > > paper as the default size) then click on the Properties button but there 
> > > is
> > > never an Advanced tab or button. I can't highlight Paper size nor the 
> > > paper
> > > pull down list. Double clicking on either does nothing.
> > On stretch I see two tabs: Page (for Page Size, Orientation and Margins)
> > and Advanced; I am using the PPD for your printer and Advanced options
> > are under JCL and General.
>
> On Buster I see Page and Job Options. Neither has an "Advanced Options".

Where have you ever mentioned you are using buster on the client? I
think that anyone responding to a mail asking for help is entitled to
assume the user is using Debian. Debian is not buster. It also isn't
unstable. wheezy and jessie are not Debian. The only Debian distribution
is stretch.

The onus is on the person asking the question to make it clear what is
being used. Only now do you reveal it. Not only are we not on the same
page in the hymn book, we are not in the same church. Much of the time
it might not a make difference, but it does with okular.

Regarding my single word response to your single word question in the
other part of this mail: if you cannot find the wiki and search, then
guiding you through any subsequent process seems fraught.

-- 
Brian.



Re: set default print options on printer

2018-03-10 Thread Brian
On Sat 10 Mar 2018 at 15:07:55 -0500, Gary Dale wrote:

> On 2018-03-10 12:04 PM, Brian wrote:
> > 
> > If you feel energetic, head over to the wiki and Tea4CUPS. The problem
> > can be worked roundLink? by enforcing media=Letter. Then it will not matter
> > what okular comes up with.
> > 
>
> Link?

Initiative.

-- 
Brian. 



Re: set default print options on printer

2018-03-10 Thread Gary Dale

On 2018-03-10 12:54 PM, David Wright wrote:

On Fri 09 Mar 2018 at 23:19:28 (-0500), Gary Dale wrote:

On 2018-03-09 07:13 AM, Brian wrote:

On Fri 09 Mar 2018 at 00:04:33 -0500, Gary Dale wrote:


On 2018-03-08 09:50 AM, Brian wrote:

The default size can be overridden by CUPS in a number of ways, usually
with the help of lpoptions. This new size is also "correct".

It is correct because that is what is in the paper tray. There is no default
paper size setting for this printer through the CUPS web interface. I know
that is unusual but it is the way that printer's CUPS driver seems to work.

Scroll down the page to reveal the Page Size option.

You're right. It is set to letter.


Do you have an lpoptions file in /etc/cups or $HOME/.cups?


There is no lpoptions file in /etc/cups and the one in $HOME/.cups is empty.

It is okular without KDE here and it honours lpoptions. Try
lpoptions -p Samsung_C410_Series -o PageSize=Letter


Does that require a restart because it doesn't seem to fix the
problem. After I entered the command, $HOME/.cups/lpoptions contains
"Dest Samsung_C410_Series PageSize=Letter" but Okular still wants to
use A4.

I just typed  okular paper size  into google and the first hit was
https://forums.linuxmint.com/viewtopic.php?t=188878
Is this any help, ie attack okular rather than CUPS?

Cheers,
David.


Didn't change Okular.



Re: set default print options on printer

2018-03-10 Thread Gary Dale



On 2018-03-10 12:04 PM, Brian wrote:

On Sat 10 Mar 2018 at 09:52:27 -0500, Gary Dale wrote:


On 2018-03-10 08:23 AM, Brian wrote:

BTW, it is possible to alter $HOME/.cups/lpoptions from within okular.
File/Print/Name/Properties/Advanced. Highlight Page Size and double-
click at the right side of the highlighted portion.

Perhaps you have encountered the bug in Qt that Curt pointed to.

I can't get to the location you referred to. I get to File | Print OK, but
the Name is a pull down list. I can select any printer (they all show A4
paper as the default size) then click on the Properties button but there is
never an Advanced tab or button. I can't highlight Paper size nor the paper
pull down list. Double clicking on either does nothing.

On stretch I see two tabs: Page (for Page Size, Orientation and Margins)
and Advanced; I am using the PPD for your printer and Advanced options
are under JCL and General.
  

On Buster I see Page and Job Options. Neither has an "Advanced Options".


The bug does sound like the same one Curt refers to. Unfortunately testing
is still stuck at qt 5.9 and the bug isn't fixed until qt 5.11. It's been a
month & a half since the bug was supposedly fixed upstream so hopefully it
won't be long before they update Buster.

This bug does not prevent your printing in Letter size but it is very
annoying to have to change A4 to Letter each time. And, if you don't,
there is wasted paper and ink.

If you feel energetic, head over to the wiki and Tea4CUPS. The problem
can be worked roundLink? by enforcing media=Letter. Then it will not matter
what okular comes up with.


Link?



Re: set default print options on printer

2018-03-10 Thread David Wright
On Fri 09 Mar 2018 at 23:19:28 (-0500), Gary Dale wrote:
> On 2018-03-09 07:13 AM, Brian wrote:
> >On Fri 09 Mar 2018 at 00:04:33 -0500, Gary Dale wrote:
> >
> >>On 2018-03-08 09:50 AM, Brian wrote:
> >>>The default size can be overridden by CUPS in a number of ways, usually
> >>>with the help of lpoptions. This new size is also "correct".
> >>It is correct because that is what is in the paper tray. There is no default
> >>paper size setting for this printer through the CUPS web interface. I know
> >>that is unusual but it is the way that printer's CUPS driver seems to work.
> >Scroll down the page to reveal the Page Size option.
> You're right. It is set to letter.
> 
> >>>Do you have an lpoptions file in /etc/cups or $HOME/.cups?
> >>>
> >>There is no lpoptions file in /etc/cups and the one in $HOME/.cups is empty.
> >It is okular without KDE here and it honours lpoptions. Try
> >lpoptions -p Samsung_C410_Series -o PageSize=Letter
> >
> Does that require a restart because it doesn't seem to fix the
> problem. After I entered the command, $HOME/.cups/lpoptions contains
> "Dest Samsung_C410_Series PageSize=Letter" but Okular still wants to
> use A4.

I just typed  okular paper size  into google and the first hit was
https://forums.linuxmint.com/viewtopic.php?t=188878
Is this any help, ie attack okular rather than CUPS?

Cheers,
David.



Re: set default print options on printer

2018-03-10 Thread Brian
On Sat 10 Mar 2018 at 09:52:27 -0500, Gary Dale wrote:

> On 2018-03-10 08:23 AM, Brian wrote:
> > 
> > BTW, it is possible to alter $HOME/.cups/lpoptions from within okular.
> > File/Print/Name/Properties/Advanced. Highlight Page Size and double-
> > click at the right side of the highlighted portion.
> > 
> > Perhaps you have encountered the bug in Qt that Curt pointed to.
>
> I can't get to the location you referred to. I get to File | Print OK, but
> the Name is a pull down list. I can select any printer (they all show A4
> paper as the default size) then click on the Properties button but there is
> never an Advanced tab or button. I can't highlight Paper size nor the paper
> pull down list. Double clicking on either does nothing.

On stretch I see two tabs: Page (for Page Size, Orientation and Margins)
and Advanced; I am using the PPD for your printer and Advanced options
are under JCL and General.
 
> The bug does sound like the same one Curt refers to. Unfortunately testing
> is still stuck at qt 5.9 and the bug isn't fixed until qt 5.11. It's been a
> month & a half since the bug was supposedly fixed upstream so hopefully it
> won't be long before they update Buster.

This bug does not prevent your printing in Letter size but it is very
annoying to have to change A4 to Letter each time. And, if you don't,
there is wasted paper and ink.

If you feel energetic, head over to the wiki and Tea4CUPS. The problem
can be worked round by enforcing media=Letter. Then it will not matter
what okular comes up with.

-- 
Brian.



Re: set default print options on printer

2018-03-10 Thread Gary Dale



On 2018-03-10 08:23 AM, Brian wrote:

On Fri 09 Mar 2018 at 23:19:28 -0500, Gary Dale wrote:


On 2018-03-09 07:13 AM, Brian wrote:

It is okular without KDE here and it honours lpoptions. Try
lpoptions -p Samsung_C410_Series -o PageSize=Letter


Does that require a restart because it doesn't seem to fix the problem.
After I entered the command, $HOME/.cups/lpoptions contains "Dest
Samsung_C410_Series PageSize=Letter" but Okular still wants to use A4.

Neither okular nor cups needs a restart. After the command above,

   lpoptions -p Samsung_C410_Series -l

should show Letter as the default PageSize.

BTW, it is possible to alter $HOME/.cups/lpoptions from within okular.
File/Print/Name/Properties/Advanced. Highlight Page Size and double-
click at the right side of the highlighted portion.

Perhaps you have encountered the bug in Qt that Curt pointed to.
I can't get to the location you referred to. I get to File | Print OK, 
but the Name is a pull down list. I can select any printer (they all 
show A4 paper as the default size) then click on the Properties button 
but there is never an Advanced tab or button. I can't highlight Paper 
size nor the paper pull down list. Double clicking on either does nothing.


The bug does sound like the same one Curt refers to. Unfortunately 
testing is still stuck at qt 5.9 and the bug isn't fixed until qt 5.11. 
It's been a month & a half since the bug was supposedly fixed upstream 
so hopefully it won't be long before they update Buster.




Re: set default print options on printer

2018-03-10 Thread Brian
On Fri 09 Mar 2018 at 23:19:28 -0500, Gary Dale wrote:

> On 2018-03-09 07:13 AM, Brian wrote:
> > It is okular without KDE here and it honours lpoptions. Try
> > lpoptions -p Samsung_C410_Series -o PageSize=Letter
> > 
> Does that require a restart because it doesn't seem to fix the problem.
> After I entered the command, $HOME/.cups/lpoptions contains "Dest
> Samsung_C410_Series PageSize=Letter" but Okular still wants to use A4.

Neither okular nor cups needs a restart. After the command above,

  lpoptions -p Samsung_C410_Series -l

should show Letter as the default PageSize.

BTW, it is possible to alter $HOME/.cups/lpoptions from within okular.
File/Print/Name/Properties/Advanced. Highlight Page Size and double-
click at the right side of the highlighted portion.

Perhaps you have encountered the bug in Qt that Curt pointed to.

-- 
Brian.



Re: set default print options on printer

2018-03-09 Thread Gary Dale

On 2018-03-09 07:13 AM, Brian wrote:

On Fri 09 Mar 2018 at 00:04:33 -0500, Gary Dale wrote:


On 2018-03-08 09:50 AM, Brian wrote:

The default size can be overridden by CUPS in a number of ways, usually
with the help of lpoptions. This new size is also "correct".

It is correct because that is what is in the paper tray. There is no default
paper size setting for this printer through the CUPS web interface. I know
that is unusual but it is the way that printer's CUPS driver seems to work.

Scroll down the page to reveal the Page Size option.

You're right. It is set to letter.

 
  

Do you have an lpoptions file in /etc/cups or $HOME/.cups?


There is no lpoptions file in /etc/cups and the one in $HOME/.cups is empty.

It is okular without KDE here and it honours lpoptions. Try
  
lpoptions -p Samsung_C410_Series -o PageSize=Letter


Does that require a restart because it doesn't seem to fix the problem. 
After I entered the command, $HOME/.cups/lpoptions contains "Dest 
Samsung_C410_Series PageSize=Letter" but Okular still wants to use A4.




Re: set default print options on printer

2018-03-09 Thread Brian
On Fri 09 Mar 2018 at 00:04:33 -0500, Gary Dale wrote:

> On 2018-03-08 09:50 AM, Brian wrote:
> > 
> > The default size can be overridden by CUPS in a number of ways, usually
> > with the help of lpoptions. This new size is also "correct".
>
> It is correct because that is what is in the paper tray. There is no default
> paper size setting for this printer through the CUPS web interface. I know
> that is unusual but it is the way that printer's CUPS driver seems to work.

Scroll down the page to reveal the Page Size option.
 

 
> > Do you have an lpoptions file in /etc/cups or $HOME/.cups?
> > 
> There is no lpoptions file in /etc/cups and the one in $HOME/.cups is empty.

It is okular without KDE here and it honours lpoptions. Try 
 

 
lpoptions -p Samsung_C410_Series -o PageSize=Letter

-- 
Brian. 



Re: set default print options on printer

2018-03-09 Thread Curt
On 2018-03-09, Gary Dale  wrote:
> On 2018-03-08 11:46 AM, Curt wrote:
>> On 2018-03-08, Brian  wrote:
>>> Okular uses the default size setting in the PPD if nothing else overrides
>>> it. If it is offering A4, it is being informed of the "correct" size by
>>> something.
>> I was considering '/etc/papersize' as a possible culprit. I'm not sure
>> how the contents of that file (as well as the PAPERSIZE environment
>> variable, if it exists) articulates with CUPS' lpoptions and the default
>> size setting in PPD.
>>
>> curty@einstein:~$ paperconf
>> a4
>>
>> That's what I want (reflecting the contents of /etc/papersize here).
>>
>>
> /etc/papersize is set to letter. The paperconf command responds with 
> letter as well.
>
>

There seems to be a recent bug report concerning this issue (bug in underlying
QT library).

https://www.mail-archive.com/kde-bugs-dist@kde.org/msg202675.html

-- 
Bah, the latest news, the latest news is not the last.
Samuel Beckett



Re: set default print options on printer

2018-03-08 Thread Gary Dale

On 2018-03-08 09:50 AM, Brian wrote:

On Wed 07 Mar 2018 at 21:35:02 -0500, Gary Dale wrote:


I have a Samsung C410 printer attached to a Stretch server via USB and also
available via wifi. There doesn't seem to be a default print setting for
paper size but the cups listing for the printer shows:

    Defaults:job-sheets=none, none media=na_letter_8.5x11in sides=one-sided

which is correct.

na_letter_8.5x11in is the default size taken from the PPD for the queue
when it was set up. Presumably it is "correct" because it suited you. The
default media size can be changed; via the CUPS web interface is one way.
The new size would also be "correct".

The default size can be overridden by CUPS in a number of ways, usually
with the help of lpoptions. This new size is also "correct".
It is correct because that is what is in the paper tray. There is no 
default paper size setting for this printer through the CUPS web 
interface. I know that is unusual but it is the way that printer's CUPS 
driver seems to work.





   However when I try to print a PDF using Okular, the paper
size is set to A4. If I forget to change it to letter, the print gets
chopped off at the top.

Okular uses the default size setting in the PPD if nothing else overrides
it. If it is offering A4, it is being informed of the "correct" size by
something.
Perhaps but CUPS reports that the default paper size is letter while 
Okular thinks it it is A4.


Please post the output of 'lpoptions -p .

$lpoptions -p Samsung_C410_Series
copies=1 device-uri=socket://192.168.1.12 finishings=3 
job-cancel-after=10800 job-hold-until=no-hold job-priority=50 
job-sheets=none,none marker-change-time=1520549755 
marker-colors=#00,#00,#FF00FF,#00,none,none,none,none,none,none 
marker-levels=65,99,18,17,93,75,76,93,69,0 marker-names='Black\ Toner\ 
S/N\ :CRUM-13080800755,Cyan\ Toner\ S/N\ :CRUM-17042735161,Magenta\ 
Toner\ S/N\ :CRUM-13080800130,Yellow\ Toner\ S/N\ 
:CRUM-13080820351,Transfer\ Roller,Transfer\ Belt,Fuser\ Life,Pick-up\ 
Roller,Imaging\ Unit,Waste\ Toner' 
marker-types=toner,toner,toner,toner,other,other,fuser,other,other,other 
number-up=1 printer-commands=none printer-info='Samsung C410 Series' 
printer-is-accepting-jobs=true printer-is-shared=false 
printer-is-temporary=false printer-location='family room' 
printer-make-and-model='Samsung C410 Series' printer-state=3 
printer-state-change-time=1520549759 printer-state-reasons=none 
printer-type=2101324 
printer-uri-supported=ipp://localhost/printers/Samsung_C410_Series






Any ideas on what is causing this and how do I correct it?

Do you have an lpoptions file in /etc/cups or $HOME/.cups?


There is no lpoptions file in /etc/cups and the one in $HOME/.cups is empty.



Re: set default print options on printer

2018-03-08 Thread Gary Dale

On 2018-03-08 11:46 AM, Curt wrote:

On 2018-03-08, Brian  wrote:

Okular uses the default size setting in the PPD if nothing else overrides
it. If it is offering A4, it is being informed of the "correct" size by
something.

I was considering '/etc/papersize' as a possible culprit. I'm not sure
how the contents of that file (as well as the PAPERSIZE environment
variable, if it exists) articulates with CUPS' lpoptions and the default
size setting in PPD.

curty@einstein:~$ paperconf
a4

That's what I want (reflecting the contents of /etc/papersize here).


/etc/papersize is set to letter. The paperconf command responds with 
letter as well.




Re: set default print options on printer

2018-03-08 Thread Brian
On Thu 08 Mar 2018 at 16:46:36 +, Curt wrote:

> On 2018-03-08, Brian  wrote:
> >
> > Okular uses the default size setting in the PPD if nothing else overrides
> > it. If it is offering A4, it is being informed of the "correct" size by
> > something.
> 
> I was considering '/etc/papersize' as a possible culprit. I'm not sure
> how the contents of that file (as well as the PAPERSIZE environment
> variable, if it exists) articulates with CUPS' lpoptions and the default
> size setting in PPD.

I think CUPS is supposed to use /etc/papersize (it has libpaper1 as
a dependency) and/or detect what to have for the media size from the
locale when a queue is set up. I've never found it to work so use
PageSize= when setting up a queue with lpadmin. lpoptions is really
an after-the-event utility.

I do not think Okular consults /etc/papersize.

-- 
Brian.



Re: set default print options on printer

2018-03-08 Thread Curt
On 2018-03-08, Brian  wrote:
>
> Okular uses the default size setting in the PPD if nothing else overrides
> it. If it is offering A4, it is being informed of the "correct" size by
> something.

I was considering '/etc/papersize' as a possible culprit. I'm not sure
how the contents of that file (as well as the PAPERSIZE environment
variable, if it exists) articulates with CUPS' lpoptions and the default
size setting in PPD.

curty@einstein:~$ paperconf
a4

That's what I want (reflecting the contents of /etc/papersize here).

> Please post the output of 'lpoptions -p .
>
>> Any ideas on what is causing this and how do I correct it?
>
> Do you have an lpoptions file in /etc/cups or $HOME/.cups?
>


-- 
Bah, the latest news, the latest news is not the last.
Samuel Beckett



Re: set default print options on printer

2018-03-08 Thread Brian
On Wed 07 Mar 2018 at 21:35:02 -0500, Gary Dale wrote:

> I have a Samsung C410 printer attached to a Stretch server via USB and also
> available via wifi. There doesn't seem to be a default print setting for
> paper size but the cups listing for the printer shows:
> 
>    Defaults:job-sheets=none, none media=na_letter_8.5x11in sides=one-sided
> 
> which is correct.

na_letter_8.5x11in is the default size taken from the PPD for the queue
when it was set up. Presumably it is "correct" because it suited you. The
default media size can be changed; via the CUPS web interface is one way.
The new size would also be "correct".

The default size can be overridden by CUPS in a number of ways, usually
with the help of lpoptions. This new size is also "correct".

>   However when I try to print a PDF using Okular, the paper
> size is set to A4. If I forget to change it to letter, the print gets
> chopped off at the top.

Okular uses the default size setting in the PPD if nothing else overrides
it. If it is offering A4, it is being informed of the "correct" size by
something.

Please post the output of 'lpoptions -p .

> Any ideas on what is causing this and how do I correct it?

Do you have an lpoptions file in /etc/cups or $HOME/.cups?

-- 
Brian.



Re: set default print options on printer

2018-03-07 Thread mick crane

On 2018-03-08 02:35, Gary Dale wrote:

I have a Samsung C410 printer attached to a Stretch server via USB and
also available via wifi. There doesn't seem to be a default print
setting for paper size but the cups listing for the printer shows:

   Defaults:job-sheets=none, none media=na_letter_8.5x11in 
sides=one-sided


which is correct. However when I try to print a PDF using Okular, the
paper size is set to A4. If I forget to change it to letter, the print
gets chopped off at the top.

Any ideas on what is causing this and how do I correct it?

Thanks.


Had something similar printing from windows via Cups with it trying to 
get paper from the wrong tray.
Possible that the software helpfully sends instruction which overrides 
cups Setting ?



mick

--
Key ID  4BFEBB31



Re: set default print options on printer

2018-03-07 Thread Doug


On 03/07/2018 09:35 PM, Gary Dale wrote:
I have a Samsung C410 printer attached to a Stretch server via USB and 
also available via wifi. There doesn't seem to be a default print 
setting for paper size but the cups listing for the printer shows:


   Defaults:job-sheets=none, none media=na_letter_8.5x11in 
sides=one-sided


which is correct. However when I try to print a PDF using Okular, the 
paper size is set to A4. If I forget to change it to letter, the print 
gets chopped off at the top.


Any ideas on what is causing this and how do I correct it?

Thanks.


I have had similar problems with various programs, especially Master PDF 
Editor 4, but not exclusively.  I think there may be some kind of fault 
in cups that keeps changing the specified


page size to A4, regardless of what you have set it to. Running PCLOS 
KDE5, and this problem did not exist in KDE4, but I have no idea where 
the fault actually lies. I hope someone figures


it out and comes up with a cure. The latest updates seem to allow one to 
correct the page size on a job by job basis--i.e., open the printer 
properties for each item you want to print and


set it to Letter (8½ x 11) and it will usually stay for that instance. 
PITA! One of my two printers seems to work better in that area--go figure!


--doug



set default print options on printer

2018-03-07 Thread Gary Dale
I have a Samsung C410 printer attached to a Stretch server via USB and 
also available via wifi. There doesn't seem to be a default print 
setting for paper size but the cups listing for the printer shows:


   Defaults:job-sheets=none, none media=na_letter_8.5x11in sides=one-sided

which is correct. However when I try to print a PDF using Okular, the 
paper size is set to A4. If I forget to change it to letter, the print 
gets chopped off at the top.


Any ideas on what is causing this and how do I correct it?

Thanks.