Lexmark MB2236 Printer Languages and Interfaces Technical Reference - Page 130

File name extensions, flash%myfile w file, disk%iconimage w file dup

Page 130 highlights

Flash memory and hard disk 130 File name extensions By default, all files referenced when using the PostScript emulation file operators are given a .data extension. For example, if the following PostScript emulation command occurs, (%flash%myfile) (w) file the file myfile.data is opened on the flash memory. The .data extension is added for the following reasons: • Enable the Print Directory feature to identify files as PostScript emulation data files. • Ensure the integrity of files, such as resource collection files and demonstration files. It is sometimes necessary to access files by their real name through PostScript emulation. For example, you may want to remove old versions of PCL language resource collection fonts (without formatting the entire device). To do this, use the PostScript emulation setfilenameextend operator. This operator is in the statusdict dictionary. The value of this operator adds the extension .data to all file names referenced when using PostScript emulation file operators. To prevent the .data extension from being added, issue the following PostScript emulation command: statusdict begin false setfilenameextend end To add the .data extension automatically again, issue: statusdict begin true setfilenameextend end The following example shows how to remove a file for the font myfont from the disk. The PostScript emulation resource collection file name is myfont.type1. The PostScript emulation command to remove the file is: statusdict begin false setfilenameextend (%disk%myfont.type1) deletefile true setfilenameextend end For other file types, see "Type" on page 127. Note: Enable setfilenameextend when possible after you disable it. For example, the following PostScript emulation commands generate an undefinedfilename error: (%disk%iconimage) (w) file dup (0f0606060686c6ff) writestring closefile statusdict begin false setfilenameextend end (%disk%iconimage) (r) file %%[ Error: undefinedfilename; OffendingCommand: file ]%%

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148

File name extensions
By default, all files referenced when using the PostScript emulation file operators are given a
.data
extension.
For example, if the following PostScript emulation command occurs,
(%flash%myfile) (w) file
the file
myfile.data
is opened on the flash memory.
The
.data
extension is added for the following reasons:
Enable the Print Directory feature to identify files as PostScript emulation data files.
Ensure the integrity of files, such as resource collection files and demonstration files.
It is sometimes necessary to access files by their
real
name through PostScript emulation. For example, you
may want to remove old versions of PCL language resource collection fonts (without formatting the entire
device).
To do this, use the PostScript emulation
setfilenameextend
operator. This operator is in the
statusdict
dictionary.
The value of this operator adds the extension
.data
to all file names referenced when using PostScript emulation
file operators. To prevent the
.data
extension from being added, issue the following PostScript emulation
command:
statusdict begin
false setfilenameextend
end
To add the
.data
extension automatically again, issue:
statusdict begin
true setfilenameextend
end
The following example shows how to remove a file for the font
myfont
from the disk. The PostScript emulation
resource collection file name is
myfont.type1
. The PostScript emulation command to remove the file is:
statusdict begin
false setfilenameextend
(%disk%myfont.type1) deletefile
true setfilenameextend
end
For other file types, see
“Type” on page
127
.
Note:
Enable
setfilenameextend
when possible after you disable it. For example, the following PostScript
emulation commands generate an
undefinedfilename
error:
(%disk%iconimage) (w) file dup
(0f0606060686c6ff) writestring closefile
statusdict begin
false setfilenameextend
end
(%disk%iconimage) (r) file
%%[ Error: undefinedfilename; OffendingCommand: file ]%%
Flash memory and hard disk
130