# 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="https://2586501859-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MBsuqFhmeYvQwkhzDUn%2F-MKEo--wlxXP8vrakGTw%2F-MKEoNeXfICOEXWpoBMz%2FRenda%2BFloe.png?alt=media&#x26;token=20cc4825-5c36-46ef-917a-771d8e6bd7d7" 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](https://2586501859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBsuqFhmeYvQwkhzDUn%2Fuploads%2FCAPqWgbmOoBl3OnkQCaD%2Fimage.png?alt=media\&token=87dada32-1bab-4873-b185-d7f707d4657e)

![Renda SM59 Connection Setup](https://2586501859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBsuqFhmeYvQwkhzDUn%2Fuploads%2F2uvlUAc0Begabw75O7OX%2Fimage.png?alt=media\&token=c809a485-9f76-469f-ab26-005c8201030b)

### 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](https://2586501859-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MBsuqFhmeYvQwkhzDUn%2Fuploads%2FpqL1hcEcVmHg0ApCfsCv%2Fimage.png?alt=media\&token=95c51787-1f61-4ae4-a492-c02d49274354)

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