Index: site/src/site/xdoc/userguide/cookbook/creation.xml
===================================================================
--- site/src/site/xdoc/userguide/cookbook/creation.xml	(revision 926007)
+++ site/src/site/xdoc/userguide/cookbook/creation.xml	(working copy)
@@ -43,7 +43,7 @@
 		document.close();
         </source>
         <p>Full source code at
-        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBlankPDF.java">CreateBlankPDF</a></p>
+        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/CreateBlankPDF.java">CreateBlankPDF</a></p>
         </subsection>
 
 		<subsection name="HelloWorld" id="HelloWorld">    
@@ -80,7 +80,7 @@
 		document.close();
         </source>
         <p>Full source code at
-        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java">HelloWorld</a></p>
+        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java">HelloWorld</a></p>
         </subsection>
 
 		<subsection name="HelloWorldTTF" id="HelloWorldTTF">    
@@ -113,12 +113,121 @@
 		</source>
 		<p>Finally we save the results and ensure that the document is properly closed:</p>
 		<source>
-		document.save( "Hello World.pdf");
+		document.save( "HelloWorld.pdf");
+		document.close();
+        </source>
+        <p>Full source code at
+        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java">HelloWorldTTF</a></p>
+        </subsection>
+        
+        <subsection name="HelloWorldType1AfmPfb" id="HelloWorldType1AfmPfb">    
+        <p>This small sample shows how to create a new document and print the text "Hello World" using a Type 1 font (afm + pfb).</p>
+        <p>First we need a new empty document and add a page to it:</p>
+        <source>
+		document = new PDDocument();
+		PDPage page = new PDPage();
+		document.addPage( page );
+		</source>
+		<p>Next we have to create a new font object loading the Type 1 font into the document:</p>
+		<source>
+		PDFont font = new PDType1AfmPfbFont(document,"MyFont.afm");
+		</source>
+		<p>Next we start a new content stream which will "hold" the to be created content:</p>
+		<source>
+		PDPageContentStream contentStream = new PDPageContentStream(document, page);
+		</source>
+		<p>Next we define a text content stream using the selected font, moving the cursor and drawing the text "Hello World":</p>
+		<source>
+		contentStream.beginText();
+		contentStream.setFont( font, 12 );
+		contentStream.moveTextPositionByAmount( 100, 700 );
+		contentStream.drawString( "Hello World" );
+		contentStream.endText();
+		</source>
+		<p>We <strong>have to</strong> make sure that the content stream is closed:</p>
+		<source>
+		contentStream.close();
+		</source>
+		<p>Finally we save the results and ensure that the document is properly closed:</p>
+		<source>
+		document.save( "HelloWorld.pdf");
 		document.close();
         </source>
         <p>Full source code at
-        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java">HelloWorldTTF</a></p>
+        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorldType1AfmPfb.java">HelloWorldType1AfmPfb</a></p>
         </subsection>
+
+        <subsection name="ImageToPDF" id="ImageToPDF">    
+        <p>This small sample shows how to create a new document and place an image on the page.</p>
+        <p>First we need a new empty document and add a page to it:</p>
+        <source>
+		document = new PDDocument();
+		PDPage page = new PDPage();
+		document.addPage( page );
+		</source>
+		<p>Next we have to create a new image object to reference the image we want to add to the page:</p>
+		<source>
+		PDXObjectImage ximage = null;
+		ximage = new PDJpeg(document, new FileInputStream( "sample.jpg") );
+		</source>
+		<p>Next we start a new content stream which will "hold" the to be created content:</p>
+		<source>
+		PDPageContentStream contentStream = new PDPageContentStream(document, page);
+		</source>
+		<p>Next we define place the image on the page</p>
+		<source>
+		contentStream.drawImage( ximage, 20, 20 );
+		</source>
+		<p>We <strong>have to</strong> make sure that the content stream is closed:</p>
+		<source>
+		contentStream.close();
+		</source>
+		<p>Finally we save the results and ensure that the document is properly closed:</p>
+		<source>
+		document.save( "DocumentWithImage.pdf");
+		document.close();
+        </source>
+        <p>Full source code at
+        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/ImageToPDF.java">ImageToPDF</a></p>
+        </subsection>        
+
+        <subsection name="ShowColorBoxes" id="ShowColorBoxes">    
+        <p>This small sample shows how to paint different rectangles on the page.</p>
+        <p>First we need a new empty document and add a page to it:</p>
+        <source>
+		document = new PDDocument();
+		PDPage page = new PDPage();
+		document.addPage( page );
+		</source>
+		<p>Next we start a new content stream which will "hold" the to be created content:</p>
+		<source>
+		PDPageContentStream contentStream = new PDPageContentStream(doc, page);
+		</source>
+		<p>Next we print two rectangles on the page</p>
+		<source>
+		//first fill the entire background with cyan
+		contentStream.setNonStrokingColor( Color.CYAN );
+		contentStream.fillRect( 0,0, page.findMediaBox().getWidth(), page.findMediaBox().getHeight() );
+
+		//then draw a red box in the lower left hand corner
+		contentStream.setNonStrokingColor( Color.RED );
+		contentStream.fillRect( 10, 10, 100, 100 );
+		</source>
+		<p>We <strong>have to</strong> make sure that the content stream is closed:</p>
+		<source>
+		contentStream.close();
+		</source>
+		<p>Finally we save the results and ensure that the document is properly closed:</p>
+		<source>
+		document.save( "Rectangles.pdf");
+		document.close();
+        </source>
+        <p>Full source code at
+        <a href="http://svn.apache.org/repos/asf/pdfbox/trunk/pdfbox/src/main/java/org/apache/pdfbox/examples/pdmodel/ShowColorBoxes.java">ShowColorBoxes</a></p>
+        </subsection>        
+        
+        
+        
     </section>
   </body>
 </document>
Index: site/src/site/xdoc/userguide/cookbook.xml
===================================================================
--- site/src/site/xdoc/userguide/cookbook.xml	(revision 926007)
+++ site/src/site/xdoc/userguide/cookbook.xml	(working copy)
@@ -52,7 +52,7 @@
 						<td>This small sample shows how to create a new document and print the text "Hello World" using a TrueType Font.</td>
 					</tr>
 					<tr>
-						<td><a href="../apidocs/org/apache/pdfbox/examples/pdmodel/HelloWorldType1AfmPfb.html">HelloWorldType1AfmPfb</a>
+						<td><a href="./cookbook/creation.html#HelloWorldType1AfmPfb">HelloWorldType1AfmPfb</a>
 						</td>
 						<td>This is an example that creates a simple document with a Type 1 font (afm + pfb).</td>
 					</tr>
@@ -57,7 +57,7 @@
 						<td>This is an example that creates a simple document with a Type 1 font (afm + pfb).</td>
 					</tr>
 					<tr>
-						<td><a href="../apidocs/org/apache/pdfbox/examples/pdmodel/ImageToPDF.html">ImageToPDF</a>
+						<td><a href="./cookbook/creation.html#ImageToPDF">ImageToPDF</a>
 						</td>
 						<td>This is an example that creates a simple document from an image.</td>
 					</tr>
@@ -62,7 +62,7 @@
 						<td>This is an example that creates a simple document from an image.</td>
 					</tr>
 					<tr>
-						<td><a href="../apidocs/org/apache/pdfbox/examples/pdmodel/ShowColorBoxes.html">ShowColorBoxes</a>
+						<td><a href="./cookbook/creation.html#ShowColorBoxes">ShowColorBoxes</a>
 						</td>
 						<td>This is an example that creates a simple document with different boxes.</td>
 					</tr>
