Web Page to PDF APIThis API converts any web page into a PDF file as it appears in a Google Chrome browser. It offers two modes:
Print Mode (print=true)Generates a printer-friendly PDF using Chrome’s print feature. Text remains selectable, and graphics are vector-based. Options include:
grayscale=true for black-and-white output.
grayscale=true
pagesize parameter (A4 default, supports A3, B4, Letter, etc.).
pagesize
Basic authentication using username and password.
username
password
Screenshot Mode (print=false)Captures a full-page Chrome screenshot and converts it to PDF for pages not optimized for printing. Features:
Full-page screenshot (up to 10,000px height).
Default resolution: 1400×1080.
Adjustable wait time with timeout (max 15s).
timeout
More details ref the document below;
https://apilayer.com/marketplace/url_to_pdf-api?txn=free&live_demo=show
Set side properties your Apikey in WebpagetoPDFAPI module
Note: API Paid service Free trail some limitation. Get your Apikey https://apilayer.com/account