diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-03-15 12:33:38 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-03-15 12:33:38 +0100 |
| commit | ecb5543985cc0788d9c01e8c2e28d8ca6d8e19b6 (patch) | |
| tree | fcd6dfaad54d4076ee6d767ceb5f388b3c84225b /src/export/pdf/mod.rs | |
| parent | 85678118086b29b3820813411cf382fa283b39f0 (diff) | |
Node links
Diffstat (limited to 'src/export/pdf/mod.rs')
| -rw-r--r-- | src/export/pdf/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/export/pdf/mod.rs b/src/export/pdf/mod.rs index 3813bad5..bdbb2bb7 100644 --- a/src/export/pdf/mod.rs +++ b/src/export/pdf/mod.rs @@ -19,6 +19,7 @@ use crate::doc::{Document, Lang}; use crate::font::Font; use crate::geom::{Abs, Dir, Em}; use crate::image::Image; +use crate::model::Introspector; /// Export a document into a PDF file. /// @@ -40,6 +41,7 @@ const D65_GRAY: Name<'static> = Name(b"d65gray"); /// Context for exporting a whole PDF document. pub struct PdfContext<'a> { document: &'a Document, + introspector: Introspector, writer: PdfWriter, pages: Vec<Page>, page_heights: Vec<f32>, @@ -61,6 +63,7 @@ impl<'a> PdfContext<'a> { let page_tree_ref = alloc.bump(); Self { document, + introspector: Introspector::new(&document.pages), writer: PdfWriter::new(), pages: vec![], page_heights: vec![], |
