t2p.h

Mon, 26 Aug 2002 06:03:55 +0000

author
eric
date
Mon, 26 Aug 2002 06:03:55 +0000
changeset 48
3d0be1c1c1b2
parent 36
a338db73c6f4
child 49
be20d7e8466f
permissions
-rw-r--r--

now use C99 stdint.h and stdbool.h

eric@23 1 typedef struct
eric@23 2 {
eric@48 3 bool has_resolution;
eric@36 4 double x_resolution;
eric@36 5 double y_resolution;
eric@36 6
eric@48 7 bool has_page_size;
eric@32 8 page_size_t page_size;
eric@32 9
eric@48 10 bool has_rotation;
eric@23 11 int rotation;
eric@32 12
eric@48 13 bool has_crop;
eric@23 14 crop_t crop;
eric@23 15 } input_attributes_t;
eric@23 16
eric@48 17 bool open_tiff_input_file (char *name);
eric@48 18 bool close_tiff_input_file (void);
eric@10 19
eric@30 20
eric@30 21 typedef struct
eric@30 22 {
eric@30 23 char *author;
eric@30 24 char *creator;
eric@30 25 char *title;
eric@30 26 char *subject;
eric@30 27 char *keywords;
eric@30 28 } pdf_file_attributes_t;
eric@30 29
eric@48 30 bool open_pdf_output_file (char *name,
eric@48 31 pdf_file_attributes_t *attributes);
eric@30 32
eric@10 33
eric@25 34 void process_page_numbers (int page_index,
eric@25 35 int count,
eric@25 36 int base,
eric@25 37 page_label_t *page_label);
eric@25 38
eric@48 39 bool process_page (int image, /* range 1 .. n */
eric@48 40 input_attributes_t input_attributes,
eric@48 41 bookmark_t *bookmarks);