summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAdrian Perez de Castro <aperez@igalia.com>2013-04-25 09:52:56 +0300
committerCarlos Garcia Campos <carlosgc@gnome.org>2013-08-01 12:19:57 +0200
commit030ee12875a562f5976c5569d5c76783aadf89bd (patch)
treee7dcfe0273840f9e7d688fbdd296a4f89f6deecc /utils
parent9a232273988c0d2fd752dc2016e5111227ae6646 (diff)
pdfinfo: Use Catalog::getMarkInfo() to show mark info properties
Diffstat (limited to 'utils')
-rw-r--r--utils/pdfinfo.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/utils/pdfinfo.cc b/utils/pdfinfo.cc
index 14e4f6c6..f297614d 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())