-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create PPD file from get-printer-attributes #5238
Comments
Which appimage are you talking about? |
the appimage I used to get the photo printed out is ippsample. worked perfect. however when I want to print from cups directly it fails, even though cups discover the printer and has it as driverless ipp printer.. So my idea was that cups had a wrong .ppd file generated. On the other hand ippsample seems to have it right. |
With a bit more time into it, I realized ippsample is just a helper/sample that uses the ipptool function that comes with CUPS. Still, I don't understand why ipptool prints correctly but cups (from cups:631 web) doesnt. the only way to have a print is from cli tool ipptool. From any app (using gnome) it doesnt print, from cups web (print test page) it doesnt print.. so back to my doubt, is it a .ppd issue? is the one generated by cups wrong? |
@mfauvain ipptool submits the file directly to the printer, while CUPS runs filters to generate a printable file. It is entirely possible that the filters or PPD are not right, particularly in CUPS 2.2.4 (current stable 2.2.x is 2.2.6), and since this particular printer doesn't support IPP Everywhere you are depending on unsupported (beta) code for generating Apple raster data for the printer when printing through CUPS. (the printer supports JPEG natively, which is why you can print via ipptool) If possible, can you test against the current stable release (2.2.6)? |
@michaelrsweet, thank you for the help. I tried cups 2.2.6 but still no printing. I've noticed though the cups-filter version is the same as when using cups 2.2.4. I see both using cups-filter 1.17.9. |
Installed cups-filter 1.19.0 but still no printing from cups... |
Installed Cups 2.3b2/ cups filter 1.19.0 but still no printing from cups. |
@mfauvain This printer supports AirPrint, which is not the same as IPP Everywhere (two different, if related, standards). Your phone is converting PDFs to a raster format that is supported by the printer. Your CUPS system needs to the same, but it sounds like something isn't working properly. It would be VERY helpful if you can attach the generated PPD to this issue - you'll find the PPD under /etc/cups/ppd. Thank you! |
Here is the .ppd generated by cups 2.2.4/filter 1.17.9 from earlier. I'll post the one generated by the latest install (cups 2.3b2/filter 1.19.0) in a moment. *PPD-Adobe: "4.3" |
This PPD isn't from CUPS or is using some unsupported fork of the CUPS PPD generator. I don't believe that this particular printer actually supports PWG Raster files for printing (which is what the PPD says), and thus when you try to print the printer is rejecting what is being sent to it. Try using:
|
I am away and printer is not connected at moment so cant try lpadmin line. I did however tried that excat same line last week with no succes (maybe was with cups 2.2.4 still though).. Will connect printer and report asap. [x@Archie ~]$ cups-config --version *PPD-Adobe: "4.3" |
Here is the .ppd generated with lpadmin command (ColorJetTest.ppd I've just added a .txt extension to be able to upload it here). I've also managed to find the .ppd generated (upon driver install) on an OSX machine I have here. I've also setup this printer as AirPrint on OSX but cant find the corresponding .ppd.. |
Maybe another piece to this puzzle, avahi broswe shows the only file format advertised by the printer are : TXT pdl = application/octet-stream,image/urf,image/jpeg |
@mfauvain Can you run the following command and attach the output to this issue?
Thanks! |
Closing for lack of a response; can re-open if we have the information requested above... |
Hi Michael, sorry was out for some time, back in 2d and will send requested info. |
Printer attributes as requested. |
Reopening for now; my guess is that while this printer reports support for PWG Raster, it may not implement it correctly. |
So printing from phone uses jpeg? or a different implementation of pwg-raster format? |
Printing a photo will typically use JPEG directly. For other types of output, PWG Raster is used from Android phones while iPhones use Apple Raster - both share a common heritage and compression codec... |
ok. I tried printing any document (photo, pdf, docx) from iphone and it works. Any chance to get this working from linux or dead end? |
That's why I reopened the bug... :) Short term fix: remove the line reading:
from the PPD file and then update with:
where "queuename" is the print queue name and "filename.ppd" is the PPD file you edited. (the "ColorJetTest.ppd.txt" you attached should work once you remove the pwg-raster line) |
thank you, will try later on today. So essentially that would allow jpeg and apple image/urf printing, correct? |
Right, and tell CUPS to convert everything else into image/urf. |
works perfect, thank you vmuch. |
Hi, trying to get a Canon Pixma Pro 10 to work with ubuntu 17.10 + cups 2.2.4. Not able to get anything working even with driverless ipp config in cups (which seems weird to me as ipp driverless printing works even with my iphone) Then I stumbled upon this excellent appimage and finally managed to get a printed photo out!
I have the complete printer attributes from ippsample ipptool -t -v ipp:https://....../ipp/print get-printer-attributes-2.0.test and was wondering if I could possibly get a .ppd file generated from ippsample to then use this when configuring the printer in cups.
Any help greatly appreciated
The text was updated successfully, but these errors were encountered: