PDF Generator SDK

Generate PDF from HTML, DOCX, and Excel

Easily create professional PDFs with our JavaScript PDF generator. Whether you’re working with HTML templates, DOCX forms, or Excel spreadsheets, our SDK provides the tools to streamline your workflows and integrate seamlessly into your app.

How it works

JS HTML to PDF

Generate PDF from HTML templates with our advanced HTML-to-PDF JavaScript solution. Powered by Nutrient Document Engine, this seamless integration transforms your web and server apps into robust PDF generation tools — perfect for creating dynamic documents and interactive forms from HTML layouts.

Create HTML page

Design your page using standard HTML and CSS to define the layout.

Define properties

Use JSON to specify page sizes, margins, and other settings.

Generate a PDF

Send your data and commands via JSON, and preview the generated PDF output in real time.

Convert DOCX to PDF with JSON data

Transform DOCX templates into dynamic documents by merging data effortlessly.

Prepare the DOCX template

Create a DOCX file with placeholders and loops where you want custom data.

Customize with conditionals

Prepare the template to dynamically insert and format data based on conditions you determine

Populate with JSON

Use a simple API call to inject your JSON data into the template, generating a completed Word or PDF document.

KEY FEATURES

Generate dynamic documents

Unlock the power of automated document generation, whether with HTML or DOCX templates, to streamline your document creation workflows.

Dynamic document generation

Design your layouts using modern CSS and HTML templates, or work with DOCX files. Your chosen format is reflected directly in the resulting PDFs or Word files.

Design your layouts using modern CSS and HTML templates, or work with DOCX files. Your chosen format is reflected directly in the resulting PDFs or Word files.

HTML-to-PDF JavaScript conversion

Automatically populate your HTML forms with dynamic data from JSON, simplifying the process of generating personalized documents.

Automatically populate your HTML forms with dynamic data from JSON, simplifying the process of generating personalized documents.

Word-to-PDF JavaScript integration

Seamlessly convert Word (DOCX) to PDF, with support for dynamic data population via JSON.

Seamlessly convert Word (DOCX) to PDF, with support for dynamic data population via JSON.

JS Excel-to-PDF conversion

Convert Excel spreadsheets into high-quality PDFs directly from your JavaScript app. Maintain tables, formatting, and formulas in the generated file, ensuring data accuracy and professional presentation.

Convert Excel spreadsheets into high-quality PDFs directly from your JavaScript app. Maintain tables, formatting, and formulas in the generated file, ensuring data accuracy and professional presentation.

Modern UI

Effortlessly view your generated documents in the browser without managing file types or cluttered system folders. Access PDFs and Word files instantly.

Effortlessly view your generated documents in the browser without managing file types or cluttered system folders. Access PDFs and Word files instantly.

Headers and Footers

Add dynamic headers and footers to your PDFs, customizing them with page numbers, total pages, or images using our flexible template API.

Add dynamic headers and footers to your PDFs, customizing them with page numbers, total pages, or images using our flexible template API.

Benefits

Bright green grass on rock symbolizes simplicity and efficiency, reflecting how our PDF SDK streamlines document manipulation and software development. Years of research and customer collaboration drive innovative solutions, empowering developers to reduce time spent on tasks and stay ahead of the competition.

Accelerate document generation

Convert HTML and DOCX templates into fully rendered PDFs or Word files with our JavaScript PDF generator. Save time, speed up development, and integrate seamlessly into your app.

Bright green grass on rock symbolizes simplicity and efficiency, reflecting how our PDF SDK streamlines document manipulation and software development. Years of research and customer collaboration drive innovative solutions, empowering developers to reduce time spent on tasks and stay ahead of the competition.

Automate data population

Populate forms and templates with dynamic data — no manual entry needed. Inject custom data into HTML forms or DOCX templates via JSON for effortless document generation.

Bright green grass on rock symbolizes simplicity and efficiency, reflecting how our PDF SDK streamlines document manipulation and software development. Years of research and customer collaboration drive innovative solutions, empowering developers to reduce time spent on tasks and stay ahead of the competition.

Streamline user experience

Let users generate and view documents instantly in the browser. With customizable headers and footers and real-time access to PDFs and Word files, users can create seamless, modern workflows.

Knowledge center