Javascript: TXTextControl.LoadSettings.PDFImportSettings Enumeration
Description
Specifies how the document structure is generated when a PDF document is imported.
Members
| Member | Description |
|---|---|
| GenerateLines | Text only,images and paragraph formatting are discarded. This option is best suited for searching PDF files. |
| GenerateParagraphs | Generates paragraphs from the text flow. Images are discarded. |
| GenerateTextFrames | Default. Uses tables, images and text frames to create a document that best matches the original document's appearance. |
| GenerateXML | Creates an XML format where each line of text has attributes like page number and geometrical position. |
| LoadEmbeddedFiles | Default. Files embedded in the PDF document are loaded and provided through the LoadSettings.EmbeddedFiles property. |
| LoadEmbeddedData | Provides the PDF document's metadata, form fields and text coordinates through the LoadSettings.EmbeddedData property. |
| GenerateTextFramesFirstPageOnly | Same 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);