From cb59a3d082a40875024e094ef855482343be9e40 Mon Sep 17 00:00:00 2001 From: ema Date: Fri, 13 Dec 2024 11:23:57 +0800 Subject: [PATCH] Support password-protected PDF #155 #765 QL will display a UI prompting for a password. Upon entering the correct password, the PDF file will be reopened. --- .../PasswordControl.xaml | 55 ++++++++++++++ .../PasswordControl.xaml.cs | 74 +++++++++++++++++++ .../PdfDocumentWrapper.cs | 4 +- .../PdfViewerControl.xaml.cs | 8 +- .../QuickLook.Plugin.PDFViewer/Plugin.cs | 59 +++++++++++++-- .../QuickLook.Plugin.PdfViewer.csproj | 6 ++ .../Translations.config | 32 ++++++++ 7 files changed, 225 insertions(+), 13 deletions(-) create mode 100644 QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PasswordControl.xaml create mode 100644 QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PasswordControl.xaml.cs create mode 100644 QuickLook.Plugin/QuickLook.Plugin.PDFViewer/Translations.config diff --git a/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PasswordControl.xaml b/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PasswordControl.xaml new file mode 100644 index 0000000..0ec65d8 --- /dev/null +++ b/QuickLook.Plugin/QuickLook.Plugin.PDFViewer/PasswordControl.xaml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + +