2 * Copyright (C) Angus J. C. Duggan 1991-1995
3 * See file LICENSE for details.
5 * routines for page rearrangement specs
9 #define ADD_NEXT (0x01)
13 #define GSAVE (ROTATE|SCALE|OFFSET)
15 typedef struct pagespec
{
16 int reversed
, pageno
, flags
, rotate
;
17 double xoff
, yoff
, scale
;
18 struct pagespec
*next
;
21 extern double width
, height
;
23 extern PageSpec
*newspec(void);
24 extern int parseint(char **sp
, void (*errorfn
)(void));
25 extern double parsedouble(char **sp
, void (*errorfn
)(void));
26 extern double parsedimen(char **sp
, void (*errorfn
)(void));
27 extern double singledimen(char *str
, void (*errorfn
)(void),
28 void (*usagefn
)(void));
29 extern void pstops(int modulo
, int pps
, int nobind
, PageSpec
*specs
,