LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2016, 02:17 PM   #1
bepa
LQ Newbie
 
Registered: Sep 2016
Distribution: Debian
Posts: 3

Rep: Reputation: Disabled
Cups command line printing with correct paper size


Hi everyone!

I am very desperated with my attempts to get cups working right fo me.

I have an old HP Photosmart 420 printer, which I want to use with my photo booth (It should replace a Canon Selphie printer).

I use a raspberry pi 3 with the most recent system and updated software.
I installed cups, hplips and got the printer running. Now I want to print pictures on photo paper with 100x150mm.

When I use the lp command to print, the printer default settings are ignored and the picture is cropped and uses only 3/4 of the paper.
I think I read every part of the documentation and tried every setting, like lp -d Printer -o PaperSize=Custom.100x150mm image.jpg.
No matter which setting I use, there are only two different outputs of the picture: like said above or the picture has the size of a stamp.

But, when I use GIMP to print, the picture has the right scale and the paper size seem to be correct (ok, borderless printing doesn't work, but this would be OK for me)

Maybe anyone had the same issues and a solution for my problem?
Thanks everyone for every hint!

Greetings
bepa

Last edited by bepa; 09-26-2016 at 02:18 PM. Reason: Added closing line
 
Old 09-26-2016, 03:44 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
What's in /etc/papersize ?
 
Old 09-27-2016, 10:17 AM   #3
bepa
LQ Newbie
 
Registered: Sep 2016
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi!

The paperconf says a4, but changing the default value doesn't change the print output.
I also tried every setting of the ppd file, but the printer gracefully ignores them.
I ran out of ideas to get this printer to work. In worst case, I could use it as paper weight.

Greetings
bepa
 
Old 09-29-2016, 02:48 AM   #4
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
The lp command has this option per man page:

-o media=size
Sets the page size to size. Most printers support at least the size names "a4", "letter", and "legal".

Did you try that?
 
Old 09-29-2016, 11:57 AM   #5
bepa
LQ Newbie
 
Registered: Sep 2016
Distribution: Debian
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hi!

Yes, I tried every configuration combination. i also used every unit system for the size information. Now I am at the point to give up and sell the printer.
I wanted to replace the selphie because it uses expensive cartridges and the Photosmart normal ink.

Greetings
bepa
 
Old 09-29-2016, 01:05 PM   #6
c0wb0y
Member
 
Registered: Jan 2012
Location: Inside the oven
Distribution: Windows
Posts: 421

Rep: Reputation: 74
Did you see anything from the logs? Both on access and error logs
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing to cups-pdf via command line with options? devmoc Linux - Software 8 07-14-2011 02:32 AM
Setting default paper size for printing? Dox Systems - Brian Solaris / OpenSolaris 3 02-27-2008 03:16 PM
how to set font size for printing from command line? aslevin Linux - General 1 06-02-2006 05:45 PM
Printing 2 pages in 1 page paper in (Redhat) Linux using command line elmer1503 Linux - General 5 02-01-2006 03:13 AM
Printing management (command line cups) grautu Slackware 3 10-20-2005 01:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration