TX Text Control .NET Server

Javascript: TXTextControl.LoadSettings.PDFImportSettings Enumeration

Enumeration|Introduced in 28.0

Description

Specifies how the document structure is generated when a PDF document is imported.

Members

MemberDescription
GenerateLinesText only,images and paragraph formatting are discarded. This option is best suited for searching PDF files.
GenerateParagraphsGenerates paragraphs from the text flow. Images are discarded.
GenerateTextFramesDefault. Uses tables, images and text frames to create a document that best matches the original document's appearance.
GenerateXMLCreates an XML format where each line of text has attributes like page number and geometrical position.
LoadEmbeddedFilesDefault. Files embedded in the PDF document are loaded and provided through the LoadSettings.EmbeddedFiles property.
LoadEmbeddedDataProvides the PDF document's metadata, form fields and text coordinates through the LoadSettings.EmbeddedData property.
GenerateTextFramesFirstPageOnlySame as GenerateTextFrames, but only the first page is loaded. Can be used for previewing the document.

Examples

The following example uses TXTextControl.Txtextcontrol.Loadsettings.PDFImportSettings.GenerateLines (text only,images and paragraph formatting are discarded. This option is best suited for searching PDF files.) in a document-editing workflow.

const value = TXTextControl.Txtextcontrol.Loadsettings.PDFImportSettings.GenerateLines;
console.log("Text only,images and paragraph formatting are discarded. This option is best suited for searching PDF files.", value);