- Takes: URL
- Active: contacts the target
- Plan: Business license
Returns the PDF directly in the response; PDFs are not stored on PDFmyURL servers. With url, the service fetches the page, so the target is contacted. Use html instead of url for protected pages.
Query parameters
urlPage to convert, URL-encoded. Use this or html
htmlRaw HTML to convert, instead of url
page_sizePage size such as A4 or Letter
orientationPage orientation
unitUnit for margins, width and height
css_media_typeSet to print to use the page's print layout
block_adsRemove ads during conversion
hide_cookie_noticesRemove cookie and privacy banners
no_javascriptConvert with JavaScript disabled
javascript_timeMilliseconds to wait for JavaScript
filenameFilename for the PDF
usernameUsername for HTTP basic authentication on the target page
Response fields · 1ShowHide
(body)
The PDF file (binary)
curl 'https://pdfmyurl.com/api?url=https%3A%2F%2Fwww.example.com&license=YOUR_API_KEY'%PDF-1.4 ... (binary PDF data)