importjava.io.IOException;importorg.apache.pdfbox.pdmodel.PDDocument;importorg.apache.pdfbox.pdmodel.PDPage;publicclassCreatingEmptyPdf{publicstaticvoidmain(String args[])throwsIOException{//Creating PDF document object PDDocument document =newPDDocument();//Add an empty page to it
document.addPage(newPDPage());//Saving the document
document.save("C:/pdfBox/BlankPdf.pdf");System.out.println("PDF created");//Closing the document
document.close();}}