> For the complete documentation index, see [llms.txt](https://docs.viesus.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.viesus.com/configuration/pdf-settings/general.md).

# General

Core configuration for PDF processing behavior.

<table><thead><tr><th width="222.199951171875">Parameter</th><th width="85.800048828125">Type</th><th width="98.4000244140625">Default</th><th>Description</th></tr></thead><tbody><tr><td><code>viesusIni</code></td><td>String</td><td>-</td><td>Path to the VIESUS image enhancement configuration file. Default path is <code>C:\ProgramData\Imaging Solutions\VIESUS\PDFEnhancer\IsEnhance.json</code></td></tr><tr><td><code>archive</code></td><td>Boolean</td><td>1</td><td>Enable / disable archiving of processed files</td></tr><tr><td><code>delete</code></td><td>Boolean</td><td>1</td><td>Enable / disable deletion of source files after processing</td></tr><tr><td><code>debug</code></td><td>Boolean</td><td>1</td><td>Enable / disable debug mode and logging</td></tr><tr><td><code>minFileSize</code></td><td>Integer</td><td>20</td><td>Minimum PDF file size (KB) for processing</td></tr><tr><td><code>destFileLog</code></td><td>Boolean</td><td>0</td><td>Enable destination file logging</td></tr><tr><td><code>useColorRatio</code></td><td>Boolean</td><td>0</td><td>Enable color ratio analysis for artificial image detection</td></tr><tr><td><code>colorRatioThres</code></td><td>Float</td><td>0.05</td><td>Threshold for color ratio analysis</td></tr><tr><td><code>checkAdjacentImages</code></td><td>Boolean</td><td>1</td><td>Check for adjacent images to merge for enhancement</td></tr><tr><td><code>adjacencyThres</code></td><td>Integer</td><td>10</td><td>Threshold for determining image adjacency (pixels)</td></tr><tr><td><code>overlapThres</code></td><td>Integer</td><td>10</td><td>Threshold for determining image overlap (pixels)</td></tr><tr><td><code>includeSoftMaskedImages</code></td><td>Boolean</td><td>1</td><td>Enable enhancement of images with soft masks</td></tr><tr><td><code>streamReading</code></td><td>Boolean</td><td>1</td><td>Enable JPEG stream reading (disable for files with zipped images)</td></tr><tr><td><code>skipFullPageBackground</code></td><td>Boolean</td><td>1</td><td>Skip background images that fill the entire page</td></tr><tr><td><code>minImageWidth</code></td><td>Integer</td><td>64</td><td>Skip images narrower than this</td></tr><tr><td><code>minImageHeight</code></td><td>Integer</td><td>64</td><td>Skip images shorter than this</td></tr></tbody></table>

{% hint style="info" %}
For boolean parameters: **0** = OFF, **1** = ON.
{% endhint %}

{% hint style="warning" %}

* **`checkAdjacentImages`** should be disabled for very complex PDFs to avoid performance issues
  {% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.viesus.com/configuration/pdf-settings/general.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
