IText pdf 生成

 

itextpdf-5.2.1.jar 

iText-2.1.7.jar
iText-rtf-2.1.7.jar
iTextAsian.ja 

 

 

生成 pdf

//Step 1—Create a Document.  
Document document = new Document();  
//Step 2—Get a PdfWriter instance.  
PdfWriter.getInstance(document, new FileOutputStream(FILE_DIR + "createSamplePDF.pdf"));  
//Step 3—Open the Document.  
document.open();  
//Step 4—Add content.  
document.add(new Paragraph("Hello World"));  
//Step 5—Close the Document.  
document.close();  

详细 资料 http://rensanning.iteye.com/blog/1538689 

 

 

 
IText pdf 生成_第1张图片
 

 

你可能感兴趣的:(生成,pdf,itext)