summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-02-24 17:27:59 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-02-29 15:53:04 +0100
commit2220ffb30ea8773102e9ca0bce4e3b7e31720627 (patch)
tree2b7086d65aafabd4d07caf190fc1f9867c703fdd /source/pdf
parent727dbaa8a7d987325688703db0d50895df4b097f (diff)
downloadmupdf-2220ffb30ea8773102e9ca0bce4e3b7e31720627.tar.xz
Change order of arguments to pdf_create_page.
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-page.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c
index 30cbb4e9..281b146c 100644
--- a/source/pdf/pdf-page.c
+++ b/source/pdf/pdf-page.c
@@ -697,7 +697,7 @@ pdf_delete_page_range(fz_context *ctx, pdf_document *doc, int start, int end)
}
pdf_page *
-pdf_create_page(fz_context *ctx, pdf_document *doc, fz_rect mediabox, fz_buffer *buffer, int rotate)
+pdf_create_page(fz_context *ctx, pdf_document *doc, fz_rect mediabox, int rotate, fz_buffer *contents)
{
pdf_page *page = NULL;
pdf_obj *pageobj, *obj;
@@ -738,11 +738,11 @@ pdf_create_page(fz_context *ctx, pdf_document *doc, fz_rect mediabox, fz_buffer
fz_concat(&ctm, &ctm, &tmp);
page->ctm = ctm;
- if (buffer != NULL)
+ if (contents != NULL)
{
obj = pdf_new_dict(ctx, doc, 4);
page->contents = pdf_new_ref(ctx, doc, obj);
- pdf_update_stream(ctx, doc, page->contents, buffer, 0);
+ pdf_update_stream(ctx, doc, page->contents, contents, 0);
pdf_drop_obj(ctx, obj);
obj = NULL;
pdf_dict_puts(ctx, pageobj, "Contents", page->contents);