Lines 375-395
Link Here
|
375 |
} bind |
375 |
} bind |
376 |
.dicttomark readonly def |
376 |
.dicttomark readonly def |
377 |
|
377 |
|
378 |
% Define the keys used in input attribute matching. |
378 |
% M. Sweet, Easy Software Products: |
379 |
/.inputattrkeys [ |
379 |
% |
380 |
/PageSize /MediaColor /MediaWeight /MediaType /InsertSheet /ManualFeed |
380 |
% Define NOMEDIAATTRS to turn off the default (but unimplementable) media |
381 |
% The following are documented in Adobe's supplement for v2017. |
381 |
% selection policies for setpagedevice. This is used by CUPS to support |
382 |
/LeadingEdge /MediaClass |
382 |
% the standard Adobe media attributes. |
383 |
] readonly def |
383 |
NOMEDIAATTRS { |
384 |
% Define other keys used in media selection. |
384 |
% Define only PageSize for input attribute matching. |
385 |
/.inputselectionkeys [ |
385 |
/.inputattrkeys [ |
386 |
/MediaPosition /Orientation |
386 |
/PageSize |
387 |
] readonly def |
387 |
] readonly def |
388 |
|
388 |
% Define no other keys used in media selection. |
389 |
% Define the keys used in output attribute matching. |
389 |
/.inputselectionkeys [ |
390 |
/.outputattrkeys [ |
390 |
/noInputSelectionsKeys |
391 |
/OutputType |
391 |
] readonly def |
392 |
] readonly def |
392 |
|
|
|
393 |
% Define no keys used in output attribute matching. |
394 |
/.outputattrkeys [ |
395 |
/noOutputAttrKeys |
396 |
] readonly def |
397 |
} { |
398 |
% Define the keys used in input attribute matching. |
399 |
/.inputattrkeys [ |
400 |
/PageSize /MediaColor /MediaWeight /MediaType /InsertSheet /ManualFeed |
401 |
% The following are documented in Adobe's supplement for v2017. |
402 |
/LeadingEdge /MediaClass |
403 |
] readonly def |
404 |
% Define other keys used in media selection. |
405 |
/.inputselectionkeys [ |
406 |
/MediaPosition /Orientation |
407 |
] readonly def |
408 |
|
409 |
% Define the keys used in output attribute matching. |
410 |
/.outputattrkeys [ |
411 |
/OutputType |
412 |
] readonly def |
413 |
} ifelse |
393 |
|
414 |
|
394 |
% Define all the parameters that should always be copied to the merged |
415 |
% Define all the parameters that should always be copied to the merged |
395 |
% dictionary. |
416 |
% dictionary. |
Lines 499-509
Link Here
|
499 |
% They are expected to consume the top 2 operands. |
526 |
% They are expected to consume the top 2 operands. |
500 |
% NOTE: we currently treat all values other than 0, 1, or 7 (for PageSize) |
527 |
% NOTE: we currently treat all values other than 0, 1, or 7 (for PageSize) |
501 |
% the same as 0, i.e., we signal an error. |
528 |
% the same as 0, i.e., we signal an error. |
|
|
529 |
% |
530 |
% M. Sweet, Easy Software Products: |
531 |
% |
532 |
% Define NOMEDIAATTRS to turn off the default (but unimplementable) media |
533 |
% selection policies for setpagedevice. This is used by CUPS to support |
534 |
% the standard Adobe media attributes. |
535 |
SETPDDEBUG { (Rolling back.) = pstack flush } if |
502 |
0 { % Set errorinfo and signal a configurationerror. |
536 |
0 { % Set errorinfo and signal a configurationerror. |
503 |
pop dup 4 index exch get 2 array astore |
537 |
NOMEDIAATTRS { |
504 |
$error /errorinfo 3 -1 roll put |
538 |
% NOMEDIAATTRS means that the default policy is 7... |
505 |
cleartomark |
539 |
pop 2 index exch 7 put |
|
|
540 |
} { |
541 |
pop dup 4 index exch get 2 array astore |
542 |
$error /errorinfo 3 -1 roll put |
543 |
cleartomark |
506 |
/setpagedevice .systemvar /configurationerror signalerror |
544 |
/setpagedevice .systemvar /configurationerror signalerror |
|
|
545 |
} ifelse |
507 |
} bind |
546 |
} bind |
508 |
1 { % Roll back the failed request to its previous status. |
547 |
1 { % Roll back the failed request to its previous status. |
509 |
SETPDDEBUG { (Rolling back.) = pstack flush } if |
548 |
SETPDDEBUG { (Rolling back.) = pstack flush } if |