Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Creating PDF document object
- PDDocument document = new PDDocument();
- for (int i=0; i<10; i++) {
- //Creating a blank page
- PDPage blankPage = new PDPage();
- //Adding the blank page to the document
- document.addPage( blankPage );
- }
- //Saving the document
- document.save("C:/PdfBox_Examples/my_doc.pdf");
- System.out.println("PDF created");
- //Closing the document
- document.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement