mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-03 00:59:53 +00: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:
1 parent
bb1d9a0d8a
commit
7ff3053fda
1 file changed
+6
@@ -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