mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibPDF: Tolerate indirect references in Type0 /W array
Makes e.g. 0000236.pdf in 0000.zip in the pdfa dataset work.
This commit is contained in:
parent
b928fadba7
commit
5dd7639386
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/5dd7639386 Pull-request: https://github.com/SerenityOS/serenity/pull/21584
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ PDFErrorOr<void> Type0Font::initialize(Document* document, NonnullRefPtr<DictObj
|
|||
|
||||
i++;
|
||||
} else {
|
||||
auto array = value.get<NonnullRefPtr<Object>>()->cast<ArrayObject>();
|
||||
auto array = TRY(document->resolve_to<ArrayObject>(value));
|
||||
auto code = pending_code.release_value();
|
||||
for (auto& width : *array)
|
||||
widths.set(code++, width.to_int());
|
||||
|
|
Loading…
Reference in a new issue