diff options
author | Pino Toscano <pino@kde.org> | 2009-12-30 23:50:36 +0100 |
---|---|---|
committer | Pino Toscano <pino@kde.org> | 2009-12-30 23:50:36 +0100 |
commit | 1199de8f097a78edb831313841ac0ed3f9ec9905 (patch) | |
tree | c792696c1d7e7690dbee789c6001e7ac04a167c1 /cpp | |
parent | 9522f830b59942adfc91d5f03c274415a4737ccc (diff) |
[cpp/tests] poppler-dump: add --show-all to show all the information
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/tests/poppler-dump.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cpp/tests/poppler-dump.cpp b/cpp/tests/poppler-dump.cpp index de502442..5e3d33e0 100644 --- a/cpp/tests/poppler-dump.cpp +++ b/cpp/tests/poppler-dump.cpp @@ -33,6 +33,7 @@ static const int out_width = 30; +bool show_all = false; bool show_info = false; bool show_perm = false; bool show_metadata = false; @@ -43,6 +44,8 @@ bool show_pages = false; bool show_help = false; static const ArgDesc the_args[] = { + { "--show-all", argFlag, &show_all, 0, + "show all the available information" }, { "--show-info", argFlag, &show_info, 0, "show general document information" }, { "--show-perm", argFlag, &show_perm, 0, @@ -261,6 +264,16 @@ int main(int argc, char *argv[]) std::cout.setf(std::ios_base::boolalpha); + if (show_all) { + show_info = true; + show_perm = true; + show_metadata = true; + show_toc = true; + show_fonts = true; + show_embedded_files = true; + show_pages = true; + } + if (show_info) { print_info(doc.get()); } |