summaryrefslogtreecommitdiff
path: root/pdf/pdf_write.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-05-23 14:59:26 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-05-23 14:59:26 +0200
commitd7d281dea2f9816730337d97d110c6ddc20ff5c0 (patch)
treee140c436af23778ce1ea060bd3f3f461d95883bd /pdf/pdf_write.c
parentfc3dfd623ec30e912bed9615126e0656406a5b75 (diff)
downloadmupdf-d7d281dea2f9816730337d97d110c6ddc20ff5c0.tar.xz
Bring xref object and stream mutation functions back from the dead.
Needs more work to use the linked list of free xref slots.
Diffstat (limited to 'pdf/pdf_write.c')
-rw-r--r--pdf/pdf_write.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_write.c b/pdf/pdf_write.c
index e2086e5c..ed0b8711 100644
--- a/pdf/pdf_write.c
+++ b/pdf/pdf_write.c
@@ -246,7 +246,7 @@ static void renumberobjs(pdf_document *xref, pdf_write_options *opts)
if (pdf_is_indirect(obj))
{
obj = pdf_new_indirect(ctx, opts->renumbermap[pdf_to_num(obj)], 0, xref);
- pdf_update_object(xref, num, 0, obj);
+ pdf_update_object(xref, num, obj);
pdf_drop_obj(obj);
}
else
@@ -580,7 +580,7 @@ static void writexref(pdf_document *xref, pdf_write_options *opts)
fprintf(opts->out, "startxref\n%d\n%%%%EOF\n", startxref);
}
-void pdf_write(pdf_document *xref, char *filename, fz_write_options *fz_opts)
+void pdf_write_document(pdf_document *xref, char *filename, fz_write_options *fz_opts)
{
int lastfree;
int num;