1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 16:47:45 +00:00

LibPDF: Implement loading compressed objects from object streams

Now, whenever the xref table points to a compressed object,
parse_object_with_index will look it up in the corresponding object
stream as if it were a regular object.

With this, our parser gains the bare minimum support for xref streams.
This commit is contained in:
Julian Offenhäuser 2022-08-15 13:34:08 +02:00 committed by Sam Atkins
parent f9beff7b5e
commit 563d91b6c4
3 changed files with 55 additions and 0 deletions

View file

@ -85,6 +85,7 @@ private:
PDFErrorOr<NonnullRefPtr<XRefTable>> parse_xref_stream();
PDFErrorOr<NonnullRefPtr<XRefTable>> parse_xref_table();
PDFErrorOr<NonnullRefPtr<DictObject>> parse_file_trailer();
PDFErrorOr<Value> parse_compressed_object_with_index(u32 index);
bool navigate_to_before_eof_marker();
bool navigate_to_after_startxref();