1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:37:44 +00:00

LibPDF: Allow pages with no specified contents

The contents object may be omitted as per spec, which will just leave
the page blank.
This commit is contained in:
Julian Offenhäuser 2023-03-24 22:12:31 +01:00 committed by Andrew Kaster
parent fde990ead8
commit b90a794d78
3 changed files with 7 additions and 2 deletions

View file

@ -30,7 +30,7 @@ struct Rectangle {
struct Page {
NonnullRefPtr<DictObject> resources;
NonnullRefPtr<Object> contents;
RefPtr<Object> contents;
Rectangle media_box;
Rectangle crop_box;
float user_unit;