PDF Utilities

Renda offers a host of transformation functions to support a variety of enterprise document output needs.
  • Transform HTML to PDF

  • Merge multiple PDF (Available in Mid 2021)

  • Convert PDF to Postscript (Available in Mid 2021)

Transform HTML to PDF

With Renda' HTML to PDF transformation API - HTML output can be converted to PDF document. Optionally the PDF document can also password protected by using AES 256 encryption algorithm.

API calls are region specific. Please make sure you are subscribed to a specific region before making API calls.

get
Ping

https://api-<region>.renda.io/v1/ping/
This API perform a heartbeat check to verify if the configuration is all setup correctly from your application. Region specific URLs: Ireland(Europe): https://api-eu.renda.io/v1/ping North Virginia(US): https://api-us.renda.io/v1/ping Mumbai (Asia Pacific): https://api-apac.renda.io/v1/ping
Request
Response
Request
Headers
x-api-key
required
string
Renda.io API Key A valid renda.io user account is required to view API Key
Response
200: OK
Successful Ping
{
"message": "Renda.io ping Successful"
}
403: Forbidden
No API Key provided
{
"message": "Forbidden"
}

post
Generate PDF

https://api-<region>.renda.io/v1/generatePDF
This API enables conversion of HTML and text documents in PDF. Optionally the generated PDF can also be encrypted Region specific URLs: Ireland(Europe): https://api-eu.renda.io/v1/generatePDF North Virginia(US): https://api-us.renda.io/v1/generatePDF Mumbai(APAC):https://api-apac.renda.io/v1/generatePDF
Request
Response
Request
Headers
x-api-key
required
string
Renda API Key
Accept
optional
string
application/pdf
Content-type
optional
string
application/x-www-form-urlencoded
Form Data Parameters
inputPayload
required
string
HTML payload to transform to PDF format
encryptionKey
optional
string
Encryption key to password protect the generated PDF
landscape
optional
boolean
Paper orientation. Defaults to false
format
optional
string
Paper Format. Defaults to A4 Valid Options: Letter, Legal, Tabloid, Ledger, A0,A1,A2,A3,A4,A5,A6 Letter: 8.5in X 11in Legal: 8.5in x 14in Tabloid: 11in x 17in Ledger: 17in x 11in A0: 33.1in x 46.8in A1: 23.4in x 33.1in A2: 16.54in x 23.4in A3: 11.7in x 16.54in A4: 8.27in x 11.7in A5: 5.83in x 8.27in A6: 4.13in x 5.83in
marginTop
optional
string
Paper Margin top Defaults to blank Top margin, accepts values labeled with units Example: 50px
marginRight
optional
string
Paper Margin right Defaults to blank Right margin, accepts values labeled with units
marginBottom
optional
string
Paper Margin bottom Defaults to blank Bottom margin, accepts values labeled with units
marginLeft
optional
string
Paper Margin Left Defaults to blank Left margin, accepts values labeled with units
Response
200: OK
A valid PDF document is returned as a success response
%PDF-1.4
%����
1 0 obj
<</Creator (Chromium)
/Producer (Skia/PDF m83)
........
....<PDF Content>...
.......
%%EOF
500: Internal Server Error
PDF Generation error will be notified via HTTP 500 errors
{
"<Error Response from Server>"
}