diff options
Diffstat (limited to 'Build/source/utils/psutils/psutils-1.21/psspec.h')
-rw-r--r-- | Build/source/utils/psutils/psutils-1.21/psspec.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Build/source/utils/psutils/psutils-1.21/psspec.h b/Build/source/utils/psutils/psutils-1.21/psspec.h new file mode 100644 index 00000000000..e62d1cfd3f2 --- /dev/null +++ b/Build/source/utils/psutils/psutils-1.21/psspec.h @@ -0,0 +1,35 @@ +/* psspec.h + * Page spec routines for page rearrangement + * + * (c) Reuben Thomas 2012 + * (c) Angus J. C. Duggan 1991-1997 + * See file LICENSE for details. + */ + +/* pagespec flags */ +#define ADD_NEXT (0x01) +#define ROTATE (0x02) +#define HFLIP (0x04) +#define VFLIP (0x08) +#define SCALE (0x10) +#define OFFSET (0x20) +#define REVERSED (0x40) +#define GSAVE (ROTATE|HFLIP|VFLIP|SCALE|OFFSET) + +typedef struct pagespec { + int pageno, flags, rotate; + double xoff, yoff, scale; + struct pagespec *next; +} PageSpec ; + +extern double width, height; + +extern PageSpec *newspec(void); +extern int parseint(char **sp); +extern double parsedouble(char **sp); +extern double parsedimen(char **sp); +extern double singledimen(char *str); +extern void pstops(int modulo, int pps, int nobind, PageSpec *specs, + double draw); +extern void pstops_write(int modulo, int pps, int nobind, PageSpec *specs, + double draw, off_t *ignorelist); |