utils/pdfinfo.cc | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit a0db250bbdefff6361551cf9db344bd5268fea11
Author: Vittal Aithal <[email protected]>
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 <[email protected]>
// Copyright (C) 2007-2010 Albert Astals Cid <[email protected]>
// Copyright (C) 2010 Hib Eris <[email protected]>
+// Copyright (C) 2011 Vittal Aithal <[email protected]>
//
// 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
_______________________________________________
poppler mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/poppler