Url to Pdf
Introduction
Free to use url to pdf conversion api which allow easily to generate pdf from website on the fly with simple get request
Endpoint
Get
https://api.oyyi.xyz/v1/url-pdfParameters
url Required
- Type:
Url
- Type:
size
- Type:
Enumerable
- Description:: The page size for pdf files
- Allowed values: 'letter', 'legal', 'tabloid', 'ledger', 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6'
- Default: 'a4'
- Type:
margin
- Type:
String
in formattop,right,bottom,left
- Default:
0,0,0,0
- Type:
orientation
- Type:
Enumerable
- Description: Page orientation of generated pdf
- Allowed values: 'landscape', 'portrait'
- Default:
portrait
- Type:
scale
- Type:
decimal
between0.1
to2
- Description Scale the size of generated pdf by factor
- Default:
1
- Type:
page
- Type:
string
- Description: starting and ending page number for pdf
- Default:
1-
it will start from page 1 to end page - Example:
1-4
,4-8
- Type:
bg
- Type:
boolean
- Description: It will show or hide the background of url
- Default:
false
- Type:
filename
- Type:
string
- Description: The name of the generated PDF file
- Default:
random
- Type:
download
- Type:
boolean
- Description: Setting the value of download will generate response to download the file
- Default:
false
- Type:
Example
Curl
curl "https://BASE_URL/url-pdf?scale=1.2&url=https://oyyi.xyz"
Table of Contents