[poppler] utils/pdfinfo.cc

Carlos Garcia Campos carlosgc at kemper.freedesktop.org
Thu Aug 1 03:23:16 PDT 2013


 utils/pdfinfo.cc |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 030ee12875a562f5976c5569d5c76783aadf89bd
Author: Adrian Perez de Castro <aperez at igalia.com>
Date:   Thu Apr 25 09:52:56 2013 +0300

    pdfinfo: Use Catalog::getMarkInfo() to show mark info properties

diff --git a/utils/pdfinfo.cc b/utils/pdfinfo.cc
index 14e4f6c..f297614 100644
--- a/utils/pdfinfo.cc
+++ b/utils/pdfinfo.cc
@@ -225,8 +225,12 @@ int main(int argc, char *argv[]) {
   info.free();
 
   // print tagging info
-  printf("Tagged:         %s\n",
-	 doc->getStructTreeRoot()->isDict() ? "yes" : "no");
+   printf("Tagged:         %s\n",
+	  (doc->getCatalog()->getMarkInfo() & Catalog::markInfoMarked) ? "yes" : "no");
+   printf("UserProperties: %s\n",
+	  (doc->getCatalog()->getMarkInfo() & Catalog::markInfoUserProperties) ? "yes" : "no");
+   printf("Suspects:       %s\n",
+	  (doc->getCatalog()->getMarkInfo() & Catalog::markInfoSuspects) ? "yes" : "no");
 
   // print form info
   switch (doc->getCatalog()->getFormType())


More information about the poppler mailing list