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

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