Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
7638 views
1
#ifndef MUPDF_PDF_OUTPUT_PDF_H
2
#define MUPDF_PDF_OUTPUT_PDF_H
3
4
/*
5
pdf_new_pdf_device: Create a pdf device. Rendering to the device creates
6
new pdf content. WARNING: this device is work in progress. It doesn't
7
currently support all rendering cases.
8
9
Note that contents must be a stream (dictionary) to be updated (or
10
a reference to a stream). Callers should take care to ensure that it
11
is not an array, and that is it not shared with other objects/pages.
12
*/
13
fz_device *pdf_new_pdf_device(fz_context *ctx, pdf_document *doc, pdf_obj *contents, pdf_obj *resources, const fz_matrix *ctm, fz_buffer *buf);
14
15
/*
16
pdf_write_document: Write out the document to a file with all changes finalised.
17
*/
18
void pdf_write_document(fz_context *ctx, pdf_document *doc, char *filename, fz_write_options *opts);
19
20
void pdf_localise_page_resources(fz_context *ctx, pdf_document *doc);
21
22
#endif
23
24