aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_Integer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_Integer.cc')
-rw-r--r--libqpdf/QPDF_Integer.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/libqpdf/QPDF_Integer.cc b/libqpdf/QPDF_Integer.cc
index 572b34e0..d0356dad 100644
--- a/libqpdf/QPDF_Integer.cc
+++ b/libqpdf/QPDF_Integer.cc
@@ -17,6 +17,12 @@ QPDF_Integer::unparse()
return QUtil::int_to_string(this->val);
}
+JSON
+QPDF_Integer::getJSON()
+{
+ return JSON::makeInt(this->val);
+}
+
QPDFObject::object_type_e
QPDF_Integer::getTypeCode() const
{