Print a Vietnamese Lunar Calendar 2027
Print-ready Vietnamese lunar calendars as PDF or SVG: wall, desk, 365-page block or one-page year, with holidays, can chi, good hours, logo and bleed.
Result
Press “Run” to see the result.
Generate a calendar for any year 2021–2199 in four layouts: wall (12 month pages), desk (12 landscape pages with an events column), block (one page per day: big solar day, weekday, lunar day and month length, can chi of year / month / day, hoàng đạo hours, solar term, holiday, quote) and year (one page). Lunar dates come from the Vietnamese calendar at UTC+7 (Hồ Ngọc Đức's algorithm used by /v1/lunar-calendar): Tết Đinh Mùi is 06/02/2027 and the 12th month of Bính Ngọ has 29 days. Days off come from /v1/vn-holidays, hoàng đạo / hắc đạo from /v1/vn-good-days.
Options: size (a2, a3, a4, a5, a6, 13x19, 19x27, 10x15, letter or width_mm + height_mm), orientation, bleed_mm (0–10, with crop marks and PDF TrimBox / BleedBox), theme color, company name, logo (PNG / JPEG), company_holidays, quotes (one per month or day), week_start (monday or sunday) and a month range. format=pdf (default, Be Vietnam Pro embedded), svg (one page: page or date) or json (the day data used for the layout).
A full 365-page block calendar renders in about a second. Colours are RGB; ask your printer to convert to CMYK.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/vn-calendar-print" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"year":2027,"format":"json","from_month":2,"to_month":2}'const res = await fetch('https://apibox.io.vn/v1/vn-calendar-print', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"year": 2027,
"format": "json",
"from_month": 2,
"to_month": 2
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/vn-calendar-print",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"year": 2027, "format": "json", "from_month": 2, "to_month": 2},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/vn-calendar-print');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"year":2027,"format":"json","from_month":2,"to_month":2}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
Why not use a Chinese lunar calendar library?
Vietnam uses UTC+7, so some new moons fall on a different day than in China (UTC+8) and some months and even Tết can differ. This API computes the Vietnamese calendar.
Can I add my own days off and quotes?
Yes: company_holidays as [{ "date", "name" }] are printed in red, and quotes are spread over the months (wall, desk) or days (block).
Is the PDF ready for professional printing?
Set bleed_mm (usually 3) to get the bleed, crop marks and TrimBox / BleedBox. Colours are RGB; most print shops convert them to CMYK.