Debian :: Cups-pdf Creates PDFs With Garbled Text Information
Mar 14, 2012
I print something with cups-pdf. The pdf appears, it LOOKS as it should, BUT if i actually select text from the pdf viewer and try to paste it somewhere, i get messed up characters (sometimes no characters). So this means that searching too is out of the question i guess.
Why is this happening? I dont know if its a ghostscript issue because on Windows there are several gs based pdf printers and those create perfectly searchable pdfs. Is this a cups/cups-pdf specific issue?
PS Printing through the "Print to file" dialog creates good pdfs but i dont know how to replicate that via command line.
I've been having trouble with rendering issues in Gnome for the past few weeks, running Sid on x86_64, Occasionally Blue and Grey horizontal bars show up, they go away partially if I scroll up or down, and the bars disappear completely if the window is resized. Select characters/letters will also occasionally become garbled, if I change the font in Gnome Tweak Tool it seems to temporarily fix the issue though.
I don't know if I'm doing something wrong but I've been running Ubuntu or a variant for about a year now and suddenly every now and then one or two of my documents (open office or pdfs) have no information and they won't open.
cups does not start with the server. When I try to start from the terminal I get the error message
cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting! cupsd: Child exited with status 1!
The log files show nothing. cupsd.conf exists. It is user - root and group - root with permissions set at 0644.
My interpretation of this is that the program is not launching from either boot or terminal for a fundamental reason. I do not quite see what that reason is .
In the last attempt I did, sdb,sdc and sdd all had the correct ordering of partitions, but sda looked like above, which means I would need to assemble by boot array partition array as /dev/md0 = /dev/sda3, /dev/sdb1, dev/sdc1, dev/sdd1
Why is the partition numbering moving around as I create them?
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"
installed lenny and am trying to install brother dcp7010 again:
1) i can't start CUPS server with /etc/init.d/cups restart "file not found", there is a cups@ link in /etc/init.d.
2) when i install dcp7010 cupswrapper
dpkg -i cupswrapperDCP7010-2.0.1-2.i386.de it ends with " lpinfo: Verbindung zum Server nicht m�glich: Verbindungsaufbau abgelehnt lpadmin: Verbindung zum Server nicht m�glich: Verbindungsaufbau abgelehnt" (connection to server not possible, refused)
3)[URL] doesn't work.
4)foomatic-gui can't find the installed dcp7010 lpr-driver
brdcp7010lpr-2.0.1-1.i386.deb, (a couple of days ago it did)
This is frustrating because it worked in etch and worked for awhile in lenny. The dcp7010-scanner does work.
So this also happened to me when trying to install an old version of Ubuntu (hardy I believe). I have a Sun Netra X1 that I am trying to install the latest stable Debian Sparc64 port on. I'm doing a TFTP boot, and am able to get the kernel to load. However, once the kernel loads the installer, the screen gets garbled (attached is a screenshot from my console session) This server has no graphics card, so I have to install using the serial console. I don't recall having this issue when I installed the last stable version. Any ideas what's going on or how to fix it? I even passed the option "DEBIAN_FRONTEND=text" to the kernel, but it didn't seem to do anything.
I configured cups and I managed to print successfully with generic text only but my problem is that the printout always comes out as 80 columns. anything more than 80 colums wraps on the next page. I tried changing the pagesize at the textonly.ppd but it didn't work.my textonly.ppd is
I am an astronomy student using Ubunut 10.04, and a frequent user of IRAF ( an *nix image processing application geared toward astronomy). IRAF produces, amongst other things, a text document with various values on it (example below).
Code: K IRAF = NOAO/IRAFV2.14.1 version %-23s #K USER = name %-23s #K HOST = Balthazar computer %-23s #K DATE = 2010-04-29 yyyy-mm-dd %-23s
[Code]...
Now, the information I'm actually interested is the X and Y coordinates down towards the bottom (in this case, 973.505, 271.474).
I have about 800 of these output text files, and I was wondering if there's any sort of script or command that could go through them (presumably reading from a list of file names), and extract the coordinates. Ideally, the output would be a list of coordinates (i.e. X-coordinate, Y-coordinate).
Is there any way to edit text files with information in a database? The file is supposed to be always the same.. the information is going to be addedd in a specific format
I am trying to make a live usb drive with persistents and so far I have used win32DiskImager to write the debian-live-8.1.0-i386-gnome-desktop image to a usb drive. (im using a windows machine to get this set up) and it all went fine. The problem shows itself when i boot from the drive however. it boots fine and i select the live option when prompted. then i get the debian loading screen and once it finishes loading both my screens turn to garbled static and it just hangs there.
I'm looking for an app for Linux that creates bootable images. Back when I used windows, I used Imgburn. Now, I need an app like that for Linux. Wherever I looked online, I saw either one (or both) of these ideas.
1. Run Imgburn under wine 2. Get k3b
I don't like using wine because the programs run very slow. I'm not sure exactly how to get k3b to produce a bootable image. So that's where I'm stuck.
I have some USB-Serial converters and when I connect any of them for the first time a /dev/ttyUSB0 node is created. If I disconnect the device and then reconnect it then a /dev/ttyUSB1 node is created y I do the same again (reconnect) a /dev/ttyUSB2 node is created...
This is annoying because if mostly use only one converter at a time and because of the device node changing I have to reconfigure my software.
To reset the numbering of the device node I can force the reload of the usbserial module but before (I don't know when before) this was not necessary.
I have also checked if the device is being in use before disconnecting it (with lsof) and the device is not being used.
I want to write a shell script which will simultaneously collect OS user information and write in an individual text files.Can anyone tell me the syntax of the script.N.B. The user name will be mentioned in an array within the shell script.
I have a printer configured on my Ubuntu server using CUPS amd made it available to the local network. The printer is recognized on my other Ubuntu machine without any problems. But on my Suse laptop, the printer is not recognized. Using the YaST printer Configuations, I choose the option "Recieve Printer Information from Remote CUPS servers. But no printer is found.But... when I choose Do All Yout Printing Directly via One Remote CUPS server and enter the correct IP address (192.168.1.100), the printer is found andI am sure the printer info is broadcasted because it shows up on my second Ubuntu PC. But why is it not recognized by default on my Suse machine
I'm in a bind and I don't know how to get what I want. Nmap shows ipp running cups on port 631. Great, simple enough I uninstall cups, along with its dependencies. A new portscan reveals that the port is closed SUCCESS, but... Ubuntu Update Manager nags me @ every restart about the "important security" updates. I can't lock the version of cups in Synaptic, because cups is not installed! So you see I'm in a bind. If I have cups installed I have an open port, and if I uninstall cups the update manager nags me. What do I do? I've tried:
- stopping the cups service and issuing the chkconfig cups off command... (doesn't close the port) - uninstalling cups... (update manager nags) - fuser -k 631/tcp (great, but @ reboot the port is still open) Please teach me how to close this port / stop this service / tell update manager to shove cups.....
I've been trying to figure this out for longer than I care to admit. We upgraded our print server (sysadmin) to 64 bit lucid and that moved our cups server from 1.3.7 to 1.4.3. We have a remote server that is still 1.3.7 (printhost1) but version difference doesn't seem to be relevant to the problem.
If I'm on console on sysadmin and do an lpr to a printer on printhost1, everything is copacetic. However, If I'm on a host that specifies "ServerName sysadmin" in its "/etc/cups/client.conf" access_log on sysadmin shows:
and error_log shows: E [22/Mar/2011:11:11:40 -0500] Returning IPP client-error-not-authorized for Create-Job (ipp://localhost:631/printers/103_hp4250) from 172.16.10.52
We've been using this method of sharing printers between locations for years and years so it not working now is a surprise.
cupsd.conf on sysadmin looks like this and is as open as I can imagine:
Additional symptoms are that only printers locally defined on sysadmin show up when the client uses System>Administration>Printing in gnome. Same thing when you browse printers in windows on our samba domain controller that backends on CUPS.
I just know that it's something simple that's going to make me facepalm but I'm at a loss.
I have installed Slackware 13 on one of the hard disks of my computer in order that I can get it working properly before changing over from 12.2.
My main problem is that I cannot get CUPS to change from 'Letter', which I presume is an American size, to A4, has anyone else had experience of this problem?
I'm trying to write a program which would get information from a webpage and display the information on my desktop sort of like a widget. I kind of remember there being something like this already made, but for the life of me I can't remember what it's calledDoes anyone know?
Is it possible to setup a printer without cups, most of Linuxes try to setup cups, which is basically for Notworks, but it really doesn't help much with a stand alone and more of nuisance and a hindrance.
whose still learning the ropes, I've installed a new printer on my Debian (2.26 version, unstable, tho' duly updated ) - a HP Photosmart C4600 ,through CUPS and all [b]seemed[/b] well ... applied /etc/init.d/cups restart.Result: it appears to oblige for a moment then straight back to 'STOP' mode so that I can't even get a test page printed.I'm at a loss to know what the issue might be, except if the message coming up on the CUPS admin page - "Filter "foomatic-rip-hplip" for printer "Printer" not available is of any pertinence: I've tried getting/installing/enabling such but -no joy.s
I'm trying to get cups-pdf to work. I'm working on adding the virtual printer through http://localhost:631, but when I try it asks for my password. I cannot use root because I have locked it out and currently use sudo with my main account. To make changes using my main user account credentials, do I need to add that account to some "printer admin" group, or something?My sys info, in case it makes a difference:Debian Lenny amd64, Xfce desktop
I have installed cups(1.5.3) in my Beagleboard black based custom hardware running on Debian 7.8 using 'apt-get install' command. I am trying to print to HP deskjet 1112 usb printer from system line but nothing is getting printed and the output of 'lpstat -t' shows the error : "/usr/lib/cups/filter/hpcups failed "
The error_log output is :
I [10/Nov/2015:09:44:51 +0000] Saving job.cache... I [10/Nov/2015:09:44:52 +0000] Listening to [v1.::1]:631 (IPv6) I [10/Nov/2015:09:44:52 +0000] Listening to 127.0.0.1:631 (IPv4) I [10/Nov/2015:09:44:52 +0000] Listening to /var/run/cups/cups.sock (Domain)
[code]....
Please find the response from CUPS administrators below:
As far as I see this has nothing to do with CUPS.As far as I see the first error message comes from Ghostscript: "Unable to open the initial device, quitting" (this is in Ghostscript's gs_init.ps file).Therefore Ghostscript does not produce any output which lets then the filter from HP's HPLIP driver software error out with "cupsRasterOpen failed" and finally the HP backend errors out with "ERROR: null print job".Neither Ghostscript nor HP's HPLIP driver software belong to CUPS so that the issue does not belong to CUPS (according to my analysis).
I guess that somehow the "Ghostscript command line" is not correct or does not work as it should.Usually this is alos no bug in Ghostscript but "some where else" where the Ghostscript command line with all its parameters is created.
My printer is a HP laserjet 4 Plus. It used to work with the gutenprint drivers pretty much since always.I don't know when it broke, because I don't use it that often. I have tried with the generic postscript driver, with the gutenprint driver, with the j4dith driver and with the hplib driver. Basically, what happens is that all jobs never finish processing in the queue. On the other hand cups-pdf still works.