Ocean PDF API

Convert any website or document to PDF

Websites, Office documents, HTML and Markdown files, including custom styling and print options. All in a single API, pay as you go.

  • URL
  • HTML & CSS
  • Markdown
  • .txt
  • .rtf
  • .doc
  • .docx
  • .xls
  • .xlsx
  • .ppt
  • .pptx
  • .odt
  • .ods
  • .odp
  • .fodt
Get Started
curl --request POST --url https://pdf-converter2.p.rapidapi.com/convert/url \
 --header 'Content-Type: multipart/form-data' \
 --header 'x-rapidapi-key: <YOUR-API-KEY-HERE>' \
 --form remoteURL=https://google.com \
 --form marginTop=0 \
 --form marginBottom=0 \
 --form marginLeft=0 \
 --form marginRight=0 \
 -o curl.pdf

Convert or merge anything

Features

Convert websites, change margins, orientation, and more. You can even merge multiple PDFs into one.

URL to PDF

OceanPDF API can convert any given URL to PDF. It uses a headless Google Chrome instance, therefore the converted file will look just like on your browser.

Office to PDF

OceanPDF API can convert Office files to PDF using unoconv. You can also send multiple Office files, and the API will merge those files alphabetically into a single PDF.

HTML to PDF

Send your HTML document with CSS files and any other assets, and OceanPDF API will return you the resulting PDF using a headless Google Chrome.

Markdown to PDF

OceanPDF API can also convert your Markdown files to PDF. Send your markdown file and the HTML template you'd like to use, and get your PDF immediately.

Merge PDFs

OceanPDF can also merge multiple PDF files into a single PDF alphabetically. Send all your files in the files key in your form request, and get the resulting file.

Pay as you go

Simple Pricing

OceanPDF API utilizes a simple pricing based on the number of requests. The plans, payments and authentication are handled by RapidAPI.

Basic

50 req / mo

$0 /month
Get it now
Pro

1000 req / mo

$5 /month
Get it now
Recommended
Ultra

5000 req / mo

$20 /month
Get it now
Mega

30000 req / mo

$100 /month
Get it now
Get started now
Go to docs

OceanPDF API is free to get started. Get your token, and start converting your files.