Khổ giấy và hướng giấy được cấu hình trong CSS của HTML template qua rule @page. Ví dụ: size: A4 landscape;
@page
size: A4 landscape;