Non-Latin documents · Foxit PDF Services
Thai certificates that print right, built on Foxit
I run one-day AI hackathons in rural Thai public schools. Every event needs a personalised Thai certificate for each student, a letter signed by the principal and a public Hall of Fame. I'm building that pipeline on Foxit APIs, and writing the guide to non-Latin documents that Foxit developers don't have yet.
Live demo
Type a name, get a print-ready PDF
This page calls the same four Foxit PDF Services steps as the batch script: upload, HTML-to-PDF, poll, download. One certificate takes about 15 seconds.
What I found
Same Thai text, same font, three Foxit routes
Before proposing anything, I ran certificate text through Foxit three ways on my own account. The font is Kanit (Google Fonts, SIL Open Font License) every time.

Document Generation, Word template
The API reports success and returns a PDF, but every Thai character is missing. The server has no Thai font and falls back without a warning. 0.9 s.

Document Generation, font embedded in the .docx
Embedding the font (Word's “Embed fonts in the file”) brings the glyphs back and the merge tags work, but vowel and tone marks land in the wrong place and copied text comes out scrambled. 1.0 s.

PDF Services, HTML-to-PDF with the font as @font-face
Marks sit where they belong, and the text copies and searches as real Thai. This is the route the pipeline uses today. About 13 s, because conversion is asynchronous.
End to end
One school, one print-ready file
Six certificates in about 50 seconds end to end, each at full A4 landscape size. Foxit's HTML renderer fits pages to A4 portrait, so the template lays the certificate on a portrait sheet turned 90° and the PDF marks the page /Rotate 270: one of the practical tips the article will cover.
The project
What I'll build and publish with Foxit
PDF Services
Render each certificate from HTML, merge a school's batch with pdf-combine and shrink it with pdf-compress.
Working now, on this pageDocument Generation
Thai Word templates for the principal's letter: font embedding, Thai numerals and the official TH Sarabun font, with a shaping test kit.
Tested, results aboveeSign
The principal signs the school's letter and certificate batch online.
Used in my API World project, GotPaidPDF Embed
A public Hall of Fame page where families open their child's certificate.
PlannedMCP Server
An AI agent runs the whole batch from one prompt: “make the certificates for today's school”.
PlannedReal users
Real certificates for real students at upcoming APEX events, with consent. The public repo uses fictional names.
After the buildAbout me
Thanawin Padsamran
Computer engineer and founder of Harvest Hub Innovations Co., Ltd. in Thailand.
- APEX Mini AI Hackathon: 3 events in 4 rural public schools in September 2026, with more than 100 students and 40+ teams building working apps in Thai.
- Two awards at the 2026 ASEAN-Oriented “AI+Cross-Border E-commerce” Innovation Application Competition in Nanning, China, for LaungPro.
- Built GotPaid at DevNetwork API World 2026 with Foxit PDF Services and eSign.
thanawin@harvesthubs.app · github.com/thanawinhvh · thanawin.dev