Re: [2/2] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

2015-11-22 Thread Andreas Lehmkuehler

Am 22.11.2015 um 12:24 schrieb Andreas Lehmkuehler:

Am 22.11.2015 um 11:47 schrieb Maruan Sahyoun:



Am 22.11.2015 um 11:32 schrieb Andreas Lehmkuehler :

Am 22.11.2015 um 11:27 schrieb Maruan Sahyoun:

Hi Andreas,


Am 21.11.2015 um 21:18 schrieb Andreas Lehmkuehler :

Hi,

I've updated the download.html file only. Where did all those changes come
from? Did I do something wrong?



which version of jekyll did you use? From the changes that is very likely
because of you using a newer/different version to the one used when
initially generating the content.

I'm using 2.5.3 which comes with fedora 23


I'm on 3.0.1

if you'd like to update you can do so using

gem update jekyll

Works fine, I'm on 3.0.1 too


I've redeloyed the website using the more recent version of jekyll

BR
Andreas


-
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org



Re: [2/2] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

2015-11-22 Thread Andreas Lehmkuehler

Am 22.11.2015 um 11:47 schrieb Maruan Sahyoun:



Am 22.11.2015 um 11:32 schrieb Andreas Lehmkuehler :

Am 22.11.2015 um 11:27 schrieb Maruan Sahyoun:

Hi Andreas,


Am 21.11.2015 um 21:18 schrieb Andreas Lehmkuehler :

Hi,

I've updated the download.html file only. Where did all those changes come 
from? Did I do something wrong?



which version of jekyll did you use? From the changes that is very likely 
because of you using a newer/different version to the one used when initially 
generating the content.

I'm using 2.5.3 which comes with fedora 23


I'm on 3.0.1

if you'd like to update you can do so using

gem update jekyll

Works fine, I'm on 3.0.1 too

Thanks
Andreas



BR
Maruan






BR
Maruan



BR
Andreas

Am 21.11.2015 um 21:11 schrieb le...@apache.org:

Site checkin for project Apache PDFBox Website


Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/e94e54d4
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/e94e54d4
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/e94e54d4

Branch: refs/heads/asf-site
Commit: e94e54d4f64b2af88d6e9554a6aaec80a1e7
Parents: 3ca1d14
Author: Andreas Lehmkühler 
Authored: Sat Nov 21 21:11:06 2015 +0100
Committer: Andreas Lehmkühler 
Committed: Sat Nov 21 21:11:06 2015 +0100

--
  content/1.8/architecture.html   |  6 +-
  content/1.8/cookbook/documentcreation.html  | 20 ++---
  content/1.8/cookbook/encryption.html| 10 +--
  content/1.8/cookbook/fill-form-field.html   | 18 ++--
  content/1.8/cookbook/pdfacreation.html  | 24 +++---
  content/1.8/cookbook/pdfavalidation.html| 36 
  content/1.8/cookbook/rendering.html |  8 +-
  content/1.8/cookbook/textextraction.html|  2 +-
  .../1.8/cookbook/workingwithattachments.html| 20 ++---
  content/1.8/cookbook/workingwithfonts.html  | 46 +-
  content/1.8/cookbook/workingwithmetadata.html   | 24 +++---
  content/1.8/dependencies.html   |  6 +-
  content/1.8/faq.html|  6 +-
  content/2.0/cookbook/encryption.html|  8 +-
  content/2.0/dependencies.html   |  4 +-
  content/2.0/getting-started.html|  4 +-
  content/2.0/migration.html  | 34 
  content/building.html   |  6 +-
  content/codingconventions.html  |  2 +-
  content/download.html   | 89 ++--
  content/siteupdate.html | 14 +--
  21 files changed, 194 insertions(+), 193 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/architecture.html
--
diff --git a/content/1.8/architecture.html b/content/1.8/architecture.html
index 8f33bbe..539c1fe 100644
--- a/content/1.8/architecture.html
+++ b/content/1.8/architecture.html
@@ -251,8 +251,8 @@ doesn't provide the functionality needed.
  
  The information within the dictionary can be accessed using the COS 
model
  COSDictionary page = ...;
-COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
-System.out.println( "Width:" + mediaBox.get( 3 ) );
+COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
+System.out.println( "Width:" + 
mediaBox.get( 3 ) );
  
  As can be seen from that little example the COS model provides a low level 
API to access
  information within the PDF. In order to use the COS model successfully a good 
knowledge of
@@ -271,7 +271,7 @@ available to access the attributes. 
  The same code from above to get the page width can be rewritten to use PD Model 
classes.
  PDPage page = ...;
  PDRectangle mediaBox = page.getMediaBox();
-System.out.println( "Width:" + mediaBox.getWidth() );
+System.out.println( "Width:" + mediaBox.getWidth() );
  
  PD Model objects sit on top of COS model. Typically, the classes in the PD 
Model will only
  store a COS object and all setter/getter methods will modify data that is 
stored in the

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/cookbook/documentcreation.html
--
diff --git a/content/1.8/cookbook/documentcreation.html 
b/content/1.8/cookbook/documentcreation.html
index 53d990c..badfd5d 100644
--- a/content/1.8/cookbook/documentcreation.html
+++ b/content/1.8/cookbook/documentcreation.html
@@ -137,14 +137,14 @@

  This small sample shows how to create a new PDF document using PDFBox.
  // Create a new empty document
-PDDocument document = new 
PDDocument();
+PDDocument document = new 
PDDocument();

  // Create a new blank page and add it to the document
-PDPage blankPage = new 
PDPage(

Re: [2/2] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

2015-11-22 Thread Maruan Sahyoun

> Am 22.11.2015 um 11:32 schrieb Andreas Lehmkuehler :
> 
> Am 22.11.2015 um 11:27 schrieb Maruan Sahyoun:
>> Hi Andreas,
>> 
>>> Am 21.11.2015 um 21:18 schrieb Andreas Lehmkuehler :
>>> 
>>> Hi,
>>> 
>>> I've updated the download.html file only. Where did all those changes come 
>>> from? Did I do something wrong?
>>> 
>> 
>> which version of jekyll did you use? From the changes that is very likely 
>> because of you using a newer/different version to the one used when 
>> initially generating the content.
> I'm using 2.5.3 which comes with fedora 23

I'm on 3.0.1

if you'd like to update you can do so using

gem update jekyll

BR
Maruan


> 
>> 
>> BR
>> Maruan
>> 
>> 
>>> BR
>>> Andreas
>>> 
>>> Am 21.11.2015 um 21:11 schrieb le...@apache.org:
 Site checkin for project Apache PDFBox Website
 
 
 Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
 Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/e94e54d4
 Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/e94e54d4
 Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/e94e54d4
 
 Branch: refs/heads/asf-site
 Commit: e94e54d4f64b2af88d6e9554a6aaec80a1e7
 Parents: 3ca1d14
 Author: Andreas Lehmkühler 
 Authored: Sat Nov 21 21:11:06 2015 +0100
 Committer: Andreas Lehmkühler 
 Committed: Sat Nov 21 21:11:06 2015 +0100
 
 --
  content/1.8/architecture.html   |  6 +-
  content/1.8/cookbook/documentcreation.html  | 20 ++---
  content/1.8/cookbook/encryption.html| 10 +--
  content/1.8/cookbook/fill-form-field.html   | 18 ++--
  content/1.8/cookbook/pdfacreation.html  | 24 +++---
  content/1.8/cookbook/pdfavalidation.html| 36 
  content/1.8/cookbook/rendering.html |  8 +-
  content/1.8/cookbook/textextraction.html|  2 +-
  .../1.8/cookbook/workingwithattachments.html| 20 ++---
  content/1.8/cookbook/workingwithfonts.html  | 46 +-
  content/1.8/cookbook/workingwithmetadata.html   | 24 +++---
  content/1.8/dependencies.html   |  6 +-
  content/1.8/faq.html|  6 +-
  content/2.0/cookbook/encryption.html|  8 +-
  content/2.0/dependencies.html   |  4 +-
  content/2.0/getting-started.html|  4 +-
  content/2.0/migration.html  | 34 
  content/building.html   |  6 +-
  content/codingconventions.html  |  2 +-
  content/download.html   | 89 ++--
  content/siteupdate.html | 14 +--
  21 files changed, 194 insertions(+), 193 deletions(-)
 --
 
 
 http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/architecture.html
 --
 diff --git a/content/1.8/architecture.html b/content/1.8/architecture.html
 index 8f33bbe..539c1fe 100644
 --- a/content/1.8/architecture.html
 +++ b/content/1.8/architecture.html
 @@ -251,8 +251,8 @@ doesn't provide the functionality needed.
  
  The information within the dictionary can be accessed using the COS 
 model
  >>> data-lang="java">COSDictionary >>> class="n">page = ...;
 -COSArray mediaBox >>> class="o">= (>>> class="n">COSArray)>>> class="n">page.>>> class="na">getDictionaryObject( >>> class="s">"MediaBox" );
 -System.>>> class="na">out.>>> class="na">println( >>> class="s">"Width:" + >>> class="n">mediaBox.>>> class="na">get( 3 
 ) );
 +COSArray mediaBox >>> class="o">= (>>> class="n">COSArray)>>> class="n">page.>>> class="na">getDictionaryObject( >>> class="s">"MediaBox" );
 +System.>>> class="na">out.>>> class="na">println( >>> class="s">"Width:" + >>> class="n">mediaBox.>>> class="na">get( 3 
 ) );
  
  As can be seen from that little example the COS model provides a low 
 level API to access
  information within the PDF. In order to use the COS model successfully a 
 good knowledge of
 @@ -271,7 +271,7 @@ available to access the attributes. 
  The same code from above to get the page width can be rewritten to use 
 PD Model classes.
  >>> data-lang="java">PDPage page 
 = ...;
  PDRectangle mediaBox >>> class="o">= page>>> class="o">.getMediaBox>>> class="o">();
 -System.>>> class="na">out.>>> class="na">println( >>> class="s">"Width:" + >>> class="n">mediaBox.>>> class="na">getWidth() >>> class="o">);
 +System.>>> class="na">out.>>> class="na">println( >>> class="s">"Width:" + >>> class="n">mediaBox.>>> class="na">getWidth() >>> class="o">);
  
  PD Model objects

Re: [2/2] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

2015-11-22 Thread Andreas Lehmkuehler

Am 22.11.2015 um 11:27 schrieb Maruan Sahyoun:

Hi Andreas,


Am 21.11.2015 um 21:18 schrieb Andreas Lehmkuehler :

Hi,

I've updated the download.html file only. Where did all those changes come 
from? Did I do something wrong?



which version of jekyll did you use? From the changes that is very likely 
because of you using a newer/different version to the one used when initially 
generating the content.

I'm using 2.5.3 which comes with fedora 23



BR
Maruan



BR
Andreas

Am 21.11.2015 um 21:11 schrieb le...@apache.org:

Site checkin for project Apache PDFBox Website


Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/e94e54d4
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/e94e54d4
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/e94e54d4

Branch: refs/heads/asf-site
Commit: e94e54d4f64b2af88d6e9554a6aaec80a1e7
Parents: 3ca1d14
Author: Andreas Lehmkühler 
Authored: Sat Nov 21 21:11:06 2015 +0100
Committer: Andreas Lehmkühler 
Committed: Sat Nov 21 21:11:06 2015 +0100

--
  content/1.8/architecture.html   |  6 +-
  content/1.8/cookbook/documentcreation.html  | 20 ++---
  content/1.8/cookbook/encryption.html| 10 +--
  content/1.8/cookbook/fill-form-field.html   | 18 ++--
  content/1.8/cookbook/pdfacreation.html  | 24 +++---
  content/1.8/cookbook/pdfavalidation.html| 36 
  content/1.8/cookbook/rendering.html |  8 +-
  content/1.8/cookbook/textextraction.html|  2 +-
  .../1.8/cookbook/workingwithattachments.html| 20 ++---
  content/1.8/cookbook/workingwithfonts.html  | 46 +-
  content/1.8/cookbook/workingwithmetadata.html   | 24 +++---
  content/1.8/dependencies.html   |  6 +-
  content/1.8/faq.html|  6 +-
  content/2.0/cookbook/encryption.html|  8 +-
  content/2.0/dependencies.html   |  4 +-
  content/2.0/getting-started.html|  4 +-
  content/2.0/migration.html  | 34 
  content/building.html   |  6 +-
  content/codingconventions.html  |  2 +-
  content/download.html   | 89 ++--
  content/siteupdate.html | 14 +--
  21 files changed, 194 insertions(+), 193 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/architecture.html
--
diff --git a/content/1.8/architecture.html b/content/1.8/architecture.html
index 8f33bbe..539c1fe 100644
--- a/content/1.8/architecture.html
+++ b/content/1.8/architecture.html
@@ -251,8 +251,8 @@ doesn't provide the functionality needed.
  
  The information within the dictionary can be accessed using the COS 
model
  COSDictionary page = ...;
-COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
-System.out.println( "Width:" + mediaBox.get( 3 ) );
+COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
+System.out.println( "Width:" + 
mediaBox.get( 3 ) );
  
  As can be seen from that little example the COS model provides a low level 
API to access
  information within the PDF. In order to use the COS model successfully a good 
knowledge of
@@ -271,7 +271,7 @@ available to access the attributes. 
  The same code from above to get the page width can be rewritten to use PD Model 
classes.
  PDPage page = ...;
  PDRectangle mediaBox = page.getMediaBox();
-System.out.println( "Width:" + mediaBox.getWidth() );
+System.out.println( "Width:" + mediaBox.getWidth() );
  
  PD Model objects sit on top of COS model. Typically, the classes in the PD 
Model will only
  store a COS object and all setter/getter methods will modify data that is 
stored in the

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/cookbook/documentcreation.html
--
diff --git a/content/1.8/cookbook/documentcreation.html 
b/content/1.8/cookbook/documentcreation.html
index 53d990c..badfd5d 100644
--- a/content/1.8/cookbook/documentcreation.html
+++ b/content/1.8/cookbook/documentcreation.html
@@ -137,14 +137,14 @@

  This small sample shows how to create a new PDF document using PDFBox.
  // Create a new empty document
-PDDocument document = new 
PDDocument();
+PDDocument document = new 
PDDocument();

  // Create a new blank page and add it to the document
-PDPage blankPage = new 
PDPage();
+PDPage blankPage = new 
PDPage();
  document.addPage( blankPage );

  // Save the newly created document
-document.save("BlankPage.pdf");
+document.save("BlankPage.pdf");

  // finally make sure that the document is properly
  // closed.
@@ 

Re: [2/2] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

2015-11-22 Thread Maruan Sahyoun
Hi Andreas,

> Am 21.11.2015 um 21:18 schrieb Andreas Lehmkuehler :
> 
> Hi,
> 
> I've updated the download.html file only. Where did all those changes come 
> from? Did I do something wrong?
> 

which version of jekyll did you use? From the changes that is very likely 
because of you using a newer/different version to the one used when initially 
generating the content. 

BR
Maruan


> BR
> Andreas
> 
> Am 21.11.2015 um 21:11 schrieb le...@apache.org:
>> Site checkin for project Apache PDFBox Website
>> 
>> 
>> Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
>> Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/e94e54d4
>> Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/e94e54d4
>> Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/e94e54d4
>> 
>> Branch: refs/heads/asf-site
>> Commit: e94e54d4f64b2af88d6e9554a6aaec80a1e7
>> Parents: 3ca1d14
>> Author: Andreas Lehmkühler 
>> Authored: Sat Nov 21 21:11:06 2015 +0100
>> Committer: Andreas Lehmkühler 
>> Committed: Sat Nov 21 21:11:06 2015 +0100
>> 
>> --
>>  content/1.8/architecture.html   |  6 +-
>>  content/1.8/cookbook/documentcreation.html  | 20 ++---
>>  content/1.8/cookbook/encryption.html| 10 +--
>>  content/1.8/cookbook/fill-form-field.html   | 18 ++--
>>  content/1.8/cookbook/pdfacreation.html  | 24 +++---
>>  content/1.8/cookbook/pdfavalidation.html| 36 
>>  content/1.8/cookbook/rendering.html |  8 +-
>>  content/1.8/cookbook/textextraction.html|  2 +-
>>  .../1.8/cookbook/workingwithattachments.html| 20 ++---
>>  content/1.8/cookbook/workingwithfonts.html  | 46 +-
>>  content/1.8/cookbook/workingwithmetadata.html   | 24 +++---
>>  content/1.8/dependencies.html   |  6 +-
>>  content/1.8/faq.html|  6 +-
>>  content/2.0/cookbook/encryption.html|  8 +-
>>  content/2.0/dependencies.html   |  4 +-
>>  content/2.0/getting-started.html|  4 +-
>>  content/2.0/migration.html  | 34 
>>  content/building.html   |  6 +-
>>  content/codingconventions.html  |  2 +-
>>  content/download.html   | 89 ++--
>>  content/siteupdate.html | 14 +--
>>  21 files changed, 194 insertions(+), 193 deletions(-)
>> --
>> 
>> 
>> http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/architecture.html
>> --
>> diff --git a/content/1.8/architecture.html b/content/1.8/architecture.html
>> index 8f33bbe..539c1fe 100644
>> --- a/content/1.8/architecture.html
>> +++ b/content/1.8/architecture.html
>> @@ -251,8 +251,8 @@ doesn't provide the functionality needed.
>>  
>>  The information within the dictionary can be accessed using the COS 
>> model
>>  > data-lang="java">COSDictionary > class="n">page = ...;
>> -COSArray mediaBox > class="o">= (> class="n">COSArray)> class="n">page.> class="na">getDictionaryObject( > class="s">"MediaBox" );
>> -System.> class="na">out.> class="na">println( > class="s">"Width:" + > class="n">mediaBox.> class="na">get( 3 
>> ) );
>> +COSArray mediaBox > class="o">= (> class="n">COSArray)> class="n">page.> class="na">getDictionaryObject( > class="s">"MediaBox" );
>> +System.> class="na">out.> class="na">println( > class="s">"Width:" + > class="n">mediaBox.> class="na">get( 3 
>> ) );
>>  
>>  As can be seen from that little example the COS model provides a low 
>> level API to access
>>  information within the PDF. In order to use the COS model successfully a 
>> good knowledge of
>> @@ -271,7 +271,7 @@ available to access the attributes. 
>>  The same code from above to get the page width can be rewritten to use 
>> PD Model classes.
>>  > data-lang="java">PDPage page 
>> = ...;
>>  PDRectangle mediaBox > class="o">= page.> class="na">getMediaBox();
>> -System.> class="na">out.> class="na">println( > class="s">"Width:" + > class="n">mediaBox.> class="na">getWidth() );
>> +System.> class="na">out.> class="na">println( > class="s">"Width:" + > class="n">mediaBox.> class="na">getWidth() );
>>  
>>  PD Model objects sit on top of COS model. Typically, the classes in the 
>> PD Model will only
>>  store a COS object and all setter/getter methods will modify data that is 
>> stored in the
>> 
>> http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/cookbook/documentcreation.html
>> --
>> diff --git a/content/1.8/cookbook/documentcreation.html 
>> b/content/1.8/cookbook/documentcreation.html
>> index 53d990c..badfd5d 100644
>> --- a/content/1.8/cookbook/documentcreation.html
>> 

Re: [2/2] pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

2015-11-21 Thread Andreas Lehmkuehler

Hi,

I've updated the download.html file only. Where did all those changes come from? 
Did I do something wrong?


BR
Andreas

Am 21.11.2015 um 21:11 schrieb le...@apache.org:

Site checkin for project Apache PDFBox Website


Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/e94e54d4
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/e94e54d4
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/e94e54d4

Branch: refs/heads/asf-site
Commit: e94e54d4f64b2af88d6e9554a6aaec80a1e7
Parents: 3ca1d14
Author: Andreas Lehmkühler 
Authored: Sat Nov 21 21:11:06 2015 +0100
Committer: Andreas Lehmkühler 
Committed: Sat Nov 21 21:11:06 2015 +0100

--
  content/1.8/architecture.html   |  6 +-
  content/1.8/cookbook/documentcreation.html  | 20 ++---
  content/1.8/cookbook/encryption.html| 10 +--
  content/1.8/cookbook/fill-form-field.html   | 18 ++--
  content/1.8/cookbook/pdfacreation.html  | 24 +++---
  content/1.8/cookbook/pdfavalidation.html| 36 
  content/1.8/cookbook/rendering.html |  8 +-
  content/1.8/cookbook/textextraction.html|  2 +-
  .../1.8/cookbook/workingwithattachments.html| 20 ++---
  content/1.8/cookbook/workingwithfonts.html  | 46 +-
  content/1.8/cookbook/workingwithmetadata.html   | 24 +++---
  content/1.8/dependencies.html   |  6 +-
  content/1.8/faq.html|  6 +-
  content/2.0/cookbook/encryption.html|  8 +-
  content/2.0/dependencies.html   |  4 +-
  content/2.0/getting-started.html|  4 +-
  content/2.0/migration.html  | 34 
  content/building.html   |  6 +-
  content/codingconventions.html  |  2 +-
  content/download.html   | 89 ++--
  content/siteupdate.html | 14 +--
  21 files changed, 194 insertions(+), 193 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/architecture.html
--
diff --git a/content/1.8/architecture.html b/content/1.8/architecture.html
index 8f33bbe..539c1fe 100644
--- a/content/1.8/architecture.html
+++ b/content/1.8/architecture.html
@@ -251,8 +251,8 @@ doesn't provide the functionality needed.
  
  The information within the dictionary can be accessed using the COS 
model
  COSDictionary page = ...;
-COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
-System.out.println( "Width:" + mediaBox.get( 3 ) );
+COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
+System.out.println( "Width:" + 
mediaBox.get( 3 ) );
  
  As can be seen from that little example the COS model provides a low level 
API to access
  information within the PDF. In order to use the COS model successfully a good 
knowledge of
@@ -271,7 +271,7 @@ available to access the attributes. 
  The same code from above to get the page width can be rewritten to use PD Model 
classes.
  PDPage page = ...;
  PDRectangle mediaBox = page.getMediaBox();
-System.out.println( "Width:" + mediaBox.getWidth() );
+System.out.println( "Width:" + mediaBox.getWidth() );
  
  PD Model objects sit on top of COS model. Typically, the classes in the PD 
Model will only
  store a COS object and all setter/getter methods will modify data that is 
stored in the

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/e94e54d4/content/1.8/cookbook/documentcreation.html
--
diff --git a/content/1.8/cookbook/documentcreation.html 
b/content/1.8/cookbook/documentcreation.html
index 53d990c..badfd5d 100644
--- a/content/1.8/cookbook/documentcreation.html
+++ b/content/1.8/cookbook/documentcreation.html
@@ -137,14 +137,14 @@

  This small sample shows how to create a new PDF document using PDFBox.
  // Create a new empty document
-PDDocument document = new 
PDDocument();
+PDDocument document = new 
PDDocument();

  // Create a new blank page and add it to the document
-PDPage blankPage = new 
PDPage();
+PDPage blankPage = new 
PDPage();
  document.addPage( blankPage );

  // Save the newly created document
-document.save("BlankPage.pdf");
+document.save("BlankPage.pdf");

  // finally make sure that the document is properly
  // closed.
@@ -154,28 +154,28 @@

  This small sample shows how to create a new document and print the text "Hello 
World" using one of the PDF base fonts.
  // Create a document and add a page to it
-PDDocument document = new 
PDDocument();
-PDPage page = new PDPage();
+PDDocument document = new 
PDDocument();
+PDPage page = new PDPage();
  document.addPage( page );