Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 06-17-2011, 01:12 AM   #1
LQ Newbie
Registered: Jun 2011
Posts: 4

Rep: Reputation: Disabled
How to set printer options when printing from Linux to Windows printer

We want to print PDFs from a Linux server to a HP LaserJet 1320 PCL 6 which is attached to a Windows print server.

The command we use is
lp -d LaserJet sicl_rcpdebtnt_5.pdf

Problem is, the printout comes with the top 10% of the page not printed. i.e. the printing starts from about 10% of the PDF. The header and top information is not printed.

We tried the scaling option:
lp -o scaling=75 -d LaserJet sicl_rcpdebtnt_5.pdf

But that also has no effect. Only the characters become smaller but still the same problem is there.

What can we do to print the entire PDF in ONE page. When we open the PDF in Windows and print it we have to say Fit to printer margins for the printer's page scaling property.

How to set this in command line Linux???
Old 06-18-2011, 07:55 AM   #2
Senior Member
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello r_ranasinghe69, welcome to LQ,

look at the settings of the Windowscomputer where the printer is connected. Check if there is an option "raw" or anything which says that the printjob has to be transmitted to the printer "as it is".

Post if it does not work, I can check the configuration of Windows-printservers for HP-laserjet next Monday. I'll try this out.

Old 06-27-2011, 01:54 AM   #3
LQ Newbie
Registered: Jun 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hi, Thanks for your reply. I solved the problem 90% by using this print option in the command: -o fitplot. This fill fit the output to the page. Problem was the report output was bigger than an A4, much bigger. Using the above option it printed on the page withonly 1 line from the top not printing. We then modified the report to bring the line bit below and then it was solved.

Last edited by r_ranasinghe69; 06-27-2011 at 01:55 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
printing problem on linux pc while accessing printer which is set on windows pc pankajd Linux - Software 1 11-11-2008 09:59 PM
Linux printer to allow Windows printing? langgang Linux - Newbie 1 11-27-2007 01:28 PM
Printing from windows in Linux printer Koven Linux - Hardware 1 01-25-2006 04:39 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 08:39 PM
Printing to a windows printer from Linux 9 star2a Linux - Networking 2 10-09-2003 03:34 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:21 PM.

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