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
Print PDF When Printer Does Not Support application/PDF #18
Comments
@nawilson Did you find a solution to this problem? |
I use PDF as an example because it is easy to work with- you can view it on your machine AND sent it to a printer. Some older printers and ones made by stubborn manufacturers can't process PDF. In my scenario- I only buy printers that support PDF. The other document types are too hard to work with. So, for PCL variations, you will need a library that generates the Printer Control Language (PCL) data instead of PDF data. Alternatively, you can look at using a CUPS server to handle it. HTH |
@lukas-zech-software My solution was to convert the PDF documents to PCL via GhostScript and then send the PCL file to the printer. |
Setting |
@nathanhleung could you show me your example code? |
@JayFang1993 I don't exactly remember what I was doing (this was over a year ago) but here's the repo with my code for my printer project: https://github.com/nathanhleung/print-anywhere |
Use https://github.com/Atlantis-Software/pclkit instead of pdfkit PCL format is more standard |
If the PCL document generation can read from a PDF and generate PCL, it will be awesome. I unfortunately do not see that. |
Hi,
Many of the printers that I am trying to connect to do not have support for the document-format "application/pdf". However, they all list the following document-formats as supported: "application/vnd.hp-PCL" and "application/octet-stream".
How I can print a PDF using IPP when the printer does not support application/pdf?
I have already tried switching the document-format to one of the supported options, but it does not print the expected output. Instead it prints some gibberish, and what looks like styling code.
Thanks
The text was updated successfully, but these errors were encountered: