diff options
author | Jay Berkenbilt <ejb@ql.org> | 2022-05-30 22:38:17 +0200 |
---|---|---|
committer | Jay Berkenbilt <ejb@ql.org> | 2022-05-31 02:03:08 +0200 |
commit | 0bd908b550603a6bcc399a825a170a1263378b22 (patch) | |
tree | d4cf0cdeafa09fb914e744b5708b5bc6e49b16f2 /manual/design.rst | |
parent | b7bbf12e85fa46e7971d84143d1597c992045af1 (diff) | |
download | qpdf-0bd908b550603a6bcc399a825a170a1263378b22.tar.zst |
Update documentation for qpdf JSON v2
Diffstat (limited to 'manual/design.rst')
-rw-r--r-- | manual/design.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/manual/design.rst b/manual/design.rst index 5014ce2f..e0b87bf2 100644 --- a/manual/design.rst +++ b/manual/design.rst @@ -242,7 +242,7 @@ the current file position. If the token is a not either a dictionary or array opener, an object is immediately constructed from the single token and the parser returns. Otherwise, the parser iterates in a special mode in which it accumulates objects until it finds a balancing closer. -During this process, the "``R``" keyword is recognized and an indirect +During this process, the ``R`` keyword is recognized and an indirect ``QPDFObjectHandle`` may be constructed. The ``QPDF::resolve()`` method, which is used to resolve an indirect @@ -280,15 +280,15 @@ file. it is looking before the last ``%%EOF``. After getting to ``trailer`` keyword, it invokes the parser. -- The parser sees "``<<``", so it calls itself recursively in +- The parser sees ``<<``, so it calls itself recursively in dictionary creation mode. - In dictionary creation mode, the parser keeps accumulating objects - until it encounters "``>>``". Each object that is read is pushed onto - a stack. If "``R``" is read, the last two objects on the stack are + until it encounters ``>>``. Each object that is read is pushed onto + a stack. If ``R`` is read, the last two objects on the stack are inspected. If they are integers, they are popped off the stack and their values are used to construct an indirect object handle which is - then pushed onto the stack. When "``>>``" is finally read, the stack + then pushed onto the stack. When ``>>`` is finally read, the stack is converted into a ``QPDF_Dictionary`` which is placed in a ``QPDFObjectHandle`` and returned. |