pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1636601 - /pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext
Date Tue, 04 Nov 2014 15:16:21 GMT
Author: msahyoun
Date: Tue Nov  4 15:16:21 2014
New Revision: 1636601

URL: http://svn.apache.org/r1636601
Log:
Test 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=1636601&r1=1636600&r2=1636601&view=diff
==============================================================================
--- pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext (original)
+++ pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext Tue Nov  4 15:16:21 2014
@@ -6,20 +6,21 @@ 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
 



Mime
View raw message