/ Published in: Java
                    
                                        
Creates a new PDF Document with a single page, sets the author and then saves.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
/**
* @param args the command line arguments
* @throws java.io.IOException
*/
PDDocument document = new PDDocument();
PDPage blankPage = new PDPage();
document.addPage(blankPage);
PDDocumentInformation info = document.getDocumentInformation();
info.setAuthor("Mark");
document.save("");
document.close();
}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                