> ## Documentation Index
> Fetch the complete documentation index at: https://filecheck.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Soft-proofing

> Let customers approve automated changes before they proceed. How the proof gate works.

When the merchant enables proofing on a [Workflow](https://filecheck.io/docs/concepts/workflows.md), the Element renders a visual **soft-proof** of the file after automated changes (for example, RGB to CMYK conversion or a padded canvas) and asks the customer to sign off.

## Flat pages or the product

The Workflow's Soft-proofing step chooses what the customer approves on:

* **Flat pages**: the proof pages, as they will print.
* **A 3D Scene**: the artwork on the product itself, such as a mug, a folded leaflet, a booklet or a business card. See [3D Proofs](https://filecheck.io/docs/concepts/3d-proofs.md).

The approval gate works the same way with either one.

## The proof event

The Element fires `proof` once pages are rendered:

```ts theme={null}
interface ProofPayload {
  pages: Array<{ url: string; page: number; width: number; height: number; mimeType: string; bytes: number; key: string }>;
  approvalRequired?: boolean;  // if true, the workflow halts until respondToProof() is called
  message?: string;
  affirmButtonText?: string;
}
```

```js theme={null}
intake.on('proof', ({ pages, approvalRequired }) => {
  if (!approvalRequired) return; // informational only

showProofGallery(pages, {
    onApprove: () => intake.respondToProof(true),
    onReject:  () => intake.respondToProof(false),
  });
});
```

> [!NOTE]
>
> If you don't build a custom gallery, ignore the `proof` event. The built-in iframe gallery handles approval automatically.

See [Events](https://filecheck.io/docs/element/events.md) for the full event list.

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.
