diff options
Diffstat (limited to 'src/pdf.zig')
| -rw-r--r-- | src/pdf.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pdf.zig b/src/pdf.zig index d3796d70..262af8b9 100644 --- a/src/pdf.zig +++ b/src/pdf.zig @@ -700,7 +700,9 @@ test "oriented selection containment delegates to MuPDF quad geometry" { } pub const Document = struct { - handle: *c.pardes_pdf_document, + /// None in a document loaded from a dump until its PDF is opened again + /// (pdf_view.reopen). + handle: ?*c.pardes_pdf_document = null, pages: usize, /// The open document is MuPDF's, made from the file's bytes (src/walk.zig). |
