-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,9 @@ use crate::primitive::Primitive; | |
#[derive(Default)] | ||
pub struct PageBuilder { | ||
pub ops: Vec<Op>, | ||
pub media_box: Option<Rect>, | ||
pub crop_box: Option<Rect>, | ||
pub trim_box: Option<Rect>, | ||
pub media_box: Option<ViewRect>, | ||
Check warning on line 26 in pdf/src/build.rs
|
||
pub crop_box: Option<ViewRect>, | ||
Check warning on line 27 in pdf/src/build.rs
|
||
pub trim_box: Option<ViewRect>, | ||
Check warning on line 28 in pdf/src/build.rs
|
||
pub resources: Resources, | ||
pub rotate: i32, | ||
pub metadata: Option<Primitive>, | ||
|
@@ -82,7 +82,7 @@ impl PageBuilder { | |
}) | ||
} | ||
pub fn size(&mut self, width: f32, height: f32) { | ||
self.media_box = Some(Rect { | ||
self.media_box = Some(ViewRect { | ||
Check warning on line 85 in pdf/src/build.rs
|
||
top: 0., | ||
left: 0., | ||
bottom: height, | ||
|