Implement native PDF links and vertical discard lists
This commit is contained in:
1 parent
b6567f67e2
commit
a53d9c9bf9
29 files changed
+980
-109
No files matched your search
@@ -25,6 +25,8 @@ pub struct NativeShipout {
|
||||
pub(super) pdf_color_steps: Vec<Option<Arc<PdfColorProgram>>>,
|
||||
#[serde(default, skip_serializing_if = "Vec::is_empty")]
|
||||
pub(super) pdf_graphics_steps: Vec<PdfGraphics>,
|
||||
#[serde(default, skip_serializing_if = "crate::pdf_device::links::PageLinks::is_empty")]
|
||||
pub(super) pdf_links: crate::pdf_device::links::PageLinks,
|
||||
}
|
||||
impl NativeShipout {
|
||||
pub fn display_list(&self) -> Result<crate::render::DisplayList, String> {
|
||||
@@ -34,6 +36,7 @@ impl NativeShipout {
|
||||
magnification: self.device.magnification,
|
||||
units: crate::render::DisplayUnits::TeX,
|
||||
pdf: self.device.pdf.clone(),
|
||||
pdf_links: self.pdf_links.clone(),
|
||||
..Default::default()
|
||||
};
|
||||
use crate::{math_engine_tex::MathItem, render::DisplayItem};
|
||||
|
||||
Reference in new issue
Block a user