mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-27 11:37:59 -06:00
M9.6: --dialog sign|certify opens Sign with a Digital ID (headless screenshots, control channel)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
bb1d9a0d8a
commit
7ff3053fda
@@ -691,6 +691,12 @@ impl PrintCraftApp {
|
||||
"export-image" => Some(Dialog::Export(export_ui::ExportKind::Image)),
|
||||
"export-text" => Some(Dialog::Export(export_ui::ExportKind::Text)),
|
||||
"signature" => Some(Dialog::Signature),
|
||||
"sign" | "certify" => {
|
||||
// Sign with a Digital ID for an invisible signature on the current page.
|
||||
let page = self.active.map_or(0, |i| self.views[i].current);
|
||||
self.start_signing(page, None, None, (value == "certify").then_some(2));
|
||||
Some(Dialog::Sign)
|
||||
}
|
||||
"number-pages" => {
|
||||
// Same path as the menu, so the page range is seeded.
|
||||
self.execute("page.number");
|
||||
|
||||
Reference in New Issue
Block a user