Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-7-sonnet-20250219· AnthropicHugging Face LMArena Human Preference 140K

I have a PJL print task in a file, how to create an pdf file from it? Cups-pdf does not…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-235b-a22b’s answer.
  1. User

    I have a PJL print task in a file, how to create an pdf file from it? Cups-pdf does not work on some fonts and cases. I could find which driver used to create task.

  2. Claude Assistant

    To create a PDF from a PJL print task file, you could try using Ghostscript, which handles various print formats well and has better font support than cups-pdf:

    gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=output.pdf input.pjl
    

    If that doesn't work directly, you might need to extract the PCL or PostScript content from the PJL wrapper first:

    grep -a -v "^@PJL" input.pjl > extracted.pcl
    gs -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -dSAFER -sOutputFile=output.pdf extracted.pcl
    

    Another option is using PCL2PDF converters like PCLTool SDK or RedTitan EscapeE, which are designed to handle complex font cases.

    Would you like me to explain more about any of these approaches?

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.