Commit bc5f0fa20b91a7cdc64d0e65495ddaca184d386d

Authored by m-holger
1 parent eeb6162f

Add method QPDFObjGen::isIndirect

Showing 1 changed file with 6 additions and 0 deletions
include/qpdf/QPDFObjGen.hh
... ... @@ -68,6 +68,12 @@ class QPDFObjGen
68 68 return gen;
69 69 }
70 70 QPDF_DLL
  71 + bool
  72 + isIndirect() const
  73 + {
  74 + return obj > 0;
  75 + }
  76 + QPDF_DLL
71 77 std::string unparse(char separator = ',') const;
72 78 QPDF_DLL
73 79 friend std::ostream& operator<<(std::ostream& os, const QPDFObjGen& og);
... ...