Skip to content
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

how to convert a file to PCLmS print stream #4986

Closed
JayFang1993 opened this issue Mar 28, 2017 · 2 comments
Closed

how to convert a file to PCLmS print stream #4986

JayFang1993 opened this issue Mar 28, 2017 · 2 comments
Labels
question General usage question

Comments

@JayFang1993
Copy link

I'm doing some reasearch about IPP,My printer doesn't support application/pdf mime data,so I must send document-format with application/octet-stream,and I discovered cups convert source file to PCLmS print stream in Send-Document IPP request by Wireshark.

PCLmS print stream like this:

%PDF-1.7
%PCLm 1.0
%============= Job Ticket =============
%PCLmS-Job-Ticket
%job-ticket-version: 1.1
%epcl-version: 1.01
%JobSection
%job-id: urn:uuid:43f3e358-de24-3896-4c08-72392fc9896d
%MediaHandlingSection
%media-size-name: iso_a4_210x297mm
%media-type: auto
%media-source: main-tray
%sides: one-sided
%RenderingSection
%pclm-compression-method: RLE
%print-color-mode: monochrome
%print-quality: normal
%printer-resolution: 600
%orientation-requested: portrait
%copies: 1
%pclm-raster-back-side: top-left
%margins-pre-applied: true
%pclm-source-resolution: 600
%print-rendering-intent: None
%job-start-time: 2017-3-28,10:53:15.2,+8:0
%PCLmS-Job-Ticket-End
3 0 obj
<<
/Type /Page
/Parent 2 0 R
/Resources <<
/XObject <<
/Image0 5 0 R
/Image1 7 0 R
/Image2 9 0 R
/Image3 11 0 R
/Image4 13 0 R
/Image5 15 0 R
/Image6 17 0 R
/Image7 19 0 R
......

I don't understand all source codes of cups,could you tell me how to convert a file to PCLmS print stream,and in which source code file?

Thanks!

@michaelrsweet
Copy link
Collaborator

PCLm is a non-standard PDF-based raster format used by some HP printers and is not something that is supported by CUPS. You might check with the cups-filters project.

@michaelrsweet michaelrsweet added the question General usage question label Mar 28, 2017
@jsmeix
Copy link

jsmeix commented Mar 29, 2017

@JayFang1993
FYI regarding "what converts":

In general you may have a look at the section
"The Filter (includes the Driver)" in
https://en.opensuse.org/SDB:CUPS_in_a_Nutshell
and follow the links therein.

To find out "what converts" in your particular case,
inspect the CUPS log file as described in the section
"Usually provide CUPS debug messages" in
https://en.opensuse.org/SDB:How_to_Report_a_Printing_Issue

I guess in your particular case it is your particular printer
driver software that produces the PCLmS print stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question General usage question
Projects
None yet
Development

No branches or pull requests

3 participants