PDFImportSettings Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. Core. SDK
- Assembly
TXTextControl.Core. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. Core. SDK TXTextControl.from the setup.dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Specifies how the document structure is generated when a PDF document is imported. It is used with the LoadSettings.PDFImportSettings property and contains the following values:
Syntax
[]
public enum PDFImportSettings<Flags>
Public Enum PDFImportSettingsMembers
| Value | Value | Description |
|---|---|---|
| GenerateLines | 1 | Text only,images and paragraph formatting are discarded. This option is best suited for searching PDF files. |
| GenerateParagraphs | 2 | Generates paragraphs from the text flow. Images are discarded. |
| GenerateTextFrames | 4 | Default. Uses tables, images and text frames to create a document that best matches the original document's appearance. |
| GenerateTextFramesFirstPageOnly | 128 | Same as GenerateTextFrames, but only the first page is loaded. Can be used for previewing the document. |
| GenerateXML | 8 | Obsolete. This setting will be removed in a future version. Use LoadEmbeddedData instead. |
| LoadEmbeddedData | 32 | Provides the PDF document's metadata, form fields and text coordinates through the LoadSettings.EmbeddedData property. |
| LoadEmbeddedFiles | 16 | Default. Files embedded in the PDF document are loaded and provided through the LoadSettings.EmbeddedFiles property. |
Examples
The following example selects the Generate Lines value from the PDFImport Settings enumeration and uses it as a documented workflow choice.
PDFImportSettings value = PDFImportSettings.GenerateLines;
Console.WriteLine($"Using PDFImport Settings: {value}");Dim value As PDFImportSettings = PDFImportSettings.GenerateLines
Console.WriteLine($"Using PDFImport Settings: {value}")See Also
LoadSettings.PDFImportSettings Property.