> 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/features/native-pdf-enhancement.md).

# Native PDF Enhancement

VIESUS enhances PDFs without flattening them. It opens the source PDF, locates the raster images embedded inside, enhances each one through the standard VIESUS pipeline, and writes the improved images back into a new PDF — preserving the document structure, fonts, layout, and vector elements.

This means a photobook PDF, a marketing catalogue, or a print-ready document can be enhanced once at the production stage without anyone redoing the layout.

## Example

{% columns %}
{% column %}
**Before**

<figure><img src="/files/E4JjOos7P7724jjCYkyn" alt="Before — Native PDF Enhancement"><figcaption></figcaption></figure>
{% endcolumn %}

{% column %}
**After**

<figure><img src="/files/E4JjOos7P7724jjCYkyn" alt="After — Native PDF Enhancement"><figcaption></figcaption></figure>
{% endcolumn %}
{% endcolumns %}

## What makes it "native"

* **No flattening.** The PDF stays a PDF. Text remains text, vectors remain vectors, layers and metadata are preserved.
* **Image-by-image enhancement.** Each embedded raster image is extracted, run through VIESUS, and written back. Non-image content is untouched.
* **Tiled-image reconstruction.** Layout applications often split a single visual into many small image tiles. VIESUS recognises these split tiles, reassembles them into the single image they represent, and enhances the whole — avoiding visible seams where tile boundaries used to be.
* **Background-image skipping.** Page-sized background images (decorative or full-page color backgrounds) can be detected and skipped so that only meaningful content images receive enhancement.

## How to use it

Native PDF enhancement is delivered by the **VIESUS PDF Enhancer** — a separate command-line tool with stand-alone and hotfolder modes. The image enhancement parameters configured through `viesusini.json` apply to each embedded image; PDF-specific pipeline settings live in the PDF Enhancer's own `settings.json`.

See the [PDF CLI reference](/reference/pdf-cli.md), [Installation](/installation/pdf.md), and [PDF Settings Reference](/configuration/pdf-settings.md).


---

# 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/features/native-pdf-enhancement.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.
