mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-16 15:53:54 +00:00
docs: cover attachment edit helpers
This commit is contained in:
1 parent
ab433eb763
commit
6d24eedac9
2 files changed
+2
No files matched your search
@@ -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(());
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user