harwey / cups4j

Cups4j Java printing library for CUPS/IPP
http://cups4j.org
GNU Lesser General Public License v3.0
130 stars 64 forks source link

Print Word (.docx) files using cups4J #43

Closed smudgal-omers closed 2 years ago

smudgal-omers commented 3 years ago

Hello, not sure if this is the right question for cups4j but I'll still give it a try.

I want to print .docx files using cups4j and I am using cups-pdf as the printer.

When I try to print .docx files, the output pdf is always empty using cups-pdf.

Is there a way, I can leverage cups4j's capabilities to print a .docx file? I see from cups config files that three following application file formats are supported by cups ootb to print: application/msword (this one prints only .doc files and not .docx) application/pdf application/postscript

So, .docx files are not supported by cups but I want to know if there are any optios/ways to do it using cups4j

harwey commented 3 years ago

You can print PDF and PS files directly via CUPS. So you would need to convert your .docx to PDF or PS in order to print it via Cups4j