feat(export): wire pdf/docx formats into export_meeting (T8.4, FR-NOTE-4)
This commit is contained in:
1 parent
0425f64cfe
commit
06bdf6d469
1 file changed
+18
@@ -1115,6 +1115,24 @@ pub async fn export_meeting(
|
|||||||
)
|
)
|
||||||
.map_err(|e| WaError::new("export", e.to_string()))?;
|
.map_err(|e| WaError::new("export", e.to_string()))?;
|
||||||
}
|
}
|
||||||
|
"pdf" => {
|
||||||
|
crate::notes::MarkdownNotes
|
||||||
|
.export(
|
||||||
|
&meeting.notes_markdown,
|
||||||
|
&dest_path,
|
||||||
|
crate::notes::ExportFormat::Pdf,
|
||||||
|
)
|
||||||
|
.map_err(|e| WaError::new("export", e.to_string()))?;
|
||||||
|
}
|
||||||
|
"docx" => {
|
||||||
|
crate::notes::MarkdownNotes
|
||||||
|
.export(
|
||||||
|
&meeting.notes_markdown,
|
||||||
|
&dest_path,
|
||||||
|
crate::notes::ExportFormat::Docx,
|
||||||
|
)
|
||||||
|
.map_err(|e| WaError::new("export", e.to_string()))?;
|
||||||
|
}
|
||||||
"bundle" => {
|
"bundle" => {
|
||||||
std::fs::create_dir_all(&dest_path)
|
std::fs::create_dir_all(&dest_path)
|
||||||
.map_err(|e| WaError::new("export", e.to_string()))?;
|
.map_err(|e| WaError::new("export", e.to_string()))?;
|
||||||
|
|||||||
Reference in new issue
Block a user