Attachments Class
- Namespace
TXTextControl.DocumentServer. PDF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXDocumentServer.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXDocumentServer.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
The Attachments class provides methods to extract embedded files from a PDF document.
Syntax
public static class AttachmentsPublic Module AttachmentsExamples
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);
}Dim results As TXTextControl.DocumentServer.PDF.EmbeddedFile() = TXTextControl.DocumentServer.PDF.Attachments.GetFromFile("document.docx")
For Each embeddedFile As TXTextControl.DocumentServer.PDF.EmbeddedFile In results
Console.WriteLine(embeddedFile)
NextMembers
Methods
| Method | Description |
|---|---|
| GetFromData | Returns an array of EmbeddedFile objects that represent all embedded files in the provided PDF document data. |
| GetFromFile | Returns an array of EmbeddedFile objects that represent all embedded files in the specified PDF document. |