Export project PDFs through route-D when selected

This commit is contained in:
gloamxun committed 2026-10-21 01:15:09 +08:00
1 parent 21cc743236
commit c3277531d3
4 files changed
+25 -2

No files matched your search

+1 -1
View File
@@ -124,7 +124,7 @@ pub fn preview_json(source: &str) -> Result<String, String> {
/// Render the same checkpointed document as a route-D PDF.
pub fn pdf_bytes(source: &str) -> Result<Vec<u8>, String> {
let paragraphs = paragraphs(source)?;
let paragraphs = paragraphs(latex_body(source))?;
let document = build_document(&paragraphs);
let engine = Engine::layout(&document);
let pages: Vec<_> = engine