Author: msahyoun Date: Tue Nov 4 15:18:39 2014 New Revision: 1636602 URL: http://svn.apache.org/r1636602 Log: Revert fenced code blocks.
Modified: pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext Modified: pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext URL: http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext?rev=1636602&r1=1636601&r2=1636602&view=diff ============================================================================== --- pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext (original) +++ pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext Tue Nov 4 15:18:39 2014 @@ -6,21 +6,20 @@ Title: Cookbook - Document Creation This small sample shows how to create a new PDF document using PDFBox. -````java -// Create a new empty document -PDDocument document = new PDDocument(); + :::java + // Create a new empty document + PDDocument document = new PDDocument(); -// Create a new blank page and add it to the document -PDPage blankPage = new PDPage(); -document.addPage( blankPage ); + // Create a new blank page and add it to the document + PDPage blankPage = new PDPage(); + document.addPage( blankPage ); -// Save the newly created document -document.save("BlankPage.pdf"); + // Save the newly created document + document.save("BlankPage.pdf"); -// finally make sure that the document is properly -// closed. -document.close(); -```` + // finally make sure that the document is properly + // closed. + document.close(); ### Hello World using a PDF base font