Browse Source

Set the copy count via PJL instead of PCL

pull/124/head
Evan Miller 5 years ago
parent
commit
12c3008334
  1. 3
      src/job.cc

3
src/job.cc

@ -77,10 +77,11 @@ void job::write_page_header() {
page_params_.duplex ? "ON" : "OFF");
fprintf(out_, "@PJL SET BINDING = %s\n",
page_params_.tumble ? "SHORTEDGE" : "LONGEDGE");
fprintf(out_, "@PJL SET COPIES = %d\n",
std::max(1, page_params_.num_copies));
fprintf(out_, "@PJL ENTER LANGUAGE = PCL\n");
fputs("\033E", out_);
fprintf(out_, "\033&l%dX", std::max(1, page_params_.num_copies));
}
void job::encode_page(const page_params &page_params,

Loading…
Cancel
Save