Home » Personal collection » Acorn hard disk » apps » Printers » 153/!Printers/ps/Feeds/Canon/3Mixed

153/!Printers/ps/Feeds/Canon/3Mixed

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn hard disk » apps » Printers
Filename: 153/!Printers/ps/Feeds/Canon/3Mixed
Read OK:
File size: 0295 bytes
Load address: 0000
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
%%RISCOS_FeedName: Headed first sheet then plain
/PrintDict 5 dict def PrintDict begin
/headcount 1 def % change this to the number of headed pages required
/selectheaded {statusdict begin 1 setpapertray end (\nSelecting Headed \(lower\) paper tray) print flush} bind def
/selectplain {statusdict begin 2 setpapertray end (\nSelecting Plain \(upper\) paper tray) print flush} bind def
statusdict begin false setduplexmode end
selectheaded
end

/showpage
{
  showpage
  PrintDict /headcount 2 copy get 1 sub
  dup 4 1 roll put 0 eq
  {
    statusdict begin false setduplexmode newsheet end
    PrintDict /selectplain get exec
  } if
} bind userdict 3 1 roll put
00000000  25 25 52 49 53 43 4f 53  5f 46 65 65 64 4e 61 6d  |%%RISCOS_FeedNam|
00000010  65 3a 20 48 65 61 64 65  64 20 66 69 72 73 74 20  |e: Headed first |
00000020  73 68 65 65 74 20 74 68  65 6e 20 70 6c 61 69 6e  |sheet then plain|
00000030  0a 2f 50 72 69 6e 74 44  69 63 74 20 35 20 64 69  |./PrintDict 5 di|
00000040  63 74 20 64 65 66 20 50  72 69 6e 74 44 69 63 74  |ct def PrintDict|
00000050  20 62 65 67 69 6e 0a 2f  68 65 61 64 63 6f 75 6e  | begin./headcoun|
00000060  74 20 31 20 64 65 66 20  25 20 63 68 61 6e 67 65  |t 1 def % change|
00000070  20 74 68 69 73 20 74 6f  20 74 68 65 20 6e 75 6d  | this to the num|
00000080  62 65 72 20 6f 66 20 68  65 61 64 65 64 20 70 61  |ber of headed pa|
00000090  67 65 73 20 72 65 71 75  69 72 65 64 0a 2f 73 65  |ges required./se|
000000a0  6c 65 63 74 68 65 61 64  65 64 20 7b 73 74 61 74  |lectheaded {stat|
000000b0  75 73 64 69 63 74 20 62  65 67 69 6e 20 31 20 73  |usdict begin 1 s|
000000c0  65 74 70 61 70 65 72 74  72 61 79 20 65 6e 64 20  |etpapertray end |
000000d0  28 5c 6e 53 65 6c 65 63  74 69 6e 67 20 48 65 61  |(\nSelecting Hea|
000000e0  64 65 64 20 5c 28 6c 6f  77 65 72 5c 29 20 70 61  |ded \(lower\) pa|
000000f0  70 65 72 20 74 72 61 79  29 20 70 72 69 6e 74 20  |per tray) print |
00000100  66 6c 75 73 68 7d 20 62  69 6e 64 20 64 65 66 0a  |flush} bind def.|
00000110  2f 73 65 6c 65 63 74 70  6c 61 69 6e 20 7b 73 74  |/selectplain {st|
00000120  61 74 75 73 64 69 63 74  20 62 65 67 69 6e 20 32  |atusdict begin 2|
00000130  20 73 65 74 70 61 70 65  72 74 72 61 79 20 65 6e  | setpapertray en|
00000140  64 20 28 5c 6e 53 65 6c  65 63 74 69 6e 67 20 50  |d (\nSelecting P|
00000150  6c 61 69 6e 20 5c 28 75  70 70 65 72 5c 29 20 70  |lain \(upper\) p|
00000160  61 70 65 72 20 74 72 61  79 29 20 70 72 69 6e 74  |aper tray) print|
00000170  20 66 6c 75 73 68 7d 20  62 69 6e 64 20 64 65 66  | flush} bind def|
00000180  0a 73 74 61 74 75 73 64  69 63 74 20 62 65 67 69  |.statusdict begi|
00000190  6e 20 66 61 6c 73 65 20  73 65 74 64 75 70 6c 65  |n false setduple|
000001a0  78 6d 6f 64 65 20 65 6e  64 0a 73 65 6c 65 63 74  |xmode end.select|
000001b0  68 65 61 64 65 64 0a 65  6e 64 0a 0a 2f 73 68 6f  |headed.end../sho|
000001c0  77 70 61 67 65 0a 7b 0a  20 20 73 68 6f 77 70 61  |wpage.{.  showpa|
000001d0  67 65 0a 20 20 50 72 69  6e 74 44 69 63 74 20 2f  |ge.  PrintDict /|
000001e0  68 65 61 64 63 6f 75 6e  74 20 32 20 63 6f 70 79  |headcount 2 copy|
000001f0  20 67 65 74 20 31 20 73  75 62 0a 20 20 64 75 70  | get 1 sub.  dup|
00000200  20 34 20 31 20 72 6f 6c  6c 20 70 75 74 20 30 20  | 4 1 roll put 0 |
00000210  65 71 0a 20 20 7b 0a 20  20 20 20 73 74 61 74 75  |eq.  {.    statu|
00000220  73 64 69 63 74 20 62 65  67 69 6e 20 66 61 6c 73  |sdict begin fals|
00000230  65 20 73 65 74 64 75 70  6c 65 78 6d 6f 64 65 20  |e setduplexmode |
00000240  6e 65 77 73 68 65 65 74  20 65 6e 64 0a 20 20 20  |newsheet end.   |
00000250  20 50 72 69 6e 74 44 69  63 74 20 2f 73 65 6c 65  | PrintDict /sele|
00000260  63 74 70 6c 61 69 6e 20  67 65 74 20 65 78 65 63  |ctplain get exec|
00000270  0a 20 20 7d 20 69 66 0a  7d 20 62 69 6e 64 20 75  |.  } if.} bind u|
00000280  73 65 72 64 69 63 74 20  33 20 31 20 72 6f 6c 6c  |serdict 3 1 roll|
00000290  20 70 75 74 0a                                    | put.|
00000295