Fill PDF Templates with Dynamic Data
The Template Problem
You have a PDF template with placeholders like {NAME} and {DATE}. You need to fill thousands of them with different data. What happens when "Alice" fits but "Dr. Alexandria Konstantinopolis-Smith" doesn't? And what about subsetted fonts that are missing the glyphs you need?
Template API with Reflow Control
- Find and replace placeholders anywhere in your PDF -
{NAME},%NAME%, or any pattern you use - Register your own fonts to avoid subsetted font issues - replacement text uses the font you specify
- Choose how replacement text is laid out: SOURCE_ANCHORED, REFLOW_WHEN_SUPPORTED, or REQUIRE_REFLOW
- Replace text or images - swap placeholders for dynamic content of any type
- Process thousands of documents in batch with the same template
Source PDF
Saved PDF
API Calls
Simple Template API
Works instantly in guest mode - no API key required.
Why It Works
- Any placeholder syntax:
{NAME},%NAME%,[NAME]- use whatever convention your templates already have - Font registration: Register your own fonts to avoid subsetted font issues - full glyph coverage for any replacement text
- Layout control: SOURCE_ANCHORED retains the source position, REFLOW_WHEN_SUPPORTED permits fallback, and REQUIRE_REFLOW rejects unsupported targets
- Text and image replacement: Replace placeholders with text or swap images dynamically
- Batch processing: Same API works for one document or thousands
Available SDKs
- Python — pip install pdfdancer-client-python==3.0.2
- Node.js / TypeScript — npm install pdfdancer-client-typescript@3.0.1
- Java — Maven / Gradle
Related Topics
Text Replacement
Edit text inside PDFs directly, with automatic paragraph reflow and font preservation
Batch Processing
Process thousands of PDFs in parallel with the same template
PDF Generation
Create PDFs from scratch with layouts, text, and images
Start Using PDFDancer Today
Get started in seconds with our free tier. No credit card required.