mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:27:45 +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
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…
Add table
Add a link
Reference in a new issue