update pdf_render
This commit is contained in:
parent
581eadfbeb
commit
3ade212b3f
File diff suppressed because it is too large
Load Diff
|
@ -58,7 +58,7 @@ path = "../../ui"
|
|||
git = "https://github.com/pdf-rs/pdf"
|
||||
|
||||
[dependencies.pdf_render]
|
||||
git = "https://github.com/pdf-rs/pdf"
|
||||
git = "https://github.com/pdf-rs/pdf_render"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
metal = "0.18"
|
||||
|
|
|
@ -773,7 +773,7 @@ impl Content {
|
|||
}
|
||||
Content::Pdf { ref file, ref mut cache, page_nr } => {
|
||||
let page = file.get_page(page_nr).expect("no such page");
|
||||
let (scene, _) = cache.render_page(file, &page).unwrap();
|
||||
let (scene, _) = cache.render_page(file, &page, Transform2F::default()).unwrap();
|
||||
(scene, String::new())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue