diff options
Diffstat (limited to 'fitz/fitz.h')
-rw-r--r-- | fitz/fitz.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/fitz/fitz.h b/fitz/fitz.h index 04215c71..61f80756 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -2231,4 +2231,50 @@ enum FZ_META_INFO = 4, }; +typedef struct fz_write_options_s fz_write_options; + +/* + In calls to fz_write, the following options structure can be used + to control aspects of the writing process. This structure may grow + in future, and should be zero-filled to allow forwards compatiblity. +*/ +struct fz_write_options_s +{ + int doascii; /* If non-zero then attempt (where possible) to + make the output ascii. */ + int doexpand; /* Bitflags; each non zero bit indicates an aspect + of the file that should be 'expanded' on + writing. */ + int dogarbage; /* If non-zero then attempt (where possible) to + garbage collect the file before writing. */ +}; + +/* An enumeration of bitflags to use in the above 'doexpand' field of + fz_write_options. +*/ +enum +{ + fz_expand_images = 1, + fz_expand_fonts = 2, + fz_expand_all = -1 +}; + +/* + fz_write: Write a document out. + + (In development - Subject to change in future versions) + + Save a copy of the current document in its original format. + Internally the document may change. + + doc: The document to save. + + filename: The filename to save to. + + opts: NULL, or a pointer to an options structure. + + May throw exceptions. +*/ +void fz_write(fz_document *doc, char *filename, fz_write_options *opts); + #endif |