GetFromData Method
- Namespace
TXTextControl.DocumentServer. PDF
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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);Public Function GetFromData(data As Byte()) As EmbeddedFile()Parameters
| Parameter | Description |
|---|---|
| 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);
}Dim results As TXTextControl.DocumentServer.PDF.EmbeddedFile() = TXTextControl.DocumentServer.PDF.Attachments.GetFromData(New Byte() { 1 })
For Each embeddedFile As TXTextControl.DocumentServer.PDF.EmbeddedFile In results
Console.WriteLine(embeddedFile)
Next