1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibPDF: Fix dumping of toplevel indirects

An indirect object starts `42 0 obj`, not `obj 42 0`.
This commit is contained in:
Nico Weber 2023-07-21 10:23:36 -04:00 committed by Tim Flynn
parent 6232ad3a0d
commit 164c132928

View file

@ -175,7 +175,7 @@ static PDFErrorOr<void> dump_tree(Document& document, size_t index, HashTable<in
seen.set(index);
auto const& value = TRY(document.get_or_load_value(index));
outln("obj {} 0", index);
outln("{} 0 obj", index);
outln("{}", value.to_deprecated_string(0));
outln("endobj");