Return to Snippet

Revision: 72619
at September 27, 2017 17:43 by markt22


Updated Code
/**
 * @param args the command line arguments
 * @throws java.io.IOException
 */
public static void main(String[] args) throws IOException {
    PDDocument document = new PDDocument();
    PDPage page = new PDPage(PDRectangle.A4);

    document.addPage(page);

    document.save("");
    document.close();
}

Revision: 72618
at September 27, 2017 17:37 by markt22


Initial Code
/**
 * @param args the command line arguments
 * @throws java.io.IOException
 */
public static void main(String[] args) throws IOException {
    PDDocument document = new PDDocument();
    PDPage page = new PDPage(PDRectangle.A4);

    document.addPage(page);

    document.save("");
}

Initial URL


Initial Description
Creates a new PDF Document with a single A4 page.

Initial Title
PDFBox: Create empty document with single page

Initial Tags


Initial Language
Java