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
commit 164c132928
Notes: sideshowbarker 2024-07-17 03:16:02 +09:00

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");