26class CharCodeToUnicode;
27class CIDToUnicodeCache;
37extern GlobalParams *globalParams;
41enum DisplayFontParamKind {
47class DisplayFontParam {
53 DisplayFontParamKind kind;
67 DisplayFontParam(GString *nameA, DisplayFontParamKind kindA);
68 DisplayFontParam(
const char *nameA,
const char *xlfdA,
const char *encodingA);
93 PSFontParam(GString *pdfFontNameA,
int wModeA,
94 GString *psFontNameA, GString *encodingA);
124 GlobalParams(
const char *cfgFileName);
130 CharCode getMacRomanCharCode(
const char *charName);
132 Unicode mapNameToUnicode(
const char *charName);
133 FILE *getCIDToUnicodeFile(
const GString *collection);
134 UnicodeMap *getResidentUnicodeMap(
const GString *encodingName);
135 FILE *getUnicodeMapFile(
const GString *encodingName);
136 FILE *findCMapFile(
const GString *collection,
const GString *cMapName);
137 FILE *findToUnicodeFile(
const GString *name);
138 DisplayFontParam *getDisplayFont(
const GString *fontName);
139 DisplayFontParam *getDisplayCIDFont(
const GString *fontName,
140 const GString *collection);
141 GString *getPSFile() {
return psFile; }
142 int getPSPaperWidth() {
return psPaperWidth; }
143 int getPSPaperHeight() {
return psPaperHeight; }
144 GBool getPSDuplex() {
return psDuplex; }
145 PSLevel getPSLevel() {
return psLevel; }
146 PSFontParam *getPSFont(GString *fontName);
147 PSFontParam *getPSFont16(GString *fontName, GString *collection,
int wMode);
148 GBool getPSEmbedType1() {
return psEmbedType1; }
149 GBool getPSEmbedTrueType() {
return psEmbedTrueType; }
150 GBool getPSEmbedCIDPostScript() {
return psEmbedCIDPostScript; }
151 GBool getPSEmbedCIDTrueType() {
return psEmbedCIDTrueType; }
152 GBool getPSOPI() {
return psOPI; }
153 GBool getPSASCIIHex() {
return psASCIIHex; }
154 GString *getTextEncodingName() {
return textEncoding; }
155 EndOfLineKind getTextEOL() {
return textEOL; }
156 GBool getTextKeepTinyChars() {
return textKeepTinyChars; }
157 GString *findFontFile(
const GString *fontName,
const char *ext1,
const char *ext2);
158 GString *getInitialZoom() {
return initialZoom; }
159 FontRastControl getT1libControl() {
return t1libControl; }
160 FontRastControl getFreeTypeControl() {
return freetypeControl; }
161 GString *getURLCommand() {
return urlCommand; }
162 GString *getMovieCommand() {
return movieCommand; }
163 GBool getMapNumericCharNames() {
return mapNumericCharNames; }
164 GBool getPrintCommands() {
return printCommands; }
165 GBool getErrQuiet() {
return errQuiet; }
167 CharCodeToUnicode *getCIDToUnicode(GString *collection);
168 UnicodeMap *getUnicodeMap(GString *encodingName);
169 CMap *getCMap(GString *collection, GString *cMapName);
170 UnicodeMap *getTextEncoding();
174 void addDisplayFont(DisplayFontParam *param);
175 void setPSFile(
char *file);
176 GBool setPSPaperSize(
char *size);
177 void setPSPaperWidth(
int width);
178 void setPSPaperHeight(
int height);
179 void setPSDuplex(GBool duplex);
180 void setPSLevel(PSLevel level);
181 void setPSEmbedType1(GBool embed);
182 void setPSEmbedTrueType(GBool embed);
183 void setPSEmbedCIDPostScript(GBool embed);
184 void setPSEmbedCIDTrueType(GBool embed);
185 void setPSOPI(GBool opi);
186 void setPSASCIIHex(GBool hex);
187 void setTextEncoding(
char *encodingName);
188 GBool setTextEOL(
char *s);
189 void setTextKeepTinyChars(GBool keep);
190 void setInitialZoom(
char *s);
191 GBool setT1libControl(
char *s);
192 GBool setFreeTypeControl(
char *s);
193 void setMapNumericCharNames(GBool map);
194 void setPrintCommands(GBool printCommandsA);
195 void setErrQuiet(GBool errQuietA);
199 void parseFile(GString *fileName, FILE *f);
200 void parseNameToUnicode(GList *tokens, GString *fileName,
int line);
201 void parseCIDToUnicode(GList *tokens, GString *fileName,
int line);
202 void parseUnicodeMap(GList *tokens, GString *fileName,
int line);
203 void parseCMapDir(GList *tokens, GString *fileName,
int line);
204 void parseToUnicodeDir(GList *tokens, GString *fileName,
int line);
205 void parseDisplayFont(GList *tokens, GHash *fontHash,
206 DisplayFontParamKind kind,
207 GString *fileName,
int line);
208 void parsePSFile(GList *tokens, GString *fileName,
int line);
209 void parsePSPaperSize(GList *tokens, GString *fileName,
int line);
210 void parsePSLevel(GList *tokens, GString *fileName,
int line);
211 void parsePSFont(GList *tokens, GString *fileName,
int line);
212 void parsePSFont16(
const char *cmdName, GList *fontList,
213 GList *tokens, GString *fileName,
int line);
214 void parseTextEncoding(GList *tokens, GString *fileName,
int line);
215 void parseTextEOL(GList *tokens, GString *fileName,
int line);
216 void parseFontDir(GList *tokens, GString *fileName,
int line);
217 void parseInitialZoom(GList *tokens, GString *fileName,
int line);
218 void parseFontRastControl(
const char *cmdName, FontRastControl *val,
219 GList *tokens, GString *fileName,
int line);
220 void parseCommand(
const char *cmdName, GString **val,
221 GList *tokens, GString *fileName,
int line);
222 void parseYesNo(
const char *cmdName, GBool *flag,
223 GList *tokens, GString *fileName,
int line);
224 GBool setFontRastControl(FontRastControl *val,
const char *s);
235 GHash *cidToUnicodes;
238 GHash *residentUnicodeMaps;
244 GList *toUnicodeDirs;
247 GHash *displayCIDFonts;
249 GHash *displayNamedCIDFonts;
258 GList *psNamedFonts16;
261 GBool psEmbedTrueType;
262 GBool psEmbedCIDPostScript;
263 GBool psEmbedCIDTrueType;
266 GString *textEncoding;
268 EndOfLineKind textEOL;
270 GBool textKeepTinyChars;
272 GString *initialZoom;
273 FontRastControl t1libControl;
277 GString *movieCommand;
278 GBool mapNumericCharNames;
282 CIDToUnicodeCache *cidToUnicodeCache;
283 UnicodeMapCache *unicodeMapCache;
284 CMapCache *cMapCache;