diff options
author | Paul Gardiner <paul@glidos.net> | 2012-05-31 16:38:54 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-05-31 16:38:54 +0100 |
commit | 09f4fac813c208229ba2d33334db2f84be679d58 (patch) | |
tree | dfe1e8bb8ea618692fa6d754312bad9ac9176a31 /pdf/mupdf-internal.h | |
parent | ae62fb9e522a55ce2390dd20999b4a67392940e0 (diff) | |
download | mupdf-09f4fac813c208229ba2d33334db2f84be679d58.tar.xz |
A few general utility functions added for the sake of the forms work
Diffstat (limited to 'pdf/mupdf-internal.h')
-rw-r--r-- | pdf/mupdf-internal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pdf/mupdf-internal.h b/pdf/mupdf-internal.h index 9a2676f7..508973bd 100644 --- a/pdf/mupdf-internal.h +++ b/pdf/mupdf-internal.h @@ -134,6 +134,11 @@ pdf_obj *pdf_parse_stm_obj(pdf_document *doc, fz_stream *f, pdf_lexbuf *buf); pdf_obj *pdf_parse_ind_obj(pdf_document *doc, fz_stream *f, pdf_lexbuf *buf, int *num, int *gen, int *stm_ofs); /* + pdf_print_token: print a lexed token to a buffer, growing if necessary +*/ +void pdf_print_token(fz_context *ctx, fz_buffer *buf, int tok, pdf_lexbuf *lex); + +/* * xref and object / stream api */ @@ -294,8 +299,11 @@ struct pdf_xobject_s }; pdf_xobject *pdf_load_xobject(pdf_document *doc, pdf_obj *obj); +pdf_obj *pdf_new_xobject(pdf_document *doc, fz_rect *bbox, fz_matrix *mat); pdf_xobject *pdf_keep_xobject(fz_context *ctx, pdf_xobject *xobj); void pdf_drop_xobject(fz_context *ctx, pdf_xobject *xobj); +void pdf_xobject_set_contents(pdf_document *xref, pdf_xobject *from, fz_buffer *buffer); + /* * CMap |