diff options
Diffstat (limited to 'Userland/Libraries/LibPDF/Parser.h')
-rw-r--r-- | Userland/Libraries/LibPDF/Parser.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Userland/Libraries/LibPDF/Parser.h b/Userland/Libraries/LibPDF/Parser.h index c9e7c317a7..0d3fcd0373 100644 --- a/Userland/Libraries/LibPDF/Parser.h +++ b/Userland/Libraries/LibPDF/Parser.h @@ -38,7 +38,12 @@ public: void move_by(size_t count) { m_reader.move_by(count); } void move_to(size_t offset) { m_reader.move_to(offset); } - PDFErrorOr<Value> parse_value(); + enum class CanBeIndirectValue { + No, + Yes + }; + + PDFErrorOr<Value> parse_value(CanBeIndirectValue = CanBeIndirectValue::Yes); PDFErrorOr<Value> parse_possible_indirect_value_or_ref(); PDFErrorOr<NonnullRefPtr<IndirectValue>> parse_indirect_value(u32 index, u32 generation); PDFErrorOr<NonnullRefPtr<IndirectValue>> parse_indirect_value(); |