Class DataProviderAesViewModel
This example demonstrates how to open and export PDF using an AES DataProvider and DataSink.
It uses AesDataProvider and AesDataSink
Inheritance
System.Object
DataProviderAesViewModel
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Catalog.dll
Syntax
public class DataProviderAesViewModel : Observable, INotifyPropertyChanged
Properties
ExportEncryptedPDFCommand
Declaration
public ICommand ExportEncryptedPDFCommand { get; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
FlattenAnnotations
Declaration
public bool FlattenAnnotations { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
IncrementalSave
Declaration
public bool IncrementalSave { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
OpenEncryptedPDFCommand
Declaration
public ICommand OpenEncryptedPDFCommand { get; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
OpenPDFCommand
Declaration
public ICommand OpenPDFCommand { get; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
PDFView
Declaration
public PdfView PDFView { get; }
Property Value
SaveToOpenEncryptedPDFCommand
Declaration
public ICommand SaveToOpenEncryptedPDFCommand { get; }
Property Value
| Type |
Description |
| System.Windows.Input.ICommand |
|
Methods
ExportEncryptedPDFAsync()
Declaration
public async void ExportEncryptedPDFAsync()
Initialize(PdfView)
Declaration
public void Initialize(PdfView pdfView)
Parameters
| Type |
Name |
Description |
| PdfView |
pdfView |
|
OpenEncryptedPDFAsync()
Open an encrypted PDF saved by this Catalog example.
Declaration
public async void OpenEncryptedPDFAsync()
OpenPDFAsync()
Open an unencrypted file.
Use this to open a file and then after export is as a new encrypted file.
Declaration
public async void OpenPDFAsync()
SaveToOpenEncryptedPDFAsync()
Save to the open encrypted PDF.
If you try to save to an open unencrypted file this will fail.
Declaration
public async void SaveToOpenEncryptedPDFAsync()
ViewUnloaded()
Declaration
public void ViewUnloaded()
Implements
System.ComponentModel.INotifyPropertyChanged