{
"timestamp": 1700000000000,
"apiStatus": "failure",
"apiCode": 400,
"message": "INVALID_URL",
"details": "The URL must be a valid HTTP or HTTPS URL."
}
{
"timestamp": 1700000000000,
"apiStatus": "failure",
"apiCode": 422,
"message": "UNABLE_TO_CONNECT",
"details": "The destination server could not be resolved, refused the connection, timed out, or is redirecting indefinitely."
}
{
"timestamp": 1700000000000,
"apiStatus": "failure",
"apiCode": 500,
"message": "PDF_CONVERSION_FAILED",
"details": "Our PDF conversion service encountered an error while fetching the target URL."
}
Endpoint
PDF Generator
Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.
{
"timestamp": 1700000000000,
"apiStatus": "failure",
"apiCode": 400,
"message": "INVALID_URL",
"details": "The URL must be a valid HTTP or HTTPS URL."
}
{
"timestamp": 1700000000000,
"apiStatus": "failure",
"apiCode": 422,
"message": "UNABLE_TO_CONNECT",
"details": "The destination server could not be resolved, refused the connection, timed out, or is redirecting indefinitely."
}
{
"timestamp": 1700000000000,
"apiStatus": "failure",
"apiCode": 500,
"message": "PDF_CONVERSION_FAILED",
"details": "Our PDF conversion service encountered an error while fetching the target URL."
}
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Geekflare","colors":{"primary":"#ff4a00","light":"#ffb40b","dark":"#E84300"},"logo":{"light":"https://mintcdn.com/geekflare/Rk3_luYPhrid9iZy/logo/light.svg?fit=max\u0026auto=format\u0026n=Rk3_luYPhrid9iZy\u0026q=85\u0026s=d5725b578eb75c8f5a31d616040e14b1","dark":"https://mintcdn.com/geekflare/Rk3_luYPhrid9iZy/logo/dark.svg?fit=max\u0026auto=format\u0026n=Rk3_luYPhrid9iZy\u0026q=85\u0026s=67a0553b9c8e40cc08faa61048df0e12"},"favicon":"https://mintcdn.com/geekflare/Rk3_luYPhrid9iZy/favicon.svg?fit=max\u0026auto=format\u0026n=Rk3_luYPhrid9iZy\u0026q=85\u0026s=83b2962435cd7a927ef40fb9bc6b9f5c","navbar":{"links":[],"primary":{"type":"button","label":"Login","href":"https://dash.geekflare.com/"}},"footer":{"socials":{"x":"https://x.com/GeekflareHQ","linkedin":"https://linkedin.com/company/geekflare","youtube":"https://www.youtube.com/c/Geekflare"}},"integrations":{"gtm":{"tagId":"GTM-W23JRWQ"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"geekflare","hasAudioNarration":false,"actualSubdomain":"geekflare","customDomains":["docs.geekflare.com"],"gitSource":{"type":"github","owner":"geekflare","repo":"geekflare_docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb6e2cc702a6503954f3f7","collectionId":"5b63c868-10f4-4fcb-800e-39b550c58a45","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb6e2cc702a6503954f3f7"},"entitlements":{},"buildId":"6adb6e2cc702a6503954f3f7","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Docs","count":56},{"language":"default","tag":"API Reference","count":19},{"language":"default","tag":"Endpoint","count":18},{"language":"default","tag":"MCP Server","count":18},{"language":"default","tag":"Getting started","count":12},{"language":"default","tag":"Quickstarts","count":10},{"language":"default","tag":"Capabilities","count":5},{"language":"default","tag":"Troubleshooting","count":5},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Best Practices","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"logo.css","content":".nav-logo{height:2rem!important}"}],"page":{"pagePath":"endpoint/pdf-generator","slug":"/endpoint/pdf-generator","pageMetadata":{"title":"PDF Generator","openapi":"POST /url2pdf","description":"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.","href":"/endpoint/pdf-generator"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"PDF Generator","openapi":"POST /url2pdf","description":"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.","href":"/endpoint/pdf-generator"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.","operationId":"url2Pdf","parameters":[],"requestBody":"b393ab63-bd6f-49ff-819f-bd0081283eaf","responses":{"200":"b4498149-c059-42cf-9d52-3d2c7eabe872","400":"1a401d51-ba02-4210-974d-1a98d0590d9e","422":"73f76acb-68f8-43e3-be89-9e55071d4ef0","500":"9507ba2e-5d39-4542-847c-aaa9faa39fa2"},"summary":"Capture a full-page Url2Pdf of a website","tags":["api-tool"],"method":"post","type":"path","servers":["da4cbcfb-baf3-4c2e-ba80-e53f16253f18"],"security":["25028e76-c96c-4917-ba29-891476f7757c"],"path":"/url2pdf","baseUrlOptions":["https://api.geekflare.com"],"title":"Capture a full-page Url2Pdf of a website","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Target URL","example":"https://example.com","isRequired":true,"uniqueKey":"url","typeLabel":"string"},"device":{"type":"string","description":"Device type to emulate. Defaults to desktop.","example":"desktop","enum":["desktop","mobile"],"default":"desktop","uniqueKey":"device","typeLabel":"enum\u003cstring>"},"proxyCountry":{"type":"string","description":"Proxy country code to route the request","example":"us","uniqueKey":"proxyCountry","typeLabel":"string"},"format":{"type":"string","description":"Paper format","example":"a4","enum":["letter","legal","a0","a1","a2","a3","a4","a5","a6"],"default":"a4","uniqueKey":"format","typeLabel":"enum\u003cstring>"},"orientation":{"type":"string","description":"Orientation","example":"portrait","enum":["portrait","landscape"],"default":"portrait","uniqueKey":"orientation","typeLabel":"enum\u003cstring>"},"margin":{"type":"object","description":"Margins in mm","properties":{"top":{"type":"number","description":"Top margin in mm","example":25.4,"uniqueKey":"margin.top","typeLabel":"number"},"bottom":{"type":"number","description":"Bottom margin in mm","example":25.4,"uniqueKey":"margin.bottom","typeLabel":"number"},"right":{"type":"number","description":"Right margin in mm","example":25.4,"uniqueKey":"margin.right","typeLabel":"number"},"left":{"type":"number","description":"Left margin in mm","example":25.4,"uniqueKey":"margin.left","typeLabel":"number"}},"uniqueKey":"margin","typeLabel":"object"},"scale":{"type":"number","description":"Rendering scale between 0–2","example":1.5,"default":1,"uniqueKey":"scale","typeLabel":"number"},"hideCookie":{"type":"boolean","description":"Hide cookie popups","example":false,"default":false,"uniqueKey":"hideCookie","typeLabel":"boolean"},"skipCaptcha":{"type":"boolean","description":"Try to skip captcha","example":false,"default":false,"uniqueKey":"skipCaptcha","typeLabel":"boolean"},"addTimestamp":{"type":"boolean","description":"Add timestamp watermark","example":false,"default":false,"uniqueKey":"addTimestamp","typeLabel":"boolean"}},"required":["url"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"url":"https://example.com","device":"desktop","proxyCountry":"us","format":"a4","orientation":"portrait","margin":{"top":25.4,"bottom":25.4,"right":25.4,"left":25.4},"scale":1.5,"hideCookie":false,"skipCaptcha":false,"addTimestamp":false}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"b4498149-c059-42cf-9d52-3d2c7eabe872":{"description":"Successfully captured Url2Pdf","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"number","description":"Timestamp of the request in milliseconds","example":1788851167291,"isRequired":true,"uniqueKey":"timestamp","typeLabel":"number"},"apiStatus":{"type":"string","description":"API status message","example":"success","enum":["success","failure"],"isRequired":true,"uniqueKey":"apiStatus","typeLabel":"enum\u003cstring>"},"apiCode":{"type":"number","description":"API status code","example":200,"isRequired":true,"uniqueKey":"apiCode","typeLabel":"number"},"meta":{"type":"object","description":"Metadata about the request","required":["url","device","format","orientation","scale","test"],"properties":{"url":{"type":"string","description":"The target URL","example":"https://example.com","isRequired":true,"uniqueKey":"meta.url","typeLabel":"string"},"device":{"type":"string","description":"Device type used","example":"desktop","isRequired":true,"uniqueKey":"meta.device","typeLabel":"string"},"format":{"type":"string","description":"Paper format","example":"letter","isRequired":true,"uniqueKey":"meta.format","typeLabel":"string"},"orientation":{"type":"string","description":"Orientation","example":"landscape","isRequired":true,"uniqueKey":"meta.orientation","typeLabel":"string"},"scale":{"type":"number","description":"Rendering scale","example":1.5,"isRequired":true,"uniqueKey":"meta.scale","typeLabel":"number"},"test":{"type":"object","description":"Test details","required":["id"],"properties":{"id":{"type":"string","description":"Unique test identifier","example":"mxqx9v9y0742lap6altwdteqd28t23nq","isRequired":true,"uniqueKey":"meta.test.id","typeLabel":"string"}},"isRequired":true,"uniqueKey":"meta.test","typeLabel":"object"},"proxyCountry":{"type":"string","description":"Proxy country used, if any","uniqueKey":"meta.proxyCountry","typeLabel":"string"},"margin":{"type":"object","description":"Margins in mm","properties":{"top":{"type":"number","description":"Top margin in mm","example":25.4,"uniqueKey":"meta.margin.top","typeLabel":"number"},"bottom":{"type":"number","description":"Bottom margin in mm","example":25.4,"uniqueKey":"meta.margin.bottom","typeLabel":"number"},"right":{"type":"number","description":"Right margin in mm","example":25.4,"uniqueKey":"meta.margin.right","typeLabel":"number"},"left":{"type":"number","description":"Left margin in mm","example":25.4,"uniqueKey":"meta.margin.left","typeLabel":"number"}},"uniqueKey":"meta.margin","typeLabel":"object"}},"isRequired":true,"uniqueKey":"meta","typeLabel":"object"},"data":{"type":"string","description":"Generated PDF URL","example":"https://api-assets.example.com/tests/pdf/o5jiqf08bmp93jsll7vb24vs.pdf","isRequired":true,"uniqueKey":"data","typeLabel":"string"}},"required":["timestamp","apiStatus","apiCode","meta","data"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"timestamp":1788851167291,"apiStatus":"success","apiCode":200,"meta":{"url":"https://example.com","device":"desktop","format":"letter","orientation":"landscape","scale":1.5,"test":{"id":"mxqx9v9y0742lap6altwdteqd28t23nq"},"proxyCountry":"\u003cstring>","margin":{"top":25.4,"bottom":25.4,"right":25.4,"left":25.4}},"data":"https://api-assets.example.com/tests/pdf/o5jiqf08bmp93jsll7vb24vs.pdf"}}},"exampleType":"generated"}},"exampleType":"generated"},"1a401d51-ba02-4210-974d-1a98d0590d9e":{"description":"Invalid URL.","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"number","description":"Timestamp of the request in milliseconds","example":1778737930991,"isRequired":true,"uniqueKey":"timestamp","typeLabel":"number"},"apiStatus":{"type":"string","description":"API status message","example":"success","enum":["success","failure"],"isRequired":true,"uniqueKey":"apiStatus","typeLabel":"enum\u003cstring>"},"apiCode":{"type":"number","description":"API status code","example":200,"isRequired":true,"uniqueKey":"apiCode","typeLabel":"number"},"message":{"type":"string","description":"Error message","example":"Invalid URL provided","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Detailed error information","example":"The URL must be a valid HTTP or HTTPS URL","uniqueKey":"details","typeLabel":"string"}},"required":["timestamp","apiStatus","apiCode","message"],"uniqueKey":"","typeLabel":"object"},"example":{"timestamp":1700000000000,"apiStatus":"failure","apiCode":400,"message":"INVALID_URL","details":"The URL must be a valid HTTP or HTTPS URL."},"examples":{"Example":{"title":"Example","value":{"timestamp":1700000000000,"apiStatus":"failure","apiCode":400,"message":"INVALID_URL","details":"The URL must be a valid HTTP or HTTPS URL."}}},"exampleType":"examples"}},"exampleType":"examples"},"73f76acb-68f8-43e3-be89-9e55071d4ef0":{"description":"Unable to connect to the target website.","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"number","description":"Timestamp of the request in milliseconds","example":1778737930991,"isRequired":true,"uniqueKey":"timestamp","typeLabel":"number"},"apiStatus":{"type":"string","description":"API status message","example":"success","enum":["success","failure"],"isRequired":true,"uniqueKey":"apiStatus","typeLabel":"enum\u003cstring>"},"apiCode":{"type":"number","description":"API status code","example":200,"isRequired":true,"uniqueKey":"apiCode","typeLabel":"number"},"message":{"type":"string","description":"Error message","example":"Invalid URL provided","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Detailed error information","example":"The URL must be a valid HTTP or HTTPS URL","uniqueKey":"details","typeLabel":"string"}},"required":["timestamp","apiStatus","apiCode","message"],"uniqueKey":"","typeLabel":"object"},"example":{"timestamp":1700000000000,"apiStatus":"failure","apiCode":422,"message":"UNABLE_TO_CONNECT","details":"The destination server could not be resolved, refused the connection, timed out, or is redirecting indefinitely."},"examples":{"Example":{"title":"Example","value":{"timestamp":1700000000000,"apiStatus":"failure","apiCode":422,"message":"UNABLE_TO_CONNECT","details":"The destination server could not be resolved, refused the connection, timed out, or is redirecting indefinitely."}}},"exampleType":"examples"}},"exampleType":"examples"},"9507ba2e-5d39-4542-847c-aaa9faa39fa2":{"description":"PDF conversion failed.","content":{"application/json":{"schema":{"type":"object","properties":{"timestamp":{"type":"number","description":"Timestamp of the request in milliseconds","example":1778737930991,"isRequired":true,"uniqueKey":"timestamp","typeLabel":"number"},"apiStatus":{"type":"string","description":"API status message","example":"success","enum":["success","failure"],"isRequired":true,"uniqueKey":"apiStatus","typeLabel":"enum\u003cstring>"},"apiCode":{"type":"number","description":"API status code","example":200,"isRequired":true,"uniqueKey":"apiCode","typeLabel":"number"},"message":{"type":"string","description":"Error message","example":"Invalid URL provided","isRequired":true,"uniqueKey":"message","typeLabel":"string"},"details":{"type":"string","description":"Detailed error information","example":"The URL must be a valid HTTP or HTTPS URL","uniqueKey":"details","typeLabel":"string"}},"required":["timestamp","apiStatus","apiCode","message"],"uniqueKey":"","typeLabel":"object"},"example":{"timestamp":1700000000000,"apiStatus":"failure","apiCode":500,"message":"PDF_CONVERSION_FAILED","details":"Our PDF conversion service encountered an error while fetching the target URL."},"examples":{"Example":{"title":"Example","value":{"timestamp":1700000000000,"apiStatus":"failure","apiCode":500,"message":"PDF_CONVERSION_FAILED","details":"Our PDF conversion service encountered an error while fetching the target URL."}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"25028e76-c96c-4917-ba29-891476f7757c":{"x-api-key":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key required for all endpoints","scopes":[],"schemeName":"x-api-key"}}},"servers":{"da4cbcfb-baf3-4c2e-ba80-e53f16253f18":{"url":"https://api.geekflare.com"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","description":"API Key required for all endpoints","scopes":[],"schemeName":"x-api-key"},"schema":{"title":"x-api-key","type":"string","description":"API Key required for all endpoints","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"x-api-key","name":"x-api-key"}],"title":"x-api-key"}]},"originalFileLocation":"endpoint/openapi.json"},"subdomain":"geekflare","siteName":"Geekflare","title":"PDF Generator - Geekflare","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-05T14:15:03.425Z","originalFileLocation":"endpoint/pdf-generator.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Geekflare\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"PDF Generator - Geekflare\">\u003cmeta data-mint-head property=\"og:description\" content=\"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Geekflare\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.geekflare.com/endpoint/pdf-generator\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://geekflare.mintlify.app/_mintlify/api/og/v2?division=Endpoint\u0026amp;title=PDF+Generator\u0026amp;description=Convert+any+URL+into+a+downloadable+PDF+document%2C+with+control+over+page+orientation%2C+margins%2C+and+scale.+Useful+for+archiving+pages+or+generating+reports.\u0026amp;theme=58b2f7f54bce3577962fb3f9\u0026amp;signature=1f00a2602f19b2094fa246f23f20adb82ec05493b70fda48a6e7a6b41ac9de01\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"PDF Generator - Geekflare\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://geekflare.mintlify.app/_mintlify/api/og/v2?division=Endpoint\u0026amp;title=PDF+Generator\u0026amp;description=Convert+any+URL+into+a+downloadable+PDF+document%2C+with+control+over+page+orientation%2C+margins%2C+and+scale.+Useful+for+archiving+pages+or+generating+reports.\u0026amp;theme=58b2f7f54bce3577962fb3f9\u0026amp;signature=1f00a2602f19b2094fa246f23f20adb82ec05493b70fda48a6e7a6b41ac9de01\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/geekflare/Eqh5DqgRh3xaID_o/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Geekflare\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ff4a00\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.geekflare.com/endpoint/pdf-generator\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/endpoint/pdf-generator.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.geekflare.com/#organization\",\"name\":\"Geekflare\",\"url\":\"https://docs.geekflare.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/geekflare/Rk3_luYPhrid9iZy/logo/light.svg?fit=max\u0026auto=format\u0026n=Rk3_luYPhrid9iZy\u0026q=85\u0026s=d5725b578eb75c8f5a31d616040e14b1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.geekflare.com#website\",\"name\":\"Geekflare\",\"url\":\"https://docs.geekflare.com\",\"publisher\":{\"@id\":\"https://docs.geekflare.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.geekflare.com/endpoint/pdf-generator#webpage\",\"url\":\"https://docs.geekflare.com/endpoint/pdf-generator\",\"name\":\"PDF Generator\",\"description\":\"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.\",\"dateModified\":\"2026-08-05T14:15:03.425Z\",\"isPartOf\":{\"@id\":\"https://docs.geekflare.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.geekflare.com/endpoint/pdf-generator#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.geekflare.com/endpoint/pdf-generator#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoint\",\"item\":\"https://docs.geekflare.com/endpoint/webscraping\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"PDF Generator\",\"item\":\"https://docs.geekflare.com/endpoint/pdf-generator\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.geekflare.com/endpoint/pdf-generator#apireference\",\"headline\":\"PDF Generator\",\"name\":\"PDF Generator\",\"description\":\"Convert any URL into a downloadable PDF document, with control over page orientation, margins, and scale. Useful for archiving pages or generating reports.\",\"url\":\"https://docs.geekflare.com/endpoint/pdf-generator\",\"mainEntityOfPage\":{\"@id\":\"https://docs.geekflare.com/endpoint/pdf-generator#webpage\"},\"dateModified\":\"2026-08-05T14:15:03.425Z\",\"publisher\":{\"@id\":\"https://docs.geekflare.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.geekflare.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Geekflare\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Geekflare","nav":{"global":{},"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/intro"}]},{"tab":"API Reference","groups":[{"group":"Getting started","pages":[{"title":"Geekflare API Reference","sidebarTitle":"Introduction","href":"/endpoint/reference"}]},{"group":"Endpoint","pages":[{"title":"Web Scraping","openapi":"POST /webscraping","href":"/endpoint/webscraping"},{"title":"Search","openapi":"POST /search","href":"/endpoint/search"},{"title":"Brand","openapi":"POST /brand","href":"/endpoint/brand"},{"title":"Meta Scraping","openapi":"POST /metascraping","href":"/endpoint/metascraping"},{"title":"Screenshot","openapi":"POST /screenshot","href":"/endpoint/screenshot"},{"title":"DNS Records","openapi":"POST /dnsrecord","href":"/endpoint/dns-records"},{"title":"Broken Link Checker","openapi":"POST /brokenlink","href":"/endpoint/broken-link"},{"title":"Mixed Content","openapi":"POST /mixedcontent","href":"/endpoint/mixed-content"},{"title":"Lighthouse","openapi":"POST /lighthouse","href":"/endpoint/lighthouse"},{"title":"Load Time","openapi":"POST /loadtime","href":"/endpoint/load-time"},{"title":"Site Status","openapi":"POST /up","href":"/endpoint/site-status"},{"title":"DNSSEC","openapi":"POST /dnssec","href":"/endpoint/dnssec"},{"title":"MTR","openapi":"POST /mtr","href":"/endpoint/mtr"},{"title":"Ping","openapi":"POST /ping","href":"/endpoint/ping"},{"title":"TLS Scan","openapi":"POST /tlsscan","href":"/endpoint/tls-scan"},{"title":"Port Scanner","openapi":"POST /openport","href":"/endpoint/port-scanner"},{"title":"URL Redirection Checker","openapi":"POST /redirectcheck","description":"Trace the full redirect chain of a URL, including every intermediate hop, status code, and the final destination. Useful for auditing SEO redirects and link rot.","href":"/endpoint/url-redirect"},{"title":"PDF Generator","openapi":"POST /url2pdf","href":"/endpoint/pdf-generator"}]}]},{"tab":"Playground","icon":"square-terminal","href":"https://dash.geekflare.com/playground"}]},"basePath":"","title":"PDF Generator - Geekflare","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","Page-Buji1S4J.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}