else if("Html2Pdf".equalsIgnoreCase(action)){
exportPdfFile("http://localhost:8080/jsp/test.jsp");
return null;
}
// 导出pdf add by huangt 2012.6.1
public File exportPdfFile(String urlStr) throws BaseException {
// String outputFile = this.fileRoot + "/" +
// ServiceConstants.DIR_PUBINFO_EXPORT + "/" + getFileName() + ".pdf";
String outputFile = "d:/test3.pdf";
OutputStream os;
try {
os = new FileOutputStream(outputFile);
ITextRenderer renderer = new ITextRenderer();
String str = getHtmlFile(urlStr);
renderer.setDocumentFromString(str);
ITextFontResolver fontResolver = renderer.getFontResolver();
fontResolver.addFont("C:/WINDOWS/Fonts/SimSun.ttc",BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED);