Time to complete: ~10 minutes
What you’ll build
You’ll learn how to:- Upload a PDF file with addresses already in it
- Split one PDF into multiple letters automatically
- Remove specific letters based on phrases
- Send bulk mail from a single file
Prerequisites
1
API Key
Create an API key in your Intelliprint dashboard.
2
Prepare your PDF
You’ll need a PDF file with addresses already positioned where they should appear on each letter.
Scenario 1: Single Letter PDF
Send a single-page or multi-page letter from a PDF file.Enable Double-Sided Printing
Save costs by printing on both sides of the paper:Cost savings: Double-sided printing reduces the number of physical sheets. For example, a 4-page PDF becomes 2 sheets instead of 4, reducing your costs.Learn more about double-sided printing →
Scenario 2: Split by Phrase
Split one PDF into multiple letters by searching for a phrase (like “Dear”) at the start of each letter.How it works: Intelliprint scans each page for the phrase. When found, it starts a new letter from that page. The phrase should appear once on the first page of each letter.
Scenario 3: Split by Page Count
Split based on a fixed number of pages per letter (e.g., every 2 pages = 1 letter).Scenario 4: Remove Specific Letters
Remove letters containing a specific phrase (e.g., “EMAIL ONLY”).Using Remote URLs
Instead of uploading files, you can provide a URL:Using Base64 Encoded Files
For programmatically generated PDFs, you can send Base64 encoded data:Splitting Methods Comparison
| Method | When to Use | Parameters |
|---|---|---|
none | Single letter PDF | None (default) |
split_on_phrase | Multiple letters with a common phrase | phrase - text to search for |
split_on_pages | Fixed page count per letter | pages - pages per letter |
mailing_list | PDF template + recipient list | mailing_list - list ID |
Tips for Success
Address positioning
Address positioning
Make sure addresses in your PDF are positioned where they’ll show through the envelope window. Standard position is:
- Left window: 20mm from left, 45mm from top
- Right window: 90mm from left, 45mm from top
Phrase splitting tips
Phrase splitting tips
- The phrase should appear exactly once on the first page of each letter
- Phrases are case-sensitive
- Use unique phrases like “SPLIT_HERE” to avoid false matches
- White text on white background hides the phrase from recipients
Supported file formats
Supported file formats
- PDF (recommended)
- Microsoft Word (.docx)
- RTF (.rtf)
- Images (JPG, PNG) for single pages
File size limits
File size limits
- Maximum file size: 50MB
- Maximum pages: 1000 pages per print job
- Large files may take longer to process

