Wed, 12 Mar 2003 07:43:56 +0000
moved pdf_new_XObject() from pdf_g4.c to pdf_prim.c.
1 typedef struct
2 {
3 double width;
4 double height;
5 } page_size_t;
7 typedef struct
8 {
9 int first;
10 int last;
11 } range_t;
13 typedef struct
14 {
15 double left;
16 double right;
17 double top;
18 double bottom;
19 } crop_t;
21 typedef struct
22 {
23 char *prefix;
24 char style;
25 } page_label_t;
28 typedef enum
29 {
30 INPUT_MODIFIER_ALL,
31 INPUT_MODIFIER_ODD,
32 INPUT_MODIFIER_EVEN,
33 INPUT_MODIFIER_TYPE_COUNT /* must be last */
34 } input_modifier_type_t;
37 typedef struct bookmark_t
38 {
39 struct bookmark_t *next;
40 int level; /* 1 is outermost */
41 char *name;
42 } bookmark_t;
45 extern int line; /* line number in spec file */
46 extern int bookmark_level;
49 /* semantic routines for input statements */
50 void input_push_context (void);
51 void input_pop_context (void);
52 void input_set_modifier_context (input_modifier_type_t type);
53 void input_set_file (char *name);
54 void input_set_rotation (int rotation);
55 void input_set_page_size (page_size_t size);
56 void input_images (range_t range);
58 /* semantic routines for output statements */
59 void output_push_context (void);
60 void output_pop_context (void);
62 void output_set_file (char *name);
63 void output_set_author (char *author);
64 void output_set_creator (char *creator);
65 void output_set_title (char *title);
66 void output_set_subject (char *subject);
67 void output_set_keywords (char *keywords);
69 void output_set_bookmark (char *name);
70 void output_set_page_label (page_label_t label);
71 void output_pages (range_t range);
74 /* functions to be called from main program: */
75 bool parse_spec_file (char *fn);
76 bool process_specs (void);