TX Text Control .NET for WPF

EmbeddedData Property

Property|Introduced in 29.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a System.Collections.Generic.Dictionary containing additional embedded data contained in a PDF document. Supported formats are specified through the EmbeddedDataFormat enumeration. Each entry in the dictionary is a key-value pair, the key is an EmbeddedDataFormat enumeration value and the value is a string with the data in the specified format. This Dictionary is filled only, if the PDFImportSettings property specifies the LoadEmbeddedData setting.

Syntax

public System.Collections.Generic.Dictionary<EmbeddedDataFormat, object> EmbeddedData { get; }

Examples

The following example reads LoadSettings.EmbeddedData after the template has been loaded.

LoadSettings loadSettings = new();
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
Console.WriteLine($"Embedded Data: {loadSettings.EmbeddedData}");

Limitations

PDF and PDF/A only.