diff options
author | m-holger <m-holger@kubitscheck.org> | 2022-07-23 13:46:31 +0200 |
---|---|---|
committer | m-holger <m-holger@kubitscheck.org> | 2022-07-24 16:41:48 +0200 |
commit | bc5f0fa20b91a7cdc64d0e65495ddaca184d386d (patch) | |
tree | 3e4ab017cfc305ed8b128eea10e70c88ac2b6294 | |
parent | eeb6162f7620fba49bb141ccd2c715cd829c8e24 (diff) | |
download | qpdf-bc5f0fa20b91a7cdc64d0e65495ddaca184d386d.tar.zst |
Add method QPDFObjGen::isIndirect
-rw-r--r-- | include/qpdf/QPDFObjGen.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/qpdf/QPDFObjGen.hh b/include/qpdf/QPDFObjGen.hh index 19158aeb..30f609a7 100644 --- a/include/qpdf/QPDFObjGen.hh +++ b/include/qpdf/QPDFObjGen.hh @@ -68,6 +68,12 @@ class QPDFObjGen return gen; } QPDF_DLL + bool + isIndirect() const + { + return obj > 0; + } + QPDF_DLL std::string unparse(char separator = ',') const; QPDF_DLL friend std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og); |