diff options
author | Sanjoy Mahajan <sanjoy@mit.edu> | 2009-07-27 23:20:50 +0200 |
---|---|---|
committer | Albert Astals Cid <aacid@kde.org> | 2009-07-27 23:25:29 +0200 |
commit | 7e14516a78b16453c747eb92b08665632e5f6844 (patch) | |
tree | 534a54be991a649cd03156b6e1536a9f76663213 /utils | |
parent | 3d53a0eb14420d54c0ebf8590e34c018b8da105d (diff) |
Fix displayPages call
Parameters are outputdev, first, last, dpi, dpi, rotate, usemediabox, crop, printing
and we were doing
usemediabox = !noCrop
crop = gFasle
the correct is
usemediabox = noCrop
crop = !noCrop
Diffstat (limited to 'utils')
-rw-r--r-- | utils/pdftops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/pdftops.cc b/utils/pdftops.cc index 747063e0..4670d22b 100644 --- a/utils/pdftops.cc +++ b/utils/pdftops.cc @@ -18,6 +18,7 @@ // Copyright (C) 2006 Kristian Høgsberg <krh@redhat.com> // Copyright (C) 2007-2008 Albert Astals Cid <aacid@kde.org> // Copyright (C) 2009 Till Kamppeter <till.kamppeter@gmail.com> +// Copyright (C) 2009 Sanjoy Mahajan <sanjoy@mit.edu> // // To see a description of the changes please see the Changelog file that // came with your tarball or type make ChangeLog if you are building from git @@ -348,7 +349,7 @@ int main(int argc, char *argv[]) { duplex); if (psOut->isOk()) { doc->displayPages(psOut, firstPage, lastPage, 72, 72, - 0, !noCrop, gFalse, gTrue); + 0, noCrop, !noCrop, gTrue); } else { delete psOut; exitCode = 2; |