Marketing
Invitation PDF generator
An elegant event invitation with date, venue and RSVP — personalize and send one to every guest.
Send a refined invitation to every guest without laying out each one. Pass the event title, host, date, time, venue and RSVP line, and PDFgen returns an elegant invitation PDF ready to email or print.
Personalise and generate one per guest from a single template, so even a large guest list is one API call per invite.
Generate a Invitation PDF via the API
POST your data to /api/v1/generate and get a PDF back. Copy-paste an example, swap in your API key, and loop over a list to render thousands — one invitation per record.
curl -X POST https://pdfgen.com/api/v1/generate \-H "Authorization: Bearer pdfg_live_xxx" \-H "Content-Type: application/json" \-d '{"html": "<div style=\"padding:28px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:#111827;\">\n <div style=\"max-width:460px;margin:0 auto;border:1px solid #e5e7eb;border-radius:8px;background:#fffdf7;padding:48px 40px;text-align:center;box-shadow:0 10px 30px rgba(0,0,0,.08);\">\n <p style=\"font-size:12px;letter-spacing:4px;text-transform:uppercase;color:#b45309;margin:0;\">You'\''re invited</p>\n <div style=\"width:48px;height:2px;background:#d97706;margin:18px auto;\"></div>\n <h1 style=\"font-size:30px;margin:0;font-family:Georgia,serif;color:#111827;\">{{title}}</h1>\n <p style=\"font-size:15px;color:#374151;margin:18px 0 0;line-height:1.6;\">{{host}} requests the pleasure of your company</p>\n <div style=\"margin:28px 0;\">\n <p style=\"font-size:18px;font-weight:700;margin:0;\">{{formatDate date}}</p>\n <p style=\"font-size:14px;color:#6b7280;margin:4px 0 0;\">{{time}} · {{venue}}</p>\n </div>\n <p style=\"font-size:13px;color:#9ca3af;margin:0;\">{{rsvp}}</p>\n </div>\n</div>","engine": "handlebars","format": "A5","data": {"title": "Annual Garden Gala","host": "The Whitmore Foundation","date": "2026-08-22","time": "6:30 PM","venue": "Rosewood Estate, Napa Valley","rsvp": "Kindly RSVP by August 1 to events@whitmore.org"}}' --output invitation.pdf
Working in another language? Follow a full guide for your stack:
What you can build
- Personalised invitations for weddings, galas or launches
- Generating one invite per guest from a guest list
- Branded corporate event or webinar invitations
- Printable invites for direct mail
Frequently asked questions
- Can I personalise each guest’s invitation?
- Yes — include the guest’s name or details in your data and call the API per invite to personalise every PDF.
- Can I add an RSVP link or QR code?
- Yes — put an RSVP URL in the template text, or insert a QR image and pass its value per render.
- Can I match my event branding?
- Edit the template fonts, colours and wording so every invitation matches your event identity.