Export native TeX shipouts as binary DVI

This commit is contained in:
gloamxun committed 2026-11-28 09:05:18 +08:00
1 parent 34325317d2
commit d9edc6c6e7
10 files changed
+459 -14

No files matched your search

@@ -29,6 +29,8 @@ pub struct NativeShipout {
pub box_node: NativeBox,
pub device: ShipoutDevice,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub(super) dvi: Option<super::dvi::DviPage>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub(super) pdf_objects: Option<crate::pdf_device::page_resources::PageObjects>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub(super) font_overrides: BTreeMap<FontId, Arc<crate::native_font::NativeFont>>,
@@ -113,7 +115,7 @@ impl NativeShipout {
return;
}
let p = match item {
boxes::GeometryItem::Output => {
boxes::GeometryItem::Output { .. } => {
reached_boundary = before_output == Some(output_index);
output_index += 1;
return;