[poppler] utils/pdftops.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Mon Jul 27 14:25:34 PDT 2009
utils/pdftops.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7e14516a78b16453c747eb92b08665632e5f6844
Author: Sanjoy Mahajan <sanjoy at mit.edu>
Date: Mon Jul 27 23:20:50 2009 +0200
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
diff --git a/utils/pdftops.cc b/utils/pdftops.cc
index 747063e..4670d22 100644
--- a/utils/pdftops.cc
+++ b/utils/pdftops.cc
@@ -18,6 +18,7 @@
// Copyright (C) 2006 Kristian Høgsberg <krh at redhat.com>
// Copyright (C) 2007-2008 Albert Astals Cid <aacid at kde.org>
// Copyright (C) 2009 Till Kamppeter <till.kamppeter at gmail.com>
+// Copyright (C) 2009 Sanjoy Mahajan <sanjoy at 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;
More information about the poppler
mailing list