LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 06-17-2011, 12:12 AM   #1
r_ranasinghe69
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, 06:55 AM   #2
markush
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.

Markus
 
Old 06-27-2011, 12:54 AM   #3
r_ranasinghe69
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 12:55 AM.
 
  


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 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 08:59 PM
Linux printer to allow Windows printing? langgang Linux - Newbie 1 11-27-2007 12:28 PM
Printing from windows in Linux printer Koven Linux - Hardware 1 01-25-2006 03:39 PM
keeping printer on at bootup keeps printer from printing (some printer modules loaded TheOneAndOnlySM Slackware 1 10-17-2003 07:39 PM
Printing to a windows printer from Linux 9 star2a Linux - Networking 2 10-09-2003 02:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:05 PM.

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