Skip to content

picassopdf/html-to-pdf-picassopdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 

Repository files navigation

PicassoPDF — HTML to PDF API GitHub

PicassoPDF License npm

Generate PDF Masterpieces, Instantly — Contracts, Reports, Invoices, Statements & More


🚀 Features

  • Convert HTML or URLs to PDF programmatically
  • Batch HTML-to-PDF API for high-volume document generation
  • PDF generator for developers with REST API & SDK support
  • Multi-language support: Node.js, Python, PHP, Java, C#
  • Secure PDF generation API for compliance-friendly documents
  • Generate invoices, receipts, bank statements, and medical reports
  • Lightweight, fast, and easy to integrate into SaaS, fintech, and healthtech workflows

🔑 Use Cases

  • Invoice PDF generator API – automate invoices for SaaS & eCommerce
  • Receipt PDF generator – generate receipts for online payments
  • Financial report PDF API – convert bank statements & accounting data
  • Medical report PDF generator – export patient records securely
  • Compliance PDF generator – generate audit-ready PDFs
  • Document automation PDF API – integrate PDF generation into workflows

⚡ Installation + HTML to PDF GitHub Examples

For batch conversions simply pass an array with urls strings inside

**Node.js HTML to PDF:** # Install npm install picassopdf const PicassoPDF = require('picassopdf'); const pdf = new PicassoPDF(); // Single URL pdf.convert('https://example.com') .toPDF('output.pdf') .then(() => console.log('PDF generated!')) .catch(err => console.error(err)); // Batch URLs const urls = ['https://example.com/page1', 'https://example.com/page2']; pdf.convertBatch(urls).toPDFs('outputs/') .then(() => console.log('Batch PDFs generated!')) .catch(err => console.error(err));
**Python HTML to PDF:** # Install pip install picassopdf from picassopdf import PicassoPDF pdf = PicassoPDF() # Single URL pdf.convert("https://example.com").to_pdf("output.pdf") # Batch URLs urls = ["https://example.com/page1", "https://example.com/page2"] pdf.convert_batch(urls).to_pdfs("outputs/")
**Java HTML to PDF:** import com.picassopdf.PicassoPDF; public class PdfExample { public static void main(String[] args) { PicassoPDF pdf = new PicassoPDF(); try { // Single URL pdf.convert("https://example.com").toPDF("output.pdf"); System.out.println("PDF generated!"); // Batch URLs String[] urls = {"https://example.com/page1", "https://example.com/page2"}; pdf.convertBatch(urls).toPDFs("outputs/"); System.out.println("Batch PDFs generated!"); } catch (Exception e) { e.printStackTrace(); } } }
**C# HTML to PDF:** using PicassoPDF; class Program { static void Main() { var pdf = new PicassoPDF.PicassoPDF(); try { // Single URL pdf.Convert("https://example.com").ToPDF("output.pdf"); Console.WriteLine("PDF generated!"); // Batch URLs string[] urls = { "https://example.com/page1", "https://example.com/page2" }; pdf.ConvertBatch(urls).ToPDFs("outputs/"); Console.WriteLine("Batch PDFs generated!"); } catch (Exception ex) { Console.WriteLine(ex.Message); } } }
**PHP HTML to PDF:** <?php require 'vendor/autoload.php'; use PicassoPDF\PicassoPDF; $pdf = new PicassoPDF(); try { // Single URL $pdf->convert("https://example.com")->toPDF("output.pdf"); echo "PDF generated!\n"; // Batch URLs $urls = ["https://example.com/page1", "https://example.com/page2"]; $pdf->convertBatch($urls)->toPDFs("outputs/"); echo "Batch PDFs generated!\n"; } catch (Exception $e) { echo "Error: " . $e->getMessage(); } ?>

📄 Documentation


🌐 Supported Platforms & Languages

  • Node.js / JavaScript
  • Python
  • PHP
  • Java
  • C#
  • REST API (platform-agnostic)

💡 Why Choose PicassoPDF?

  • Designed for developers needing high-quality, programmatic PDF generation
  • Optimized for batch PDF processing
  • Supports HTML, CSS, JS rendering in PDFs
  • Perfect for SaaS, fintech, and healthtech applications
  • Lightweight, fast, secure, and reliable
  • Free plan available

📝 License

MIT License © 2025 PicassoPDF