TX Text Control .NET Server

GetFromData Method

Method|Introduced in 33.0
Namespace
TXTextControl.DocumentServer.PDF
Package
TXTextControl.TextControl.Core.SDK as TXDocumentServer.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

Returns an array of EmbeddedFile objects that represent all embedded files in the provided PDF document data.

Syntax

public static EmbeddedFile[] GetFromData(byte[] data);

Parameters

ParameterDescription
data

The PDF document data as a byte array.

Return Value

Returns an array of EmbeddedFile objects.

Examples

The following example retrieves from data from the attachments.

TXTextControl.DocumentServer.PDF.EmbeddedFile[] results = TXTextControl.DocumentServer.PDF.Attachments.GetFromData(new byte[] { 1 });
foreach (TXTextControl.DocumentServer.PDF.EmbeddedFile embeddedFile in results)
{
    Console.WriteLine(embeddedFile);
}