aboutsummaryrefslogtreecommitdiffstats
path: root/libqpdf/QPDF_json.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libqpdf/QPDF_json.cc')
-rw-r--r--libqpdf/QPDF_json.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/libqpdf/QPDF_json.cc b/libqpdf/QPDF_json.cc
index a3d50cfb..131e7dee 100644
--- a/libqpdf/QPDF_json.cc
+++ b/libqpdf/QPDF_json.cc
@@ -14,8 +14,11 @@
// | st_initial
// { | -> st_top
-// "qpdf-v2": { | -> st_qpdf
-// "objects": { | -> st_objects
+// "qpdf": [ | -> st_qpdf
+// { | -> st_qpdf_meta
+// ... | ...
+// }, | ...
+// { | -> st_objects
// "obj:1 0 R": { | -> st_object_top
// "value": { | -> st_object
// "/Pages": "2 0 R", | ...
@@ -41,7 +44,7 @@
// } | <- st_trailer
// } | <- st_objects
// } | <- st_qpdf
-// } | <- st_top
+// ] | <- st_top
// } | <- st_initial
static char const* JSON_PDF = (
@@ -394,7 +397,7 @@ QPDF::JSONReactor::replaceObject(
auto og = to_replace.getObjGen();
this->reserved.erase(og);
this->pdf.replaceObject(og, replacement);
- auto oh = pdf.getObjectByObjGen(og);
+ auto oh = pdf.getObject(og);
setObjectDescription(oh, value);
}