| | |
| | | @Test |
| | | public void test(){ |
| | | ApproveTableService s = new ApproveTableService(); |
| | | /* |
| | | try { |
| | | BaseFont bfChinese = s.getBaseFont(); |
| | | |
| | | |
| | | Document document = new Document(PageSize.B5.rotate()); |
| | | |
| | | String filename = "d:/t"+System.currentTimeMillis()+".pdf"; |
| | | String filename = "t"+System.currentTimeMillis()+".pdf"; |
| | | File pdf = new File(filename); |
| | | if(pdf.exists()){ |
| | | pdf.delete(); |
| | |
| | | |
| | | startCal.add(Calendar.DAY_OF_MONTH, 2); |
| | | appInfo.setApproveDate(startCal.getTime()); |
| | | s.printPage(document,bfChinese,props,machine,1,appInfo); |
| | | |
| | | |
| | | document.close(); |
| | | } catch (Exception e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | |
| | | */ |
| | | } |
| | | } |