---
Product: Aspose.PDF
Platform: net
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/net/FlattenSettings
---

# FlattenSettings

## Overview

`FlattenSettings` is a class in Aspose.PDF FOSS for .NET.

Settings for Flatten(FlattenSettings).

Properties: `ApplyRedactions`, `CallEvents`, `HideButtons`, `UpdateAppearances`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `HideButtons` | `bool` | Read/Write | When true, button widgets (XFA &lt;button&gt; nodes) are marked presence="hidden" before the flatten step so they are not rasterised into the resulting page content. |
| `CallEvents` | `bool` | Read/Write | When true, JavaScript and other field events are run during flatten (e.g. |
| `UpdateAppearances` | `bool` | Read/Write | When true, each field's appearance stream is regenerated from its current value before being flattened into page content. |
| `ApplyRedactions` | `bool` | Read/Write | When true, redaction annotations are applied during the flatten pass. |

## See Also

- [Aspose.PDF for .NET — Enterprise API Reference](https://reference.aspose.com/pdf/net/)