Commit dcfe1d57 by Java-李昕颖

小bug

parent 3b7577ec
......@@ -54,8 +54,8 @@ public class ReportToPdfController extends BaseController {
Font textfont = new Font(bfChinese,14,Font.NORMAL);//正常文字
Font urlfont = new Font(bfChinese,12,Font.NORMAL);//路径文字
//document是创建的文档,FileOutputStream是向文档中输入
//PdfWriter.getInstance(document, new FileOutputStream(GConstants.FILE_UPLOAD_DIR+"pdf/"+reportEntity.getReportProject()+"_"+reportEntity.getId()+".pdf"));
PdfWriter.getInstance(document, new FileOutputStream("E:/1.pdf"));
PdfWriter.getInstance(document, new FileOutputStream(GConstants.FILE_UPLOAD_DIR+"pdf/"+reportEntity.getReportProject()+"_"+reportEntity.getId()+".pdf"));
// PdfWriter.getInstance(document, new FileOutputStream("E:/1.pdf"));
//打开文档
document.open();
Paragraph pt1 = new Paragraph("举报内容",title);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment