summaryrefslogtreecommitdiff
path: root/src/pdf.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdf.rs')
-rw-r--r--src/pdf.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf.rs b/src/pdf.rs
index e430af92..e0c64c6f 100644
--- a/src/pdf.rs
+++ b/src/pdf.rs
@@ -31,7 +31,7 @@ struct Offsets {
impl<'a, W: Write> PdfCreator<'a, W> {
/// Create a new _PDF_ Creator.
- pub fn new(target: &'a mut W, doc: &'a Document) -> PdfResult<PdfCreator<'a, W>> {
+ pub fn new(doc: &'a Document, target: &'a mut W) -> PdfResult<PdfCreator<'a, W>> {
// Calculate a unique id for all object to come
let catalog = 1;
let page_tree = catalog + 1;