14.3 PNM
The simplest output format supported is that of PNM. The pixmap can be greyscale,
or RGB, with or without alpha (though the alpha plane is always ignored on
writing).
/* fz_save_pixmap_as_pnm: Save a pixmap as a PNM image file. */ void fz_save_pixmap_as_pnm(fz_context *ctx, fz_pixmap *pixmap, char *filename); void fz_write_pixmap_as_pnm(fz_context *ctx, fz_output *out, fz_pixmap *pixmap); fz_band_writer *fz_new_pnm_band_writer(fz_context *ctx, fz_output *out);