Blog Post

PSPDFKit 2.3 for Windows

Today we’re shipping PSPDFKit 2.3 for Windows. This release features our new Document Editor UI, revamped icons and styling, new model only methods for Pdf.Document, the ability to add, update or remove document passwords, rendering on background threads, Welsh language support, and much more!

Document Editor UI

document-editor-2

In PSPDFKit for Windows 1.12 we introduced a powerful new component — the model only Document Editor. In this release we introduce the visual Document Editor.

document-editor

This feature enables users to add and remove pages, reorder pages, merge PDFs, and split PDFs directly within the UI — along with even more features. If you’re interested in trying out this new component, please either download a trial or contact our Sales team.

Model Only Support

model-only

Until this release Pdf.Document objects loaded outside a PdfView only supported calls to non-mutating methods. Now you can call all methods including mutating methods and save your results.

In this example we open a document, add an annotation, and export the modified document to a new temporary file.

// Open a pdf from a StorageFile
var source = DocumentSource.CreateFromStorageFile(storageFile);
var doc = await Document.OpenDocumentAsync(source);

// Add a Text annotation to the first page
var textAnnotation = new Text
{
    Contents = "A new text annotation",
    BoundingBox = new Rect(10, 10, 300, 300),
    PageIndex = 0
};
await doc.CreateAnnotationAsync(textAnnotation);

// Create a temp file for writing to
var localFolder = ApplicationData.Current.TemporaryFolder;
var newFile = await localFolder.CreateFileAsync(Guid.NewGuid().ToString());

// Export to the temp file with options
var options = new DocumentExportOptions
{
    Flattened = false,
    Incremental = true,
};
await documentToSave.ExportAsync(newFile, options);

// Close the original document
await doc.CloseDocumentAsync();

Setting and Removing Passwords

password

In this release we’ve added the ability to the Document Editor component to add, update and remove the user and owner passwords of a PDF.

You can read more about user and owner passwords here.

If you’re interested in trying out the Document Editor component, please either download a trial or contact our Sales team.

Additional New Features

Also included in this release are the following new features and improvements:

  • Welsh language support.

  • Support for rendering pages and tiles on a background thread and not just the UI thread.

  • Ability to set the zoom level of the PdfView.

  • A ViewState change event for the Controller.

  • Ability to open a document with a ViewState.

  • A Modified property for the Document.

  • Ability to get the text for a region via the TextParser.

  • Ability to get an OutlineElement by page index.

Final Notes

This release also includes a number of bug fixes and some minor improvements. For a complete list of changes, see the changelog.

Related Products
Share Post
Free 60-Day Trial Try PSPDFKit in your app today.
Free Trial

Related Articles

Explore more
TUTORIALS  |  Windows • C# • PDF • How To

Add a Watermark to a PDF in UWP

DEVELOPMENT  |  Windows • Tips

How to Await an Async Event Handler Delegate in UWP

PRODUCTS  |  Windows • Releases

PSPDFKit 2.2 for Windows