GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Java/itext-java-pdf-table/src/main/java/com/hmkcode/App.java at master · vaellys/Java Expand file tree/ Copy pathApp.javaMore file actions 34 lines (25 loc) · 815 Bytes / Copy pathApp.javaFile metadata and controls34 lines (25 loc) · 815 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 package com.hmkcode; import java.io.FileNotFoundException; import java.io.FileOutputStream; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.PageSize; import com.itextpdf.text.pdf.PdfWriter; public class App { public static void main( String[] args ) throws FileNotFoundException, DocumentException { // step 1 Document document = new Document(); document.setPageSize(PageSize.A4); // step 2 PdfWriter.getInstance(document, new FileOutputStream("pdf.pdf")); // step 3 document.open(); // step 4 create PDF contents document.add(TableBuilder.createTable()); //step 5 document.close(); System.out.println( "PDF Created!" ); } } |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |