Software :: Printing To Cups-pdf Via Command Line With Options?
Jun 30, 2011
I'm having a hard time trying to print documents to PDF via cups-pdf at the command line and get all of the nice formatting options that the GUI print spooler dialogs provide. I know how to do "lpr -P Generic-CUPS-PDF-Printer filename" to get a general file printed to a PDF, but this method clearly is missing all of the nice formattingptions that get passed when using a GUI print spooler (margins, fonts, dpi, paper size, etc..). I tried to use ps to capture whatever command is being sent by the spooler but couldn't figure it out, since I'm not really sure what commands get called by the spooler
I managed to print from fedora without rebooting into windows.
--installed rpms provided by canon --installed cups --logged into cups --selected my printer (ip2770) --printed a page--and bang! too dark!
In cups, or on the computer, I only have one option, 600 dpi, which I'm assuming is why it is so dark, ugly, and nothing like it needs to look like This whole process (which is way over my head) put two printers in my printer set up, both called ip2700 series, and I'm not sure which should be the default. I am thrilled to be printing now from linux, but not happy with the quality.
I need some help desperately, and would appreciate a quick response. To begin, here's the output from 'uname -a' for the machine I'm using: Linux ubuntu 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 11:55:36 UTC 2010 x86_64 GNU/Linux
I have printer in CUPS that due driver problems (hp 1010) form time to time goes into pause. I would like to write a shell script that will be once per hour resuming printer in cups.But I have no idea after googling for couple of minutes how to resume printer from shell command line.
I install software called Sunflow v0.07.2 in my Ubuntu. When I try to run it,it says "API error : JVM available memory is below 800 MB (found 728 MB only). Please make sure you launched the program with the -Xmx command line options". What is that xmx command line.What should i do to run Sunflow.
I thought about this a while ago when reading through a Python tutorial and I googled some and couldn't find an answer. Now I want to know it for Ruby, also, and it's more important now because I want to invoke Ruby with -w.
How can you use:
Code:
with a -w option to ruby, like:
Code:
This doesn't work and I can't find an explanation of how to do it.
when i show status ricci on centos5.3x86_64 #service ricci status pidof: invalid options on command line pidof: invalid options on command line p is stopped how can i fix that bug ?
(1) I'm wondering if there is a way to have abcde play the songs while it is encoding? I understand that this would be a lot slower.
(2) Is it possible to have abcde start playing right after it finishes ripping the first track and then have it add on the other tracks to the playlist as it rips them.
Is there anyway to do one or both of these from the command line or with abcde's built-in options?
But how do I mount the sdc drive with those options from the command-line without restarting? I've tried to do so with 'mount' utility, but had no luck.
I don't understand why this is so difficult.In the old days, there was lpforms which allowed some formatting. CUPS did not see fit to implement this into it's lp package.cgi-...-cgi?lpforms+1In the old days, lpr allowed you to select a font in the command line with -1=fontname. CUPS did not see fit to implement this into it's lpr package.htmIn the old days, printers had fonts installed on them that you could access. Modern printers don't seem to have this. So now I still need to be able to select a font when I print certain text files from the command line but it seems this is impossible. I've been working with instances and lpoptions, which allows me to do a lot of other things I need like orientation and margins and even set the font size, but I still cannot choose a font other than the default.
CUPS was not originally installed on my server, I have installed it but cannot print to my network printer. On my laptop, I can... they are both running the same version of Debian. What could be missing?
Here are some details...
I have two computers running the same version of Debian. One is a server with no GUI and the other is my laptop with GDM installed. My laptop (which prints with no problem) is connected via Wifi. My server is connected directly to the router via Ethernet. I cannot print from the server.
The printer is a Canon Pixma MP495 that connects to the router via Wifi. I have downloaded drivers for the printer from [url] and installed them successfully using dpkg on both computers.
Right now I have a regular text file that I am using for a test page. To print from my laptop (with success) I type:
Code:
This does not work from the server. What could I be missing?
I have an executable with input options, like so: Code: ./executable -n 42 -s 42 I've added gcov to the makefiles (compiling with --coverage, -fprofile-arcs, and -ftest-coverage, and linking with -lgcov). It builds fine and creates executable.gcno.
When I try to run gcov, gcov things the options belong to it: Code: $ gcov ./executable -n 42 -s 42 gcov: invalid option -- 's' Usage: gcov [OPTION]... SOURCEFILE... When I use quotes this happens:
I was using Red Hat 7.3 forever and decided it was time for a change. I went to Fedora 10 but it was really buggy. CentOS 5.2 is VERY stable.Here is my problem.The server is command line only -- I tend to hate GUI"S.I setup Samba no problem disabling the ports needed through the firewall and that was straightforward.CUPS is a nightmare for me since CentOS locks down the cupsd.conf and then the firewall does its thing. I allowed port 631 through the firewall but then got lost on the cupsd.conf. It's been too long and the old redhat one won't work with CentOS (not surprising since it's a VERY old system) straight-forward CUPS tutorial for a command line interface. I just need it to be:
Not sure if this is hardware or software so I am raising the question here. I have an Ithaca 280 printer that worked great on fedora 8 with cups 1.3.3. When I upgraded my server and installed Fedora 12 with cups 1.4.2 i noticed a 5 second delay between sending a print job to the printer and it actually printing. This issue doesnt happen with laser printers, just the ithaca thermal printer. I have tested this with 10 other ithaca 280 printers and all of them have the same result. I am using a raw driver, and it is an IP based printer setup for Jetdirect in cups. The setup is identical on a Fedora 8 server as it is on this Fedora 12 server. I have even taken the steps to upgrade to cups 1.4.4 just to see if it was corrected in a newer version, but the issue is still there. I have a utility that writes the raw text directly to the printer which i used to test that it wasnt an issue with the printer or its internal print server. That utility allows the document to print immediately.
what is causing this delay and how to correct it? If not, does anyone know how to print directly to the printer using cups instead of letting it go to the queue first like cups normally does for print jobs?
Anyway im trying to do a simple thing pointed out in the thread title. Everything is set up, cups-pdf works, in dosemu.conf lpt1 command is "lpr" printer-timeout is 10... I "work" in an accounting agency that has a program written in clipper back in 1992. Apparently some prints from this program produce text/plain and some produce application/octet-stream. text/plain is printed. The later is always aborted. I have uncommented the lines in mime.types and mime.convs. Which are located in /usr/share/cups/mime.
I'm not looking to setup a print server. I want to print documents TO an existing network printer while I'm logged in via ssh to my Ubuntu Server 10.4 command line shell. Things like admin emails, pdf docs, etc.
All the clients on my LAN are able to print directly to the network printer without any help from the Ubuntu Server. I don't want to setup CUPS on the server unless that's the only way to print from the server itself to a networked printer.
Do I need CUPS or can I print from the command line in some other way?
I'm doing work at a home office that uses all Ubuntu computers. They have wireless printing setup on a few computers using CUPS. One of the computer's wireless printing isn't working. could someone please help me with getting this set up? Is this something really basic that most people would understand how to do?
I just brought up a new server on RHEL4 to replace an existing older one. The server is using CUPS for printing. I copied the cupsd.conf, printers.conf, and lpoptions files over from the old server. I also copied the printer files in the /etc/cups/ppd directory over to the new server. But I can't get printing to work. And when I run system-config-printer-tui I don't see any of the printers in the dialog box. What other file(s) am I missing?
Using Debian Lenny.Using CUPS and lp. I would like to know how to print files from Openoffice such as doc files, pdf and html. I know I can print from the applications, but sometimes I want to print using lp or xpp. I would like to also set the font size on pdf or html pages before I print. I never know what size of print I'm going to get. Can I chose the font I want to use in text files with Cups?
I am doing work at an office that only uses Linux Ubuntu 9.10 . They have wireless printing setup on all of the computers there, except one of them isn't working. I was not the one who setup the wireless printers so I'm not clear on how to do this.
I am facing a peculiar issue when printing Japanese text through CUPS (though I am not sure if this is the right forum).
I developed a Java application (that uses a graphical object to print to a PrinterJob class) that prints text (of Japanese characters) to a printer. When I login in en_US/en_UK locale, the Japanese characters get printed from my Java app just fine. However, when I login in ja_JP and give a print job through my Java app, no Japanese text is printed at all. I get characters from only within the ASCII subset printed instead. I am using Serif and Courier New fonts in my app. Relevant details are:
In ja_JP, a@a:/usr/share/cups/charsets$ fc-match serif:lang=ja ttf-japanese-mincho.ttf: "Sazanami Mincho" "Regular" a@a:/usr/share/cups/charsets$ fc-match sans serif:lang=ja ttf-japanese-gothic.ttf: "VL Gothic" "regular"
I am running 10.04 beta2 and have installed cups-pdf printing. I can print to the PDF printer and it works fine saving the file to ~/PDF. It saves it with the PDF extension as expected. I am trying to save the file by default to a windows share. I changed the DEVICE URI line to smb://HOME/SERVER/PDF. When I print, the job shows up on the windows share but without a PDF extension
I installed cups_pdf and I am able to print pdf files locally but not Windows.
When I connect to the PDF printer in Windows it ask for a driver so I point it to the generic Microsoft one. I also tried some hp ones as well. When I print I don't get any errors or anything like that. The file appears in the PDF printer queue and disappears but doesn't make it to my computer. I have tried using instructions from various Internet sites but the information is vague, wants me to edit lines that don't exist in cupsd.conf, and/or adds lines that breaks the back-end scheduler to the PDF printer. Every once in a while they tell me to use a raw driver for Windows but what does that mean.
So right now Windows can see and interact with my PDF printer but the file never gets made on the Linux machine. I have reinstalled the cups-pdf, created a pdf printer, and windows can see and connect to it but wants a driver. I am using Ubuntu 10.04 and Windows 7 and everything is up to date. What do I need to do?