You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2014/11/04 16:16:21 UTC
svn commit: r1636601 -
/pdfbox/cmssite/trunk/content/cookbook/documentcreation.mdtext
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