Document & Media Generation Tool

The PDF Generator Tool

Turn HTML or Markdown into a polished, paginated PDF with custom styling and page size — the fixed-format deliverable agents produce for reports, statements, and anything that has to look the same everywhere, on infrastructure you control.

Explore VDF AI Agents
HTML+MDTwo input formats
StyledCustom CSS and page size
FixedLooks identical everywhere
100%On-prem generation
The Fixed-Format Problem

Some documents have to look the same for everyone

Reports, statements, certificates, and contracts need a fixed, paginated layout that renders identically on every screen and printer. HTML reflows; a chat message can’t be signed or filed. You need a PDF.

01

Reflow breaks layout

HTML and docs render differently depending on the viewer.

02

No pagination

Fixed-format documents need real pages and margins.

03

Manual export

Turning content into a styled PDF by hand is fiddly.

04

Sensitive content

Generating PDFs from confidential data can’t leak it.

How the Tool Works

Content in, polished PDF out

Input

HTML or Markdown

Whatever the agent produced.

The tool accepts HTML for full styling control or Markdown for simplicity, so an agent can hand off content in the form that fits and get a PDF back.

  • HTML or Markdown input
  • Custom CSS styling
  • A4, Letter, or Legal
  • Configurable margins
2
Inputs

HTML or Markdown

HTMLMarkdownCSSPages

Output

Paginated and fixed

Identical everywhere.

The result is a properly paginated PDF with title, page size, and margins — a fixed-format document that looks the same on every screen and prints correctly every time.

PDF
Fixed Format

Print-ready

PaginatedTitlePrintConsistent

Governance

On-premise generation

Content stays internal.

PDFs are generated inside your perimeter with audit logging, so even confidential statements and reports become files without leaving your environment.

100%
On-Prem

Private, logged

On-premPrivateAudit logRBAC
Inputs

Parameters

The pdf_generate tool accepts these inputs when an agent calls it. Required inputs are flagged.

Name Type Required Description
content string Required HTML or Markdown content to convert to PDF.
filename string Required Output filename (without extension).
user_id integer Required User ID owning the document.
content_type string
default: html
Optional Input content type. htmlmarkdown
title string Optional Document title (for the header).
page_size string
default: A4
Optional Page size. A4LetterLegal
margin string
default: 2cm
Optional Page margin in CSS format.
Where it pays back

Where PDF generation pays back

Reports

Produce a paginated PDF report from an analysis.

Statements

Generate customer statements with a fixed layout.

Compliance docs

Create audit-ready PDFs from agent output.

Certificates

Issue certificates that render identically everywhere.

Proposals

Turn a draft into a polished, sendable proposal.

Network output

Let a network deliver a finished PDF as its result.

How VDF AI connects it

Assigned to agents, orchestrated as networks

On VDF AI, an industry’s use cases map to agents, and you assign tools like this one to those agents. Compose multiple agents into a governed, on-premise network.

ROI Snapshot

What changes after you assign it

Print-ready
Paginated, fixed-format output
Consistent
Identical on every viewer
Zero
Manual PDF export
100%
Generated on-prem
FAQ

Questions about the PDF Generator tool

What does the PDF generator do?

It converts HTML or Markdown into a polished, paginated PDF with custom styling, page size, and margins — the fixed-format deliverable for reports, statements, and anything that must look the same everywhere.

Does it accept HTML and Markdown?

Yes. Use HTML for full styling control or Markdown for simplicity, selected via the content_type parameter.

Can I control the page layout?

Yes. Set page_size (A4, Letter, or Legal), margin, and a title for the header to control the document’s layout.

Is content kept private?

Yes. PDFs are generated on-premise with audit logging, so confidential content never leaves your environment.

How is it used by agents?

It is the fixed-format delivery step for reporting, finance, and compliance agents, often alongside the document and spreadsheet generators.

Deliver print-ready PDFs from agent output

See the PDF generator turn an agent’s report into a fixed-format document — on infrastructure you control.