TX Text Control .NET for WPF

PDFImportSettings Enumeration

Enumeration
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.

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

[Flags]
public enum PDFImportSettings

Members

ValueValueDescription
GenerateLines1Text only,images and paragraph formatting are discarded. This option is best suited for searching PDF files.
GenerateParagraphs2Generates paragraphs from the text flow. Images are discarded.
GenerateTextFrames4Default. Uses tables, images and text frames to create a document that best matches the original document's appearance.
GenerateTextFramesFirstPageOnly128Same as GenerateTextFrames, but only the first page is loaded. Can be used for previewing the document.
GenerateXML8Obsolete. This setting will be removed in a future version. Use LoadEmbeddedData instead.
LoadEmbeddedData32Provides the PDF document's metadata, form fields and text coordinates through the LoadSettings.EmbeddedData property.
LoadEmbeddedFiles16Default. 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}");

See Also

LoadSettings.PDFImportSettings Property.

Further Reading

  • Searching Strings in PDF Documents –