If you need to automate PDF production (e.g., for a website or report), use a stack like HTML + CSS + WeasyPrint WeasyPrint
Khmer requires complex text layout (OpenType features). Use these fonts: linux khmer pdf