mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:57:45 +00:00
LibPDF: Make PDF version accessible on Document
This commit is contained in:
parent
9174ffd7e6
commit
ea89053c12
4 changed files with 26 additions and 15 deletions
|
@ -79,8 +79,7 @@ PDFErrorOr<NonnullRefPtr<Document>> Document::create(ReadonlyBytes bytes)
|
|||
auto parser = adopt_ref(*new DocumentParser({}, bytes));
|
||||
auto document = adopt_ref(*new Document(parser));
|
||||
|
||||
TRY(parser->initialize());
|
||||
|
||||
document->m_version = TRY(parser->initialize());
|
||||
document->m_trailer = parser->trailer();
|
||||
document->m_catalog = TRY(parser->trailer()->get_dict(document, CommonNames::Root));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue