Optimize HTML for PDF with print CSS: @page rules, @page :first margins, page breaks, running headers/footers, font embedding, and absolute units.