docs: cover attachment edit helpers

This commit is contained in:
Harrison Booth committed 2026-10-30 20:26:11 -05:00
1 parent ab433eb763
commit 6d24eedac9
2 files changed
+2

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ pub(crate) fn set_attachments_exact(dst: &mut Document, mut entries: Vec<(Vec<u8
write_attachments(dst, &mut entries, false)
}
/// Write a flat, sorted `/EmbeddedFiles` name tree, optionally renaming duplicate keys.
fn write_attachments(dst: &mut Document, entries: &mut [(Vec<u8>, Object)], uniquify: bool) -> Result<(), OrganizeError> {
if entries.is_empty() {
return Ok(());
+1
View File
@@ -1572,6 +1572,7 @@ fn dialog_about(ui: &mut egui::Ui, req: &mut Pending) -> bool {
true
}
/// Draw the active dialog's footer and record any requested action in `req`.
fn dialog_footer(ui: &mut egui::Ui, app: &mut PdfCraftApp, dialog: Dialog, req: &mut Pending) {
ui.add_space(16.0);
let changed = draft_changes(app).is_some_and(|c| !c.is_empty());