TX Text Control .NET Server

Attachments Class

Class|Introduced in 33.0
Namespace
TXTextControl.DocumentServer.PDF
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXDocumentServer.dll

Description

The Attachments class provides methods to extract embedded files from a PDF document.

Syntax

public static class Attachments

Examples

The following example uses Attachments.GetFromFile in a document-processing workflow.

TXTextControl.DocumentServer.PDF.EmbeddedFile[] results = TXTextControl.DocumentServer.PDF.Attachments.GetFromFile("document.docx");
foreach (TXTextControl.DocumentServer.PDF.EmbeddedFile embeddedFile in results)
{
    Console.WriteLine(embeddedFile);
}

Members

Methods

MethodDescription
GetFromDataReturns an array of EmbeddedFile objects that represent all embedded files in the provided PDF document data.
GetFromFileReturns an array of EmbeddedFile objects that represent all embedded files in the specified PDF document.