diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-10-27 19:04:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-27 18:04:55 +0000 |
| commit | be7cfc85d08c545abfac08098b7b33b4bd71f37e (patch) | |
| tree | f4137fa2aaa57babae1f7603a9b2ed7e688f43d8 /crates/typst-pdf/src/page.rs | |
| parent | b8034a343831e8609aec2ec81eb7eeda57aa5d81 (diff) | |
Split out four new crates (#5302)
Diffstat (limited to 'crates/typst-pdf/src/page.rs')
| -rw-r--r-- | crates/typst-pdf/src/page.rs | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crates/typst-pdf/src/page.rs b/crates/typst-pdf/src/page.rs index 631eec11..27daf6c9 100644 --- a/crates/typst-pdf/src/page.rs +++ b/crates/typst-pdf/src/page.rs @@ -4,15 +4,15 @@ use std::num::NonZeroUsize; use ecow::EcoString; use pdf_writer::types::{ActionType, AnnotationFlags, AnnotationType, NumberingStyle}; use pdf_writer::{Filter, Finish, Name, Rect, Ref, Str}; -use typst::diag::SourceResult; -use typst::foundations::Label; -use typst::introspection::Location; -use typst::layout::{Abs, Page}; -use typst::model::{Destination, Numbering}; +use typst_library::diag::SourceResult; +use typst_library::foundations::Label; +use typst_library::introspection::Location; +use typst_library::layout::{Abs, Page}; +use typst_library::model::{Destination, Numbering}; -use crate::content; use crate::{ - AbsExt, PdfChunk, PdfOptions, Resources, WithDocument, WithRefs, WithResources, + content, AbsExt, PdfChunk, PdfOptions, Resources, WithDocument, WithRefs, + WithResources, }; /// Construct page objects. @@ -252,7 +252,8 @@ impl PdfPageLabel { // If there is a suffix, we cannot use the common style optimisation, // since PDF does not provide a suffix field. let style = if pat.suffix.is_empty() { - use {typst::model::NumberingKind as Kind, PdfPageLabelStyle as Style}; + use typst_library::model::NumberingKind as Kind; + use PdfPageLabelStyle as Style; match kind { Kind::Arabic => Some(Style::Arabic), Kind::LowerRoman => Some(Style::LowerRoman), |
