pub type fz_document_writer_drop_writer_fn = Option<unsafe extern "C" fn(ctx: *mut fz_context, wri: *mut fz_document_writer)>;
Expand description

Function type to discard an fz_document_writer. This may be called at any time during the process to release all the resources owned by the writer.

Calling drop without having previously called close may leave the file in an inconsistent state and the user of the fz_document_writer would need to do any cleanup required.