Class Editor

The methods in this class take a Job, execute it and return a result.

Inheritance
System.Object
Editor
Namespace: PSPDFKit.Document.Editor
Assembly: PSPDFKit.dll
Syntax
public static class Editor

Methods

MergePDFsAsync(IEnumerable<IStorageFile>)

Merges the supplied PDFs into one file.

Declaration
public static IAsyncOperation<StorageFile> MergePDFsAsync(IEnumerable<IStorageFile> files)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<Windows.Storage.IStorageFile> files

The pdf files.

Returns
Type Description
Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>

The merged file.

MergeProtectedPDFsAsync(IEnumerable<KeyValuePair<IStorageFile, String>>)

Merges the supplied PDFs into one file. If the PDF is password protected supply the password as the value of KeyValuePair. If the PDF is not password protected pass an empty string.

Declaration
public static IAsyncOperation<StorageFile> MergeProtectedPDFsAsync(IEnumerable<KeyValuePair<IStorageFile, string>> filesAndPasswords)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<Windows.Storage.IStorageFile, System.String>> filesAndPasswords

The pdf files.

Returns
Type Description
Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>

The merged file.

NewFileFromJobAsync(Job)

Starts the processing job. The resulting file will be written to the application's temporary directory.

Declaration
public static IAsyncOperation<string> NewFileFromJobAsync(Job job)
Parameters
Type Name Description
Job job

The processing job to be processed.

Returns
Type Description
Windows.Foundation.IAsyncOperation<System.String>

The path to a file which is the result of processing the job.

NewStorageFileFromJobAsync(Job)

Starts the processing job. The resulting file will be written to the application's temporary directory.

Declaration
public static IAsyncOperation<StorageFile> NewStorageFileFromJobAsync(Job job)
Parameters
Type Name Description
Job job

The processing job to be processed.

Returns
Type Description
Windows.Foundation.IAsyncOperation<Windows.Storage.StorageFile>

A Windows.Storage.StorageFile which is the result of processing the job.