feat(export): wire pdf/docx formats into export_meeting (T8.4, FR-NOTE-4)
This commit is contained in:
@@ -1115,6 +1115,24 @@ pub async fn export_meeting(
|
||||
)
|
||||
.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" => {
|
||||
std::fs::create_dir_all(&dest_path)
|
||||
.map_err(|e| WaError::new("export", e.to_string()))?;
|
||||
|
||||
Reference in New Issue
Block a user