Revision: 72623
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 27, 2017 17:58 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 blankPage = new PDPage();
document.addPage(blankPage);
PDDocumentInformation info = document.getDocumentInformation();
info.setAuthor("Mark");
document.save("");
document.close();
}
Initial URL
Initial Description
Creates a new PDF Document with a single page, sets the author and then saves.
Initial Title
PDFBox: Add author to PDF Document
Initial Tags
Initial Language
Java