> For the complete documentation index, see [llms.txt](https://documentation.renda.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.renda.io/integrations/floe/generate-pdf.md).

# Generate PDF

## Renda Integration

Rich HTML output generated by Floe can be transformed into a PDF document using Renda. As part of the PDF utilities collection, Renda offers an API that can be invoked to convert any HTML output to PDF document.&#x20;

Floe 210 now supports  PDF generation, so Floe emails can be sent with either a PDF equivalent attached or a completely different Floe-generated PDF.&#x20;

<div align="center"><img src="/files/-MKEoNeXfICOEXWpoBMz" alt="Floe + Renda Integration"></div>

## Configuration

### Setup SM59 Connection

1. Login into Renda developer portal
2. Subscribe to **Generate PDF** Service in Renda portal
3. Copy API Service URL to notepad
4. Logon to SAP system where Floe is installed
5. Go to transaction SM59
   1. Create a new HTTP Connection to External Server - Type G
   2. Key in **RENDA.IO** in RFC Destination field
   3. Enter description as **Renda.io connection for HTML transformation**
   4. Under Technical Settings tab - Paste API Service URL based on the region you signed up
      * EU Region - api-eu.renda.io
      * APAC Region - api-apac.renda.io
      * US Region - api-us.renda.io
   5. Enter **/v2/generatePDF** in the Path Prefix field
   6. Enter Service No. as **443**
   7. Under the **Logon & Security** tab - Set SSL to active
   8. Test Connection&#x20;

{% hint style="warning" %}
Please remember to whitelist **API Service URL** from within your corporate firewall. This will enable outbound calls to be made from your SAP system to Renda engine in the cloud.
{% endhint %}

![Renda SM59 Connection Setup](/files/xO0E2J7OG8qgPZs8FD9k)

![Renda SM59 Connection Setup](/files/RKcFNcJtUXpwoSyLnBpx)

### Floe system specific settings

1. Go to SPRO->Cross Application Functions->Floe->Administration->System specific settings
2. Under Renda.io PDF Conversion Service Settings
   1. Select the RFC Destination setup for Renda.io using search help
   2. Enter the following requests
      1. **x-api-key** : **\<API Key from Renda Developer Dashboard>**
      2. **Accept** : **application/pdf**
      3. **Content-Type** : **application/x-www-form-urlencoded**

![Renda system specific configuration](/files/IxrvdZcUDC4mNhMCUpf3)

{% embed url="<https://youtu.be/O3pgqBcLg3Y>" %}


---

# 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://documentation.renda.io/integrations/floe/generate-pdf.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.
