Commit 402d1bcf4d11c6300cb73e43dfb4312b6efe7095
1 parent
db7bd6fe
zlib-flate: --version prints qpdf version
Showing
1 changed file
with
3 additions
and
1 deletions
zlib-flate/zlib-flate.cc
| 1 | #include <qpdf/Pl_Flate.hh> | 1 | #include <qpdf/Pl_Flate.hh> |
| 2 | #include <qpdf/Pl_StdioFile.hh> | 2 | #include <qpdf/Pl_StdioFile.hh> |
| 3 | #include <qpdf/QUtil.hh> | 3 | #include <qpdf/QUtil.hh> |
| 4 | +#include <qpdf/QPDF.hh> | ||
| 4 | 5 | ||
| 5 | #include <stdio.h> | 6 | #include <stdio.h> |
| 6 | #include <string.h> | 7 | #include <string.h> |
| @@ -41,7 +42,8 @@ int main(int argc, char* argv[]) | @@ -41,7 +42,8 @@ int main(int argc, char* argv[]) | ||
| 41 | 42 | ||
| 42 | if ((argc == 2) && (strcmp(argv[1], "--version") == 0)) | 43 | if ((argc == 2) && (strcmp(argv[1], "--version") == 0)) |
| 43 | { | 44 | { |
| 44 | - std::cout << whoami << " version 1.0" << std::endl; | 45 | + std::cout << whoami << " from qpdf version " |
| 46 | + << QPDF::QPDFVersion() << std::endl; | ||
| 45 | exit(0); | 47 | exit(0); |
| 46 | } | 48 | } |
| 47 | 49 |