Practical server-side examples for converting URLs and HTML into PDF files with the html2pdf.app API.
Use cURL to test the HTML to PDF API from a terminal, shell script, CI job, or backend task.
View guidePHPUse PHP and cURL to generate PDFs from Laravel, Symfony, WordPress, or plain PHP backends.
View guideNode.jsUse native fetch in Node.js to create PDFs from API routes, workers, queues, or command line scripts.
View guidePythonUse Python requests to generate PDFs from Django, Flask, FastAPI, notebooks, or batch scripts.
View guideRubyUse Ruby standard library HTTP clients to generate PDFs from Rails, Sidekiq, Rake tasks, or scripts.
View guideJavaUse the Java HttpClient API to generate PDFs from Spring Boot services, jobs, or CLI tools.
View guideC# / .NETUse C# and HttpClient to generate PDFs from ASP.NET Core applications, services, workers, or console apps.
View guideGoUse Go standard library HTTP clients to generate PDFs from services, CLIs, workers, or cron jobs.
View guide