Enable automatic native checkpoints and browser preview
This commit is contained in:
1 parent
bb1a166c4c
commit
06463399bb
10 files changed
+877
-92
No files matched your search
@@ -306,9 +306,13 @@ impl Executor {
|
||||
return self.fail("cannot ship a PDF link operation to DVI");
|
||||
}
|
||||
match link {
|
||||
LinkNode::Start(_) if link_depth == 10 => return self.fail("PDF link stack capacity exceeded"),
|
||||
LinkNode::Start(_) if link_depth == 10 => {
|
||||
return self.fail("PDF link stack capacity exceeded");
|
||||
}
|
||||
LinkNode::Start(_) => link_depth += 1,
|
||||
LinkNode::End if link_depth == 0 => return self.fail("\\pdfendlink used without \\pdfstartlink"),
|
||||
LinkNode::End if link_depth == 0 => {
|
||||
return self.fail("\\pdfendlink used without \\pdfstartlink");
|
||||
}
|
||||
LinkNode::End => link_depth -= 1,
|
||||
LinkNode::Destination { .. } => {}
|
||||
}
|
||||
@@ -336,6 +340,7 @@ impl Executor {
|
||||
self.current = current;
|
||||
self.native_page.as_mut().unwrap().dead_cycles = 0;
|
||||
let before = self.statistics_before_shipout(&b, files)?;
|
||||
self.shipped_pages += 1;
|
||||
self.events.push(Event::Shipout(Box::new(NativeShipout {
|
||||
box_node: b,
|
||||
device,
|
||||
|
||||
Reference in new issue
Block a user