# LoadSettings.PDFImportSettings Property

> Specifies how the document structure is generated when a PDF document is imported. Adobe PDF format is a low-level output format. In most cases in contains only geometrical information about the single characters. A high-level document structure specifying paragraphs, tables, sections and styles is not available. The TXTextControl PDF import filter will reconstruct the original document according to the value of the PDFImportSettigs property.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > LoadSettings.PDFImportSettings Property
- **787 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/pdfimportsettings-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/pdfimportsettings-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/pdfimportsettings-property/llms-full.txt

---

### Description

Specifies how the document structure is generated when a PDF document is imported. Adobe PDF format is a low-level output format. In most cases in contains only geometrical information about the single characters. A high-level document structure specifying paragraphs, tables, sections and styles is not available. The TXTextControl PDF import filter will reconstruct the original document according to the value of the PDFImportSettigs property.

### Syntax

```csharp
public PDFImportSettings PDFImportSettings { get; set; }
```

```vbnet
Public Property PDFImportSettings As PDFImportSettings
```

### Members

| Value | 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. |
| GenerateTextFramesFirstPageOnly | Same as GenerateTextFrames, but only the first page is loaded. Can be used for previewing the document. |
| GenerateXML | Obsolete. This setting will be removed in a future version. Use LoadEmbeddedData instead. |
| LoadEmbeddedData | Provides the PDF document's metadata, form fields and text coordinates through the [LoadSettings.EmbeddedData](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/embeddeddata-property/llms-full.txt) property. |
| LoadEmbeddedFiles | Default. Files embedded in the PDF document are loaded and provided through the [LoadSettings.EmbeddedFiles](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsavesettingsbase/embeddedfiles-property/llms-full.txt) property. |

### Examples

The following example configures how a WordprocessingML template is loaded by using `LoadSettings.PDFImportSettings`.

```csharp
LoadSettings loadSettings = new();

loadSettings.PDFImportSettings = PDFImportSettings.GenerateLines;
Console.WriteLine($"PDFImport Settings used by Load Settings: {loadSettings.PDFImportSettings}");

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
```

```vbnet
Dim loadSettings As New LoadSettings()

loadSettings.PDFImportSettings = PDFImportSettings.GenerateLines
Console.WriteLine($"PDFImport Settings used by Load Settings: {loadSettings.PDFImportSettings}")

textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings)
```

### Limitations

PDF only.

---

## Nearby

- **Previous:** [LoadSettings.PageSize Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/pagesize-property/llms-full.txt)
- **Next:** [LoadSettings.UserDefinedDocumentProperties Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/loadsettings/userdefineddocumentproperties-property/llms-full.txt)
