From 0fe8d4476205c97e402e555aac41a88e70e3e9b2 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Tue, 17 May 2022 19:18:02 -0400 Subject: Support stream data -- not tested There are no automated tests yet, but committing work so far in preparation for some refactoring. --- libqpdf/QPDF_Name.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libqpdf/QPDF_Name.cc') diff --git a/libqpdf/QPDF_Name.cc b/libqpdf/QPDF_Name.cc index 8dc48faa..236d6133 100644 --- a/libqpdf/QPDF_Name.cc +++ b/libqpdf/QPDF_Name.cc @@ -42,7 +42,11 @@ QPDF_Name::unparse() JSON QPDF_Name::getJSON(int json_version) { - return JSON::makeString(normalizeName(this->name)); + if (json_version == 1) { + return JSON::makeString(normalizeName(this->name)); + } else { + return JSON::makeString(this->name); + } } QPDFObject::object_type_e -- cgit v1.2.3-54-g00ecf