> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/uwp/changelogs/version-9/v9-2-2-79504.md).

# Version 9.2.2.79504 Changelog (May 9th, 2022)

World's #1 PDF SDK Library for Web, Mobile, Server, Desktop

Version: 9.2.2.79504

Release Date: May 9th, 2022

## New features

* \[tools] Rich text support when creating FreeText annotation

![](https://3246663708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frgmys2szYV2Z567Zu3vi%2Fuploads%2Fgit-blob-09490f616036b90c262429402afeffaadbaedad4%2F85dad617b79e1a6d4298f994405d1f240b98b599-829x750.gif?alt=media)

* \[tools] \[control] ViewerControl: Unlock full zoom level with options to adjust min and max zoom

![](https://3246663708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frgmys2szYV2Z567Zu3vi%2Fuploads%2Fgit-blob-74e5159828f36decc48d18f316714d8b8bb10476%2F5ea8c54014ff9b47e9e9ce85c41e8cb467cc3394-829x750.gif?alt=media)

## Improvements

* \[tools] Annotation Style: Changing style of annotations are done immediatly while style dialog is opened
* \[tools] Link Annotation: Improved link annotation by removing unecessary zooming during GoTo page link
* \[tools] \[control] ViewerControl: Improved image to PDF conversion when using `ViewerControl.ActivateWithFileAsync()` to ensure the conversion result matches the image size (height and width)
* \[utilities] PDF creation: Added supporting API to easily create PDF from image
* \[depedency] Updated Microsoft.UI.Xaml (WinUI 2 library) to version 2.7.1

## Bug Fixes

* \[tools] Ink/FreeHand: Fixed exception when setting ToolManager.INK\_TIME\_BEFORE\_INK\_SAVES\_ANNOTATION\_IN\_MILLISECONDS to 0 ms
* \[tools] Ink/FreeHand: Fix for ink / freehand annot disappearing during zooming right after annotation is created. Mainly noticible when using a stylus pen
* \[tools] Ink/FreeHand: Fix to ignore double tap (pinching) to avoid strokes to be deleted in the annotation canvas when using Multi-stroke option
* \[tools] FreeText: Fix to prevent keyboard shortcut actions to be triggered when creating or editing FreeText annotation content
* \[tools] Keyboard shotcut: Fix for preventing cutting (ctrl + x) the FreeText annotation when editing it's text
* \[tools] \[control] Annotation Toolbar: Fix to consider the thickness of 0.5 when changing Ink tool style, which would happen when using other a locazation language other than English (i.e. German, Chinese, French, etc)
* \[tools] \[control] ViewerControl: Fix for null exception that could occur when using `SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility` as the back button for page navigation
* \[tools] \[control] ViewerControl: Fix for null exception when using `SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility` to navigate away having the Ink annotation toolbar opened

## New APIs - Tools Package SDK

*New* Methods

* `void ContextMenuControl.RemoveButtonFromCollection(Windows.UI.Xaml.Controls.Button)`
* `static string GetRichFreeText(pdftron.PDF.Annots.FreeText)`
* `static bool IsRichFreeText(pdftron.PDF.Annots.FreeText)`
* `static async Task<PDFDoc> PDFDocCreator.CreateFromImageAsync(StorageFile)`
* `void AutoSaveHelper.Dispose()`
* `void AnnotationPropertyDialog.Dispose()`
* `void AnnotationPropertiesPresetsColorGridViewModel.SetShowAddRemoveButtons(bool)`

*New* Properties

* `bool AnnotEdit.IsEditingText`
* `ToolType ToolManager.CurrentToolType`
* `bool ToolManager.IsRichTextEnabled`
* `bool ViewerControl.IsRichTextEnabled`
* `double ViewerControl.MaxZoomLevel`
* `double ViewerControl.MinZoomLevel`
* `double ViewerControl.DefaultZoomLevel`
* `double ViewerViewModel.MaxZoomLevel`
* `double ViewerViewModel.MinZoomLevel`
* `double ViewerViewModel.DefaultZoomLevel`
* `bool ViewerSettings.IsRichTextEnabled`
* `double ViewerSettings.MaxZoomLevel`
* `double ViewerSettings.MinZoomLevel`
* `static List<string> ViewerSettings.ImagesTypesForConversion`
* `FileOpeningCanceler DocumentOpener.OpeningCanceler`
* `ToolType AnnotationPropertyDialog.AssociatedTool`
* `string AnnotationPropertyDialog.ItemTag`
* `AnnotationPropertyDialog AnnotationPropertiesDisplay.Dialog`
* `bool AnnotationPropertiesPresetsColorGridViewModel.ShowAddRemoveButtons`

*New* Events

* `StyleChangeRequestedHandler AnnotationPropertiesViewModel.StyleChangeRequested`
* `AnnotationPropertiesViewModel.StyleChangeRequestedHandler AnnotationPropertyDialog.StyleChangeRequested`
* `AnnotationPropertiesViewModel.StyleChangeRequestedHandler AnnotationPropertiesDisplay.StyleChangeRequested`

*New* Delegates

* `delegate AnnotationPropertiesViewModel.StyleChangeRequestedHandler(AnnotStyleType, object)`

*New* Enum values

* `FileOpeningType.ImageConversion`

*New* static Class HTMLTags *New* static Class CSSTypes *New* static Class RTFCommands *New* static Class ConvertRTFAndHTML

* *New* Methods
* `string ConvertRTFToHTML(string)`
* `string ConvertHTMLToRTF(string)`

*New* Class FileOpeningCanceler

* *New* properties
* `bool Cancel`;
* `StorageFile File`;

*New* Class HTMLUtilities

* `string GetHexColorFromStyle(string)`
* `string GetInlineStyle(string)`
* `string ReplacePrimaryColor(string, Color)`

*New* Class pdftron.PDF.Tools.Controls.AnnotationPropertiesSubControls.EditRichTextControl

*New* Class pdftron.PDF.Tools.Controls.AnnotationPropertiesSubControls.FormatTextControl

*New* Class pdftron.PDF.Tools.Utilities.FormatRichText

* *New* Methods
* `static void BoldSelectedText(ITextSelection)`
* `static void ItalicSelectedText(ITextSelection)`
* `static void UnderlineSelectedText(ITextSelection)`
* `static void StrikethroughSelectedText(ITextSelection)`
* `static void ColorSelectedText(ITextSelection, Color)`
* `static bool IsEditTextBoxNull(RichEditBox)`
* `static bool IsSelectionNullOrEmpty(ITextSelection)`

*New* Enum pdftron.PDF.Tools.Controls.ViewModels.AnnotStyleType

* `MainColor`
* `FillColor`
* `Thickness`
* `Opacity`
* `FontSize`
* `FontName`
* `Icon`
* `FontFormat`

*New* Converter pdftron.PDF.Tools.Converters.RichTextIconNameConverter


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/uwp/changelogs/version-9/v9-2-2-79504.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
