diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/fitz/file.h | 2 | ||||
-rw-r--r-- | include/mupdf.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/fitz/file.h b/include/fitz/file.h index 7807570c..2d6dc977 100644 --- a/include/fitz/file.h +++ b/include/fitz/file.h @@ -26,7 +26,7 @@ int fz_peekbyte(fz_file *f); int fz_readline(fz_file *f, char *buf, int n); int fz_read(fz_file *f, char *buf, int n); -fz_error *fz_readfile(unsigned char **bufp, int *lenp, fz_file *file); +fz_error *fz_readfile(fz_buffer **bufp, fz_file *file); int fz_printstring(fz_file *f, char *s); int fz_printobj(fz_file *f, fz_obj *o, int tight); diff --git a/include/mupdf.h b/include/mupdf.h index c5dcc133..98f40c62 100644 --- a/include/mupdf.h +++ b/include/mupdf.h @@ -81,7 +81,8 @@ fz_error *pdf_buildfilter(fz_filter**, pdf_xref*, fz_obj *stm, int oid, int gid) fz_error *pdf_openstream0(pdf_xref*, fz_obj *stmobj, int oid, int gid, int ofs); fz_error *pdf_openstream(pdf_xref*, fz_obj *stmref); void pdf_closestream(pdf_xref*); -fz_error *pdf_readstream(unsigned char **bufp, int *lenp, pdf_xref*, fz_obj *stmref); +fz_error *pdf_readstream0(fz_buffer **bufp, pdf_xref*, fz_obj *stmobj, int oid, int gid, int ofs); +fz_error *pdf_readstream(fz_buffer **bufp, pdf_xref*, fz_obj *stmref); /* crypt.c */ fz_error *pdf_newdecrypt(pdf_crypt **cp, fz_obj *enc, fz_obj *id); @@ -118,6 +119,9 @@ fz_error *pdf_loadobject0(fz_obj **, pdf_xref*, int oid, int gid, int *stmofs); fz_error *pdf_loadobject(fz_obj **, pdf_xref*, fz_obj *ref, int *stmofs); fz_error *pdf_resolve(fz_obj **, pdf_xref*); +fz_error *pdf_savestream(pdf_xref *xref, int oid, int gid, fz_buffer *buf); +fz_error *pdf_deletestream(pdf_xref *xref, int oid, int gid); + /* save.c */ fz_error *pdf_saveincrementalpdf(pdf_xref *xref, char *path); fz_error *pdf_savepdf(pdf_xref *xref, char *path); |