diff options
author | Jay Berkenbilt <ejb@ql.org> | 2012-12-27 21:17:39 +0100 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2012-12-31 11:36:50 +0100 |
commit | 774584163ff3d310e7c932e2a6f63b590cb736ac (patch) | |
tree | 7b92b086ab258e49f95189c2dd860ee615faba6c /qpdf/test_driver.cc | |
parent | 3101955ac0f7f3818dca53d285f5ccd60ccdddea (diff) | |
download | qpdf-774584163ff3d310e7c932e2a6f63b590cb736ac.tar.zst |
Add ExtensionLevel support to version handling
All version operations are now fully aware of extension levels.
Diffstat (limited to 'qpdf/test_driver.cc')
-rw-r--r-- | qpdf/test_driver.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qpdf/test_driver.cc b/qpdf/test_driver.cc index 2c729987..f8294889 100644 --- a/qpdf/test_driver.cc +++ b/qpdf/test_driver.cc @@ -1126,6 +1126,13 @@ void runtest(int n, char const* filename1, char const* filename2) fwrite(b->getBuffer(), b->getSize(), 1, f); fclose(f); } + else if (n == 34) + { + // Look at Extensions dictionary + std::cout << "version: " << pdf.getPDFVersion() << std::endl + << "extension level: " << pdf.getExtensionLevel() << std::endl + << pdf.getRoot().getKey("/Extensions").unparse() << std::endl; + } else { throw std::runtime_error(std::string("invalid test ") + |