Skip to content
Snippets Groups Projects
Commit 6e3a6d6f authored by Martin Mareš's avatar Martin Mareš
Browse files

PPD: jopt() moved to PPD::PJL

parent 709c52c9
No related branches found
No related tags found
No related merge requests found
package PPD::PJL;
use Exporter 'import';
our @EXPORT = qw(jopt);
use PPD;
sub add_jcl($) {
......@@ -10,4 +13,14 @@ sub add_jcl($) {
set('JCLEnd', '<1B>%-12345X@PJL EOJ<0A><1B>%-12345X<0A>');
}
sub jopt {
my $out = "";
while (@_) {
my $key = shift @_;
my $val = shift @_;
$out .= sprintf('@PJL SET %s=%s<0A>', $key, $val);
}
return $out;
}
42;
......@@ -31,17 +31,6 @@ set('cupsFilter', 'application/vnd.cups-pdf 0 /aux/root/xcpt');
set('ColorDevice', 1);
set('DefaultColorSpace', 'CMYK');
# FIXME: Librarize
sub jopt {
my $out = "";
while (@_) {
my $key = shift @_;
my $val = shift @_;
$out .= sprintf('@PJL SET %s=%s<0A>', $key, $val);
}
return $out;
}
define_ui_group({ Key => 'Basic', Name => 'Basic options' });
option({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment