diff options
author | Robin Watts <robin.watts@artifex.com> | 2015-06-29 16:17:36 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2015-07-20 17:19:01 +0100 |
commit | 991a701b73b92c3954d75f186e44c8cbbabd9274 (patch) | |
tree | 8bf9dff6889b9dfa2092f61609369a6737aa5c02 /include/mupdf/fitz/document.h | |
parent | 3b5e21be58ae1fda85c3573adf5b7d25c71dfe0d (diff) | |
download | mupdf-991a701b73b92c3954d75f186e44c8cbbabd9274.tar.xz |
Code to generate a GProof file from a currently opened document.
Given a document, generate a gproof file from it. This encapsulates
the name of the file, the desired resolution for proofing, and the
page dimensions of all the pages in the file.
The idea is that an app will call this when it is asked to go into
'proofing' mode, and will reinvoke itself on this file. This gives
the gprf document handler just enough information to fake up a
document of n pages of the required sizes. Each page will then be
autogenerated on demand.
Diffstat (limited to 'include/mupdf/fitz/document.h')
-rw-r--r-- | include/mupdf/fitz/document.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mupdf/fitz/document.h b/include/mupdf/fitz/document.h index 58cdc63a..1abdf807 100644 --- a/include/mupdf/fitz/document.h +++ b/include/mupdf/fitz/document.h @@ -360,4 +360,18 @@ int fz_lookup_metadata(fz_context *ctx, fz_document *doc, const char *key, char #define FZ_META_INFO_AUTHOR "info:Author" #define FZ_META_INFO_TITLE "info:Title" +/* + fz_write_gproof_file: Given a currently open document, create a + gproof skeleton file from that document. + + doc_filename: The name of the currently opened document file. + + doc: The currently opened document. + + filename: The filename of the desired gproof file. + + res: The resolution at which proofing should be done. +*/ +void fz_write_gproof_file(fz_context *ctx, const char *doc_filename, fz_document *doc, const char *filename, int res); + #endif |