[poppler] utils/pdfinfo.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Wed Nov 9 11:11:18 PST 2011


 utils/pdfinfo.cc |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit a0db250bbdefff6361551cf9db344bd5268fea11
Author: Vittal Aithal <vittal.aithal at cognidox.com>
Date:   Wed Nov 9 20:07:58 2011 +0100

    pdfinfo: report page rotation

diff --git a/utils/pdfinfo.cc b/utils/pdfinfo.cc
index c9b4c58..6032c5c 100644
--- a/utils/pdfinfo.cc
+++ b/utils/pdfinfo.cc
@@ -16,6 +16,7 @@
 // Copyright (C) 2006 Dom Lachowicz <cinamod at hotmail.com>
 // Copyright (C) 2007-2010 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2010 Hib Eris <hib at hiberis.nl>
+// Copyright (C) 2011 Vittal Aithal <vittal.aithal at cognidox.com>
 //
 // 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
@@ -111,6 +112,7 @@ int main(int argc, char *argv[]) {
   int exitCode;
   int pg, i;
   GBool multiPage;
+  int r;
 
   exitCode = 99;
 
@@ -254,6 +256,12 @@ int main(int argc, char *argv[]) {
       }
     }
     printf("\n");
+    r = doc->getPageRotate(pg);
+    if (multiPage) {
+      printf("Page %4d rot:  %d\n", pg, r);
+    } else {
+      printf("Page rot:       %d\n", r);
+    }
   } 
 
   // print the boxes


More information about the poppler mailing list