summaryrefslogtreecommitdiff
path: root/source/tools/pdfcreate.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-25 15:35:32 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-26 15:12:57 +0200
commitc304a128c51939dd507b2cb87c89daf56a659388 (patch)
treeb9d5b78cf6e6acb1466c9061191c4ecdea986df6 /source/tools/pdfcreate.c
parent34bf864107a499d55383ad5709082dbc2e2864df (diff)
downloadmupdf-c304a128c51939dd507b2cb87c89daf56a659388.tar.xz
Change order of arguments to pdf_add_page etc.
Resources are defined before they are used; so it's only logical to have the resource dictionary before the content buffer in the argument list.
Diffstat (limited to 'source/tools/pdfcreate.c')
-rw-r--r--source/tools/pdfcreate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/tools/pdfcreate.c b/source/tools/pdfcreate.c
index c2a330c2..6f116c6a 100644
--- a/source/tools/pdfcreate.c
+++ b/source/tools/pdfcreate.c
@@ -133,7 +133,7 @@ static void create_page(char *input)
}
fz_drop_stream(ctx, stm);
- page = pdf_add_page(ctx, doc, &mediabox, rotate, contents, resources);
+ page = pdf_add_page(ctx, doc, &mediabox, rotate, resources, contents);
pdf_insert_page(ctx, doc, -1, page);
pdf_drop_obj(ctx, page);