> For the complete documentation index, see [llms.txt](https://mostafaznv.gitbook.io/pdf-optimizer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mostafaznv.gitbook.io/pdf-optimizer/advanced-usage/configuring-ghostscript/pdfsettings.md).

# PDFSETTINGS

| Method Name | Argument Name | Argument Type                             |
| ----------- | ------------- | ----------------------------------------- |
| settings    | settings      | Mostafaznv\PdfOptimizer\Enums\PdfSettings |

Presets the `distiller parameters` to one of the following predefined settings:

* <mark style="color:red;">`/screen`</mark> selects low-resolution output similar to the Acrobat Distiller **Screen Optimized** setting.
* <mark style="color:red;">`/ebook`</mark> selects medium-resolution output similar to the Acrobat Distiller **eBook** setting.
* <mark style="color:red;">`/printer`</mark> selects output similar to the Acrobat Distiller **Print Optimized** setting.
* <mark style="color:red;">`/prepress`</mark> selects output similar to Acrobat Distiller **Prepress Optimized** setting.
* <mark style="color:red;">`/default`</mark> selects output intended to be useful across a wide variety of uses, possibly at the expense of a larger output file.

{% hint style="info" %}
Please be aware that the <mark style="color:red;">`/prepress`</mark> setting does not indicate the highest quality conversion. Using any of these presets will involve altering the input, and as such may result in a PDF of poorer quality (compared to the input) than simply using the defaults. The ‘best’ quality (where best means closest to the original input) is obtained by not setting this parameter at all (or by using <mark style="color:red;">/default</mark>).
{% endhint %}

The <mark style="color:red;">`PDFSETTINGS`</mark> presets should only be used if you are sure you understand that the output will be altered in a variety of ways from the input. It is usually better to adjust the controls individually if you have a genuine requirement to produce, for example, a PDF file where the images are reduced in resolution.


---

# 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://mostafaznv.gitbook.io/pdf-optimizer/advanced-usage/configuring-ghostscript/pdfsettings.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.
