# Javascript: TXTextControl.LoadSettings.PDFImportSettings Enumeration

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

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** TX Text Control .NET Server > Reference > JavaScript API > Javascript: TXTextControl.LoadSettings.PDFImportSettings Enumeration
- **445 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/pdfimportsettings-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/pdfimportsettings-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/pdfimportsettings-enumeration/llms-full.txt

---

### 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.

```javascript
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);
```

---

## Nearby

- **Previous:** [Javascript: TXTextControl.LoadSettings.masterPassword Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/masterpassword-property/llms-full.txt)
- **Next:** [Javascript: TXTextControl.LoadSettings.PDFImportSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/javascript/txtextcontrol-loadsettings/pdfimportsettings-property/llms-full.txt)
