Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
wizards
kam-printing
Commits
5a3bf5eb
Commit
5a3bf5eb
authored
Dec 29, 2021
by
Martin Mareš
Browse files
Melusine: Working PPD
parent
07094707
Changes
1
Hide whitespace changes
Inline
Side-by-side
ppd/gen-melusine-xcpt
View file @
5a3bf5eb
#!/usr/bin/perl
use
strict
;
use
warni
ng
s
;
use
common::
sense
;
use
Getopt::
Lo
ng
;
use
lib
"
.
";
use
PPD
;
...
...
@@ -9,6 +9,16 @@ use PPD::PJL;
use
PPD::
Paper
;
use
PPD::
Common
;
my
$opt_gray
;
my
$opt_ps
;
GetOptions
(
'
gray
'
=>
\
$opt_gray
,
'
ps
'
=>
\
$opt_ps
,
)
and
@ARGV
==
0
or
die
<<
AMEN
;
Usage:
$
0
[
--
gray
]
[
--
ps
]
AMEN
set
('
FileVersion
',
'
1.0
');
set
('
PCFileName
',
'
XRAL8135.PPD
');
...
...
@@ -20,10 +30,16 @@ set('Throughput', 35);
set
('
TTRasterizer
',
'
Type42
');
set
('
Protocols
',
'
PJL BCP TBCP
');
set
('
cupsFilter
',
['
application/vnd.cups-pdf 0 xerox-xcpt
',
'
application/vnd.cups-postscript 0 xerox-xcpt
']);
if
(
$opt_ps
)
{
set
('
cupsFilter
',
'
application/vnd.cups-postscript 0 xerox-xcpt
');
}
else
{
set
('
cupsFilter
',
['
application/vnd.cups-pdf 0 xerox-xcpt
',
'
application/vnd.cups-postscript 0 xerox-xcpt
']);
}
set
('
ColorDevice
',
1
);
set
('
DefaultColorSpace
',
'
CMYK
');
unless
(
$opt_gray
)
{
set
('
ColorDevice
',
1
);
set
('
DefaultColorSpace
',
'
CMYK
');
}
define_ui_group
({
Key
=>
'
Basic
',
Name
=>
'
Basic options
'
});
...
...
@@ -191,8 +207,8 @@ option({
{
Key
=>
'
AutoSelect
',
Name
=>
'
Automatically Select
',
PS
=>
jopt
('
OUTPUT
',
'
automatic
')
},
{
Key
=>
'
Middle
',
Name
=>
'
Center Tray
',
PS
=>
jopt
('
OUTPUT
',
'
center
')
},
{
Key
=>
'
Left
',
Name
=>
'
Left Top Tray
',
PS
=>
jopt
('
OUTPUT
',
'
left
')
},
{
Key
=>
'
Right
Top
',
Name
=>
'
Right Top Tray
',
PS
=>
jopt
('
OUTPUT
',
'
right
-top
')
},
{
Key
=>
'
RightMiddle
',
Name
=>
'
Right Middle Tray
',
PS
=>
jopt
('
OUTPUT
',
'
right-middle
')
},
{
Key
=>
'
Center
Top
',
Name
=>
'
Right Top Tray
',
PS
=>
jopt
('
OUTPUT
',
'
center
-top
')
},
{
Key
=>
'
CenterBottom
',
Name
=>
'
Right Middle Tray
',
PS
=>
jopt
('
OUTPUT
',
'
center-bottom
')
},
],
});
...
...
@@ -233,7 +249,7 @@ option({
Priority
=>
70
,
JCL
=>
1
,
Values
=>
[
{
Key
=>
'
Color
',
Name
=>
'
Color
',
PS
=>
jopt
('
COLOR
',
'
color
')
},
(
$opt_gray
?
()
:
{
Key
=>
'
Color
',
Name
=>
'
Color
',
PS
=>
jopt
('
COLOR
',
'
color
')
}
)
,
{
Key
=>
'
Mono
',
Name
=>
'
Monochromatic
',
PS
=>
jopt
('
COLOR
',
'
mono
')
},
],
});
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment