PDF使用Itext,HTML转换为PDF,字体设置由原文决定。
html.append("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">");
html.append("<html xmlns=\"http://www.w3.org/1999/xhtml\">");
html.append("<head>");
html.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />");
html.append("<style type=\"text/css\" media=\"print\">");
html.append("body{");
html.append("font-family: SimSun, Arial Unicode MS,Msyh;margin:50px auto;");
<