output-pdf.h 702 B

123456789101112131415161718
  1. #ifndef MUPDF_PDF_OUTPUT_PDF_H
  2. #define MUPDF_PDF_OUTPUT_PDF_H
  3. /*
  4. pdf_new_pdf_device: Create a pdf device. Rendering to the device creates
  5. new pdf content. WARNING: this device is work in progress. It doesn't
  6. currently support all rendering cases.
  7. Note that contents must be a stream (dictionary) to be updated (or
  8. a reference to a stream). Callers should take care to ensure that it
  9. is not an array, and that is it not shared with other objects/pages.
  10. */
  11. fz_device *pdf_new_pdf_device(fz_context *ctx, pdf_document *doc, const fz_matrix *topctm,
  12. const fz_rect *mediabox, pdf_obj *resources, fz_buffer *contents);
  13. void pdf_localise_page_resources(fz_context *ctx, pdf_document *doc);
  14. #endif