public static void ConvertToPdf() { string name = "convertToPdf.docx"; string password = null; string folder = "input"; string storage = null; string destFilePath = "output/convertToPdf_out.pdf";; var privateFonts = new List <PrivateFont>(); privateFonts.Add(new PrivateFont("黑体", "input/simhei.ttf", true)); privateFonts.Add(new PrivateFont("consola", "input/consola.ttf", true)); convertApi.ConvertToPdf(name, destFilePath, password, folder, storage, privateFonts); }