> For the complete documentation index, see [llms.txt](https://docs.xorosoft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.xorosoft.com/xoroerp-1/admin/printing/printing-interceptor.md).

# Printing Interceptor

### Overview

The **Printing Interceptor** module allows users to intercept and customize the data sent to supported printing entities before the document is generated. It enables businesses to write custom scripts that transform or manipulate the print data according to their specific business requirements.

Each Printing Interceptor is configured for a specific **Entity** and **Action**, ensuring that the custom script is executed only for the selected printing scenario. This provides organizations with the flexibility to modify print output without changing the core application logic.

### Header Options

The following options are available at the top of the Printing Interceptor page.

* **Delete:** Deletes the current Printing Interceptor configuration from the system.

### Header Fields

| Field          | Description                                                                                                                                                                                                                                           |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Name           | Enter a unique name for the Printing Interceptor. This name helps identify the interceptor configuration within the system.                                                                                                                           |
| Description    | Enter a description explaining the purpose or functionality of the Printing Interceptor. This makes it easier to understand the interceptor's intended use.                                                                                           |
| Entity         | Select the entity for which the Printing Interceptor should be applied. The available entities vary depending on the printing scenarios supported by the WMS (for example, Blind LPN, B2B Line Sheet, etc.).                                          |
| Action         | Select the action associated with the selected entity. Currently, the available action is **General**. The custom script is executed whenever the **General** action is performed for the selected entity.                                            |
| Active         | Enables or disables the Printing Interceptor. When selected, the interceptor becomes active, and the custom script is executed during the corresponding print operation. When cleared, the interceptor remains inactive and is ignored by the system. |
| Custom Scripts | Allows users to write custom scripts **(JSON)** that modify or transform the print data before it is sent for printing. The script editor supports custom business logic to tailor the output according to organizational requirements.               |

<figure><img src="/files/Z9kTVNgEBrfKdkFGyzn9" alt=""><figcaption></figcaption></figure>

After configuring all the required fields, click **Save** to save the Printing Interceptor configuration, including the selected entity, action, and custom script.


---

# 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.xorosoft.com/xoroerp-1/admin/printing/printing-interceptor.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.
