Tue, 01 Jan 2002 06:11:43 +0000
add support for PDF file attributes: author, creator, title, etc.
eric@23 | 1 | typedef struct |
eric@23 | 2 | { |
eric@23 | 3 | page_size_t size; |
eric@23 | 4 | int rotation; |
eric@23 | 5 | crop_t crop; |
eric@23 | 6 | } input_attributes_t; |
eric@23 | 7 | |
eric@10 | 8 | boolean open_tiff_input_file (char *name); |
eric@10 | 9 | boolean close_tiff_input_file (void); |
eric@10 | 10 | |
eric@30 | 11 | |
eric@30 | 12 | typedef struct |
eric@30 | 13 | { |
eric@30 | 14 | char *author; |
eric@30 | 15 | char *creator; |
eric@30 | 16 | char *title; |
eric@30 | 17 | char *subject; |
eric@30 | 18 | char *keywords; |
eric@30 | 19 | } pdf_file_attributes_t; |
eric@30 | 20 | |
eric@30 | 21 | boolean open_pdf_output_file (char *name, |
eric@30 | 22 | pdf_file_attributes_t *attributes); |
eric@30 | 23 | |
eric@10 | 24 | |
eric@25 | 25 | void process_page_numbers (int page_index, |
eric@25 | 26 | int count, |
eric@25 | 27 | int base, |
eric@25 | 28 | page_label_t *page_label); |
eric@25 | 29 | |
eric@23 | 30 | boolean process_page (int image, /* range 1 .. n */ |
eric@23 | 31 | input_attributes_t input_attributes, |
eric@25 | 32 | bookmark_t *bookmarks); |