导出代码为document中提供的: outputStream = new FileOutputStream(new File("/root/Desktop/PdfExport")); PDFExporter PdfExport = new PDFExporter(); PdfExport.export(outputStream, workbook.execute(parameterMap)); linux下‘PdfExport’写成‘PdfExport.pdf’则无法打开:File type plain text document (text/plain) is not supported 不加尾名‘.pdf’则可以在linux下打开,拷贝到windows下的话选择应用程序也可以打开。但是格式跟预览的差距很大。主要是缩进问题,还有部分字重叠。 求解,解决办法。请大婶们不要吝啬。 |