OptionalasyncSet to true for long processes to run in the background, API will then return a jobId which you can use with JobCheck endpoint to check the status of the process and retrieve the output while you can proceed with other tasks without waiting for this process to finish.
OptionalexpirationSet the expiration time for the output link in minutes (default is 60 i.e 60 minutes or 1 hour), After this specified duration, any generated output file(s) will be automatically deleted from PDF.co temporary files storage. The maximum duration for link expiration varies based on your current subscription plan.
OptionalfooterSet to HTML for footer to be applied on every page at the bottom.
OptionalheaderSet to HTML for header to be applied on every page at the header.
Input HTML code to be converted.
OptionalmarginsOverride default margins with custom values (the order is top right bottom left). You can als set all margins: 10px, 5mm, 5in for all sides.
OptionalnameBase file name for new PDF files.
OptionalorientationPDF page orientation.
OptionalpaperSelect PDF paper size. Can be Letter, Legal, Tabloid, Ledger, A0, A1, A2, A3, A4, A5, A6 or a custom size. Custom size can be set in px (pixels), mm or in (inches) with width and height separated by space like this: 200 300, 200px 300px, 200mm 300mm, 20cm 30cm or 6in 8in.
OptionalprintEnable or disable printing of document background
OptionalprofilesThis parameter can be used to set additional configurations for fine-tuning and to enable more options. Visit PDF.co knowledgebase (https://developer.pdf.co/api/profiles/index.html) for profile examples and more.
HTML to PDF