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-pdf

Parameters

  • url Required

    • Type: Url
  • 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'
  • margin

    • Type: String in format top,right,bottom,left
    • Default: 0,0,0,0
  • orientation

    • Type: Enumerable
    • Description: Page orientation of generated pdf
    • Allowed values: 'landscape', 'portrait'
    • Default: portrait
  • scale

    • Type: decimal between 0.1 to 2
    • Description Scale the size of generated pdf by factor
    • Default: 1
  • 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
  • bg

    • Type: boolean
    • Description: It will show or hide the background of url
    • Default: false
  • filename

    • Type: string
    • Description: The name of the generated PDF file
    • Default: random
  • download

    • Type: boolean
    • Description: Setting the value of download will generate response to download the file
    • Default: false

Example

Curl
curl "https://BASE_URL/url-pdf?scale=1.2&url=https://oyyi.xyz"