pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject pdfbox-docs git commit: Site checkin for project Apache PDFBox Website
Date Sun, 02 Oct 2016 15:36:49 GMT
Repository: pdfbox-docs
Updated Branches:
  refs/heads/asf-site 7c0fdfeea -> eaca545b7


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/eaca545b
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/eaca545b
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/eaca545b

Branch: refs/heads/asf-site
Commit: eaca545b74fd2aa92706250757cca91bbd06a80c
Parents: 7c0fdfe
Author: Maruan Sahyoun <sahyoun@fileaffairs.de>
Authored: Sun Oct 2 17:36:45 2016 +0200
Committer: Maruan Sahyoun <sahyoun@fileaffairs.de>
Committed: Sun Oct 2 17:36:45 2016 +0200

----------------------------------------------------------------------
 content/1.8/architecture.html                   |  27 +-
 content/1.8/commandline.html                    |   1 +
 content/1.8/cookbook/documentcreation.html      |   1 +
 content/1.8/cookbook/encryption.html            |   1 +
 content/1.8/cookbook/fill-form-field.html       |   1 +
 content/1.8/cookbook/pdfacreation.html          |   1 +
 content/1.8/cookbook/pdfavalidation.html        |   1 +
 content/1.8/cookbook/rendering.html             |   1 +
 content/1.8/cookbook/textextraction.html        |   1 +
 .../1.8/cookbook/workingwithattachments.html    |   1 +
 content/1.8/cookbook/workingwithfonts.html      |   1 +
 content/1.8/cookbook/workingwithmetadata.html   |   1 +
 content/1.8/dependencies.html                   |   1 +
 content/1.8/faq.html                            |  49 +--
 content/2.0/commandline.html                    |   1 +
 content/2.0/cookbook/encryption.html            |  43 +--
 content/2.0/dependencies.html                   |  39 ++
 content/2.0/examples.html                       |   1 +
 content/2.0/faq.html                            | 375 +++++++++++++++++++
 content/2.0/getting-started.html                |   1 +
 content/2.0/migration.html                      |   1 +
 content/building.html                           |   1 +
 content/codingconventions.html                  |   1 +
 content/download.html                           |   1 +
 content/errors/403.html                         |   1 +
 content/errors/404.html                         |   1 +
 content/ideas.html                              |   1 +
 content/index.html                              |   1 +
 content/mailinglists.html                       |   1 +
 .../2015/10/19/pdfbox-2.0.0-RC1-released.html   |   1 +
 .../2015/11/22/pdfbox-2.0.0-RC2-released.html   |   1 +
 .../2016/01/15/pdfbox-2.0.0-RC3-released.html   |   1 +
 .../news/2016/01/18/pdfbox-1.8.11-released.html |   1 +
 .../news/2016/03/18/pdfbox-2.0.0-released.html  |   1 +
 .../news/2016/04/26/new-pdfbox-releases.html    |   1 +
 content/news/2016/05/27/CVE-2016-2175.html      |   1 +
 .../news/2016/06/09/pdfbox-2.0.2-released.html  |   1 +
 .../news/2016/09/17/pdfbox-2.0.3-released.html  |   1 +
 content/references.html                         |   1 +
 content/siteupdate.html                         |   1 +
 content/support.html                            |   1 +
 content/team.html                               |   1 +
 42 files changed, 512 insertions(+), 58 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/architecture.html
----------------------------------------------------------------------
diff --git a/content/1.8/architecture.html b/content/1.8/architecture.html
index 1aab59a..a339df9 100644
--- a/content/1.8/architecture.html
+++ b/content/1.8/architecture.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>
@@ -246,21 +247,21 @@ doesn’t provide the functionality needed.</p>
 
 <p>A page in a pdf document is represented with a COSDictionary. The entries that are available for a page can be seen in the PDF Reference and an example of a page looks like this:</p>
 
-<p><code class="highlighter-rouge">text
-&lt;&lt;
+<div class="highlighter-rouge"><pre class="highlight"><code>&lt;&lt;
     /Type /Page
     /MediaBox [0 0 612 915]
     /Contents 56 0 R
 &gt;&gt;
-</code></p>
+</code></pre>
+</div>
 
 <p>The information within the dictionary can be accessed using the COS model</p>
 
-<p><code class="highlighter-rouge">java
-COSDictionary page = ...;
-COSArray mediaBox = (COSArray)page.getDictionaryObject( "MediaBox" );
-System.out.println( "Width:" + mediaBox.get( 3 ) );
-</code></p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">COSDictionary</span> <span class="n">page</span> <span class="o">=</span> <span class="o">...;</span>
+<span class="n">COSArray</span> <span class="n">mediaBox</span> <span class="o">=</span> <span class="o">(</span><span class="n">COSArray</span><span class="o">)</span><span class="n">page</span><span class="o">.</span><span class="na">getDictionaryObject</span><span class="o">(</span> <span class="s">"MediaBox"</span> <span class="o">);</span>
+<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span> <span class="s">"Width:"</span> <span class="o">+</span> <span class="n">mediaBox</span><span class="o">.</span><span class="na">get</span><span class="o">(</span> <span class="mi">3</span> <span class="o">)</span> <span class="o">);</span>
+</code></pre>
+</div>
 
 <p>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
@@ -278,11 +279,11 @@ available to access the attributes.</p>
 
 <p>The same code from above to get the page width can be rewritten to use PD Model classes.</p>
 
-<p><code class="highlighter-rouge">java
-PDPage page = ...;
-PDRectangle mediaBox = page.getMediaBox();
-System.out.println( "Width:" + mediaBox.getWidth() );
-</code></p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">PDPage</span> <span class="n">page</span> <span class="o">=</span> <span class="o">...;</span>
+<span class="n">PDRectangle</span> <span class="n">mediaBox</span> <span class="o">=</span> <span class="n">page</span><span class="o">.</span><span class="na">getMediaBox</span><span class="o">();</span>
+<span class="n">System</span><span class="o">.</span><span class="na">out</span><span class="o">.</span><span class="na">println</span><span class="o">(</span> <span class="s">"Width:"</span> <span class="o">+</span> <span class="n">mediaBox</span><span class="o">.</span><span class="na">getWidth</span><span class="o">()</span> <span class="o">);</span>
+</code></pre>
+</div>
 
 <p>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/eaca545b/content/1.8/commandline.html
----------------------------------------------------------------------
diff --git a/content/1.8/commandline.html b/content/1.8/commandline.html
index c7f9f00..576d438 100644
--- a/content/1.8/commandline.html
+++ b/content/1.8/commandline.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/documentcreation.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/documentcreation.html b/content/1.8/cookbook/documentcreation.html
index 1b1d139..66c750b 100644
--- a/content/1.8/cookbook/documentcreation.html
+++ b/content/1.8/cookbook/documentcreation.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/encryption.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/encryption.html b/content/1.8/cookbook/encryption.html
index 92bff8a..b2f57a5 100644
--- a/content/1.8/cookbook/encryption.html
+++ b/content/1.8/cookbook/encryption.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/fill-form-field.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/fill-form-field.html b/content/1.8/cookbook/fill-form-field.html
index 19761c0..5b8cc48 100644
--- a/content/1.8/cookbook/fill-form-field.html
+++ b/content/1.8/cookbook/fill-form-field.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/pdfacreation.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/pdfacreation.html b/content/1.8/cookbook/pdfacreation.html
index f5dd821..e78ad6c 100644
--- a/content/1.8/cookbook/pdfacreation.html
+++ b/content/1.8/cookbook/pdfacreation.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/pdfavalidation.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/pdfavalidation.html b/content/1.8/cookbook/pdfavalidation.html
index 33f54e2..a128d81 100644
--- a/content/1.8/cookbook/pdfavalidation.html
+++ b/content/1.8/cookbook/pdfavalidation.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/rendering.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/rendering.html b/content/1.8/cookbook/rendering.html
index 9f97815..a87389c 100644
--- a/content/1.8/cookbook/rendering.html
+++ b/content/1.8/cookbook/rendering.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/textextraction.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/textextraction.html b/content/1.8/cookbook/textextraction.html
index bfbed3d..39df4bb 100644
--- a/content/1.8/cookbook/textextraction.html
+++ b/content/1.8/cookbook/textextraction.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/workingwithattachments.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/workingwithattachments.html b/content/1.8/cookbook/workingwithattachments.html
index a45bb9e..87d5553 100644
--- a/content/1.8/cookbook/workingwithattachments.html
+++ b/content/1.8/cookbook/workingwithattachments.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/workingwithfonts.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/workingwithfonts.html b/content/1.8/cookbook/workingwithfonts.html
index 50b3050..e00cc6b 100644
--- a/content/1.8/cookbook/workingwithfonts.html
+++ b/content/1.8/cookbook/workingwithfonts.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/cookbook/workingwithmetadata.html
----------------------------------------------------------------------
diff --git a/content/1.8/cookbook/workingwithmetadata.html b/content/1.8/cookbook/workingwithmetadata.html
index 27b526c..3bd4f70 100644
--- a/content/1.8/cookbook/workingwithmetadata.html
+++ b/content/1.8/cookbook/workingwithmetadata.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/dependencies.html
----------------------------------------------------------------------
diff --git a/content/1.8/dependencies.html b/content/1.8/dependencies.html
index 4832bb4..448398e 100644
--- a/content/1.8/dependencies.html
+++ b/content/1.8/dependencies.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/1.8/faq.html
----------------------------------------------------------------------
diff --git a/content/1.8/faq.html b/content/1.8/faq.html
index 6ec2102..d332541 100644
--- a/content/1.8/faq.html
+++ b/content/1.8/faq.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>
@@ -155,25 +156,25 @@
 <p><a name="log4j"></a>
 ### I am getting the below Log4J warning message, how do I remove it? ###</p>
 
-<p><code class="highlighter-rouge">java
-log4j:WARN No appenders could be found for logger (org.apache.pdfbox.util.ResourceLoader).
-log4j:WARN Please initialize the log4j system properly.
-</code></p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="nl">log4j:</span><span class="n">WARN</span> <span class="n">No</span> <span class="n">appenders</span> <span class="n">could</span> <span class="n">be</span> <span class="n">found</span> <span class="k">for</span> <span class="n">logger</span> <span class="o">(</span><span class="n">org</span><span class="o">.</span><span class="na">apache</span><span class="o">.</span><span class="na">pdfbox</span><span class="o">.</span><span class="na">util</span><span class="o">.</span><span class="na">ResourceLoader</span><span class="o">).</span>
+<span class="nl">log4j:</span><span class="n">WARN</span> <span class="n">Please</span> <span class="n">initialize</span> <span class="n">the</span> <span class="n">log4j</span> <span class="n">system</span> <span class="n">properly</span><span class="o">.</span>
+</code></pre>
+</div>
 
 <p>This message means that you need to configure the log4j logging system.
 See the <a href="http://logging.apache.org/log4j/1.2/manual.html">log4j documentation</a> for more information.</p>
 
 <p>PDFBox comes with a sample log4j configuration file.  To use it you set a system property like this</p>
 
-<p><code class="highlighter-rouge">java
-java -Dlog4j.configuration=log4j.xml org.apache.pdfbox.ExtractText &lt;PDF-file&gt; &lt;output-text-file&gt;
-</code></p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">java</span> <span class="o">-</span><span class="n">Dlog4j</span><span class="o">.</span><span class="na">configuration</span><span class="o">=</span><span class="n">log4j</span><span class="o">.</span><span class="na">xml</span> <span class="n">org</span><span class="o">.</span><span class="na">apache</span><span class="o">.</span><span class="na">pdfbox</span><span class="o">.</span><span class="na">ExtractText</span> <span class="o">&lt;</span><span class="n">PDF</span><span class="o">-</span><span class="n">file</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="n">output</span><span class="o">-</span><span class="n">text</span><span class="o">-</span><span class="n">file</span><span class="o">&gt;</span>
+</code></pre>
+</div>
 
 <p>If this is not working for you then you may have to specify the log4j config file using a URL path, like this:</p>
 
-<p><code class="highlighter-rouge">java
-log4j.configuration=file:///&lt;path to config file&gt;
-</code></p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">log4j</span><span class="o">.</span><span class="na">configuration</span><span class="o">=</span><span class="nl">file:</span><span class="c1">///&lt;path to config file&gt;</span>
+</code></pre>
+</div>
 
 <p><a name="threadsafe"></a>
 ### Is PDFBox thread safe? ###</p>
@@ -189,20 +190,20 @@ don’t then the document will not be closed properly.  Also, you must close all
 PDDocument objects that get created.  The following code creates <strong>two</strong>
 PDDocument objects; one from the “new PDDocument()” and the second by the load method.</p>
 
-<p><code class="highlighter-rouge">java
-PDDocument doc = new PDDocument();
-try
-{
-   doc = PDDocument.load( "my.pdf" );
-}
-finally
-{
-   if( doc != null )
-   {
-      doc.close();
-   }
-}
-</code></p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">PDDocument</span> <span class="n">doc</span> <span class="o">=</span> <span class="k">new</span> <span class="n">PDDocument</span><span class="o">();</span>
+<span class="k">try</span>
+<span class="o">{</span>
+   <span class="n">doc</span> <span class="o">=</span> <span class="n">PDDocument</span><span class="o">.</span><span class="na">load</span><span class="o">(</span> <span class="s">"my.pdf"</span> <span class="o">);</span>
+<span class="o">}</span>
+<span class="k">finally</span>
+<span class="o">{</span>
+   <span class="k">if</span><span class="o">(</span> <span class="n">doc</span> <span class="o">!=</span> <span class="kc">null</span> <span class="o">)</span>
+   <span class="o">{</span>
+      <span class="n">doc</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
+   <span class="o">}</span>
+<span class="o">}</span>
+</code></pre>
+</div>
 
 <h2 id="text-extraction-1">Text Extraction</h2>
 

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/commandline.html
----------------------------------------------------------------------
diff --git a/content/2.0/commandline.html b/content/2.0/commandline.html
index f37a904..f093ea3 100644
--- a/content/2.0/commandline.html
+++ b/content/2.0/commandline.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/cookbook/encryption.html
----------------------------------------------------------------------
diff --git a/content/2.0/cookbook/encryption.html b/content/2.0/cookbook/encryption.html
index 466d5df..400f718 100644
--- a/content/2.0/cookbook/encryption.html
+++ b/content/2.0/cookbook/encryption.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>
@@ -138,28 +139,28 @@
 
 <p>This small sample shows how to encrypt a file so that it can be viewed, but not printed..</p>
 
-<p>``` java
-PDDocument doc = PDDocument.load(“filename.pdf”);</p>
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">PDDocument</span> <span class="n">doc</span> <span class="o">=</span> <span class="n">PDDocument</span><span class="o">.</span><span class="na">load</span><span class="o">(</span><span class="s">"filename.pdf"</span><span class="o">);</span>
 
-<p>// Define the length of the encryption key.
-// Possible values are 40, 128 or 256.
-int keyLength = 256;</p>
-
-<p>AccessPermission ap = new AccessPermission();</p>
-
-<p>// disable printing, everything else is allowed
-ap.setCanPrint(false);</p>
-
-<p>// owner password (to open the file with all permissions) is “12345”
-// user password (to open the file but with restricted permissions, is empty here) 
-StandardProtectionPolicy spp = new StandardProtectionPolicy(“12345”, “”, ap);
-spp.setEncryptionKeyLength(keyLength);
-spp.setPermissions(ap);
-doc.protect(spp);</p>
-
-<p>doc.save(“filename-encrypted.pdf”);
-doc.close();
-```</p>
+<span class="c1">// Define the length of the encryption key.</span>
+<span class="c1">// Possible values are 40, 128 or 256.</span>
+<span class="kt">int</span> <span class="n">keyLength</span> <span class="o">=</span> <span class="mi">256</span><span class="o">;</span>
+    
+<span class="n">AccessPermission</span> <span class="n">ap</span> <span class="o">=</span> <span class="k">new</span> <span class="n">AccessPermission</span><span class="o">();</span>
+        
+<span class="c1">// disable printing, everything else is allowed</span>
+<span class="n">ap</span><span class="o">.</span><span class="na">setCanPrint</span><span class="o">(</span><span class="kc">false</span><span class="o">);</span>
+        
+<span class="c1">// owner password (to open the file with all permissions) is "12345"</span>
+<span class="c1">// user password (to open the file but with restricted permissions, is empty here) </span>
+<span class="n">StandardProtectionPolicy</span> <span class="n">spp</span> <span class="o">=</span> <span class="k">new</span> <span class="n">StandardProtectionPolicy</span><span class="o">(</span><span class="s">"12345"</span><span class="o">,</span> <span class="s">""</span><span class="o">,</span> <span class="n">ap</span><span class="o">);</span>
+<span class="n">spp</span><span class="o">.</span><span class="na">setEncryptionKeyLength</span><span class="o">(</span><span class="n">keyLength</span><span class="o">);</span>
+<span class="n">spp</span><span class="o">.</span><span class="na">setPermissions</span><span class="o">(</span><span class="n">ap</span><span class="o">);</span>
+<span class="n">doc</span><span class="o">.</span><span class="na">protect</span><span class="o">(</span><span class="n">spp</span><span class="o">);</span>
+        
+<span class="n">doc</span><span class="o">.</span><span class="na">save</span><span class="o">(</span><span class="s">"filename-encrypted.pdf"</span><span class="o">);</span>
+<span class="n">doc</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
+</code></pre>
+</div>
 
             </div>
         </div>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/dependencies.html
----------------------------------------------------------------------
diff --git a/content/2.0/dependencies.html b/content/2.0/dependencies.html
index 2e8e556..aa78c00 100644
--- a/content/2.0/dependencies.html
+++ b/content/2.0/dependencies.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>
@@ -132,6 +133,14 @@
             <div class="col-xs-12 col-sm-9">
                 <h1 id="dependencies">Dependencies</h1>
 
+<h2 id="core-components">Core components</h2>
+
+<p class="alert alert-info">These components are needed during runtime, development and testing dependent on the details below.</p>
+
+<p>The three PDFBox components are named <code class="highlighter-rouge">pdfbox</code>, <code class="highlighter-rouge">fontbox</code> and <code class="highlighter-rouge">xmpbox</code>. The Maven groupId of all PDFBox components is org.apache.pdfbox.</p>
+
+<h3 id="minimum-requirement">Minimum Requirement</h3>
+
 <p>PDFBox has the following basic dependencies:</p>
 
 <ul>
@@ -145,6 +154,25 @@ included in the Java platform.</p>
 
 <p>For <strong>PDFBox Preflight tests only</strong> <a href="https://commons.apache.org/proper/commons-io/">commons-io 2.4</a> is needed.</p>
 
+<h3 id="font-handling">Font Handling</h3>
+<p>For font handling the fontbox component is needed.</p>
+
+<h3 id="xmp-metadata">XMP Metadata</h3>
+<p>To support XMP metadata the xmpbox component is needed.</p>
+
+<h3 id="include-dependencies-using-maven">Include Dependencies using Maven</h3>
+<p>To add the pdfbox, fontbox, xmpbox and commons-logging jars to your application, the easiest thing is to declare the Maven dependency shown below. This gives you the main pdfbox library directly and the other required jars as transitive dependencies.</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code>&lt;dependency&gt;
+  &lt;groupId&gt;org.apache.pdfbox&lt;/groupId&gt;
+  &lt;artifactId&gt;pdfbox&lt;/artifactId&gt;
+  &lt;version&gt;...&lt;/version&gt;
+&lt;/dependency&gt;
+</code></pre>
+</div>
+
+<p>Set the version field to the latest stable PDFBox version.</p>
+
 <h2 id="optional-components">Optional components</h2>
 
 <p>PDFBox does not ship with all features enabled. Third party components are necessary to get full support for certain functionality.</p>
@@ -196,6 +224,17 @@ included in the Java platform.</p>
 </code></pre>
 </div>
 
+<h2 id="dependencies-for-ant-builds">Dependencies for Ant builds</h2>
+
+<p>The above instructions expect that you’re using <a href="http://maven.apache.org/">Maven</a> or another build tool like
+<a href="http://ant.apache.org/ivy/">Ivy</a> that supports Maven dependencies.
+If you instead use tools like <a href="http://ant.apache.org/">Ant</a> where you need to explicitly include all the required
+library jars in your application, you’ll need to do something different.</p>
+
+<p>The easiest approach is to run <code class="highlighter-rouge">mvn dependency:copy-dependencies</code> inside the pdfbox directory of the latest PDFBox
+source release. This will copy all the required and optional libraries discussed above into the pdfbox/target/dependencies
+directory. You can then simply copy all the libraries you need from this directory to your application.</p>
+
             </div>
         </div>
     </div>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/examples.html
----------------------------------------------------------------------
diff --git a/content/2.0/examples.html b/content/2.0/examples.html
index a72e85b..f7c01f7 100644
--- a/content/2.0/examples.html
+++ b/content/2.0/examples.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/faq.html
----------------------------------------------------------------------
diff --git a/content/2.0/faq.html b/content/2.0/faq.html
new file mode 100644
index 0000000..c12d217
--- /dev/null
+++ b/content/2.0/faq.html
@@ -0,0 +1,375 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<!--
+
+     Licensed to the Apache Software Foundation (ASF) under one or more
+     contributor license agreements.  See the NOTICE file distributed with
+     this work for additional information regarding copyright ownership.
+     The ASF licenses this file to You under the Apache License, Version 2.0
+     (the "License"); you may not use this file except in compliance with
+     the License.  You may obtain a copy of the License at
+
+     http://www.apache.org/licenses/LICENSE- 2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+     -->
+
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1">
+    <meta name="description" content="The Apache PDFBox™ library is an open source Java tool for working with PDF documents. This project allows creation of new PDF documents, manipulation of existing documents and the ability to extract content from documents. Apache PDFBox also includes several command line utilities. Apache PDFBox is published under the Apache License v2.0.
+">
+
+    <title>Apache PDFBox | Frequently Asked Questions (FAQ)</title>
+
+    <link href="/bootstrap/css/bootstrap.min.css" rel="stylesheet">
+    <link href="/css/pygments-github.css" rel="stylesheet">
+
+    <link href="/css/site.css" rel="stylesheet">
+
+    
+
+    
+
+    
+
+</head>
+
+<body>
+    <nav class="navbar navbar-default navbar-top">
+      <div class="container">
+        <div class="navbar-header">
+          <a href="/index.html">
+            <img class="logo" src="/images/logo-head.gif">
+          </a>
+          <p class="pull-right visible-xs">
+            <button type="button" class="btn btn-primary btn-sm" data-toggle="offcanvas">Menu</button>
+          </p>
+        </div>
+      </div>
+    </nav>
+
+    <div class="container">
+
+        <div class="row row-offcanvas row-offcanvas-left">
+            <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar">
+
+                <ul class="sidebar">
+                    <li class="sidebar-header">Apache PDFBox</li>
+                    <li><a href="/index.html">Overview</a></li>
+                    <li><a href="/download.cgi">Downloads</a></li>
+
+                    <li class="sidebar-header">Community</li>
+                    <li><a href="/support.html">Support</a></li>
+                    <li><a href="/mailinglists.html">Mailing Lists</a></li>
+                    <li><a href="/team.html">Project Team</a></li>
+
+                    <li class="sidebar-header">Documentation</li>
+                    <li class="sidebar-node" id="v2-0">
+                        <a href="#">2.0</a>
+                        <ul>
+                            <li><a href="/2.0/migration.html">Migration Guide</a></li>
+                            <li><a href="/2.0/getting-started.html">Getting Started</a></li>
+                            <li><a href="/2.0/examples.html">Examples</a></li>
+                            <li><a href="/2.0/dependencies.html">Dependencies</a></li>
+                            <li class="sidebar-node" id="v2-0-cookbook">
+                                <a href="#">Cookbook</a>
+                                <ul>
+                                    <li><a href="/2.0/cookbook/encryption.html">Document Encryption</a></li>
+                                </ul>
+                            </li>
+                            <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
+                            <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
+                        </ul>
+                    </li>
+                    <li class="sidebar-node" id="v1-8">
+                        <a href="#">1.8</a>
+                        <ul>
+                            <li><a href="/1.8/architecture.html">Architecture</a></li>
+                            <li><a href="/1.8/dependencies.html">Dependencies</a></li>
+                            <li class="sidebar-node" id="v1-8-cookbook">
+                                <a href="#">Cookbook</a>
+                                <ul>
+                                    <li><a href="/1.8/cookbook/documentcreation.html">Document Creation</a></li>
+                                    <li><a href="/1.8/cookbook/textextraction.html">Text Extraction</a></li>
+                                    <li><a href="/1.8/cookbook/encryption.html">Document Encryption</a></li>
+                                    <li><a href="/1.8/cookbook/workingwithfonts.html">Working with Fonts</a></li>
+                                    <li><a href="/1.8/cookbook/workingwithmetadata.html">Working with Metadata</a></li>
+                                    <li><a href="/1.8/cookbook/workingwithattachments.html">Working with Attachments</a></li>
+                                    <li><a href="/1.8/cookbook/pdfavalidation.html">PDF/A Validation</a></li>
+                                    <li><a href="/1.8/cookbook/pdfacreation.html">Creating a PDF/A document</a></li>
+                                </ul>
+                            </li>
+                            <li><a href="/1.8/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/docs/1.8.12/javadocs/">API Docs</a></li>
+                            <li><a href="/1.8/faq.html">FAQ</a></li>
+                        </ul>
+                    </li>
+
+                    <li class="sidebar-header">Development</li>
+                    <li><a href="/building.html">Building from Source</a></li>
+                    <li><a href="/codingconventions.html">Coding Conventions</a></li>
+                    <li><a href="/siteupdate.html">Update the Website</a></li>
+                    <li><a href="https://builds.apache.org/view/All/job/PDFBox-trunk/">Jenkins</a></li>
+                    <li><a href="https://travis-ci.org/apache/pdfbox">Travis CI</a></li>
+                    <li><a href="https://analysis.apache.org/dashboard/index/org.apache.pdfbox:pdfbox-reactor">SonarQube</a></li>
+                    <li><a href="https://issues.apache.org/jira/browse/PDFBOX">JIRA</a></li>
+                    <li><a href="/ideas.html">Ideas</a></li>
+                    <li><a href="/references.html">External Links</a></li>
+
+                    <li class="sidebar-header">Apache Software Foundation</li>
+                    <li><a href="http://www.apache.org/">Apache Software Foundation</a></li>
+                    <li><a href="http://www.apache.org/foundation/thanks.html">ASF Sponsors</a></li>
+                    <li><a href="http://www.apache.org/security/">Security</a></li>
+                </ul>
+            </div>
+            <div class="col-xs-12 col-sm-9">
+                <h1 id="frequently-asked-questions">Frequently asked questions</h1>
+
+<h3 id="general-questions">General Questions</h3>
+
+<ul>
+  <li><a href="#log4j">I am getting the below Log4J warning message, how do I remove it?</a></li>
+  <li><a href="#threadsafe">Is PDFBox thread safe?</a></li>
+  <li><a href="#notclosed">Why do I get a “Warning: You did not close the PDF Document”?</a></li>
+</ul>
+
+<h3 id="font-handling">Font Handling</h3>
+
+<ul>
+  <li><a href="#fontencoding">I’m getting java.lang.IllegalArgumentException: … is not available in this font’s encoding: WinAnsiEncoding</a></li>
+</ul>
+
+<h3 id="pdf-creation">PDF Creation</h3>
+
+<ul>
+  <li><a href="#emptypage">I’m creating a PDF but my page is empty. Why?</a></li>
+</ul>
+
+<h3 id="text-extraction">Text Extraction</h3>
+
+<ul>
+  <li><a href="#notext">How come I am not getting any text from the PDF document?</a></li>
+  <li><a href="#gibberish">How come I am getting gibberish(G38G43G36G51G5) when extracting text?</a></li>
+  <li><a href="#fontwidth">What does “java.io.IOException: Can’t handle font width” mean?</a></li>
+  <li><a href="#permission">Why do I get “You do not have permission to extract text” on some documents?</a></li>
+  <li><a href="#partially">Can’t we just extract the text without parsing the whole document or extract text as it is parsed?</a></li>
+</ul>
+
+<h3 id="pdf-rendering">PDF rendering</h3>
+
+<ul>
+  <li><a href="#dropshadow">A drop shadow is missing or at the wrong position when rendering a page</a></li>
+</ul>
+
+<h2 id="general-questions-1">General Questions</h2>
+
+<p><a name="log4j"></a></p>
+
+<h3 id="i-am-getting-the-below-log4j-warning-message-how-do-i-remove-it">I am getting the below Log4J warning message, how do I remove it?</h3>
+
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="nl">log4j:</span><span class="n">WARN</span> <span class="n">No</span> <span class="n">appenders</span> <span class="n">could</span> <span class="n">be</span> <span class="n">found</span> <span class="k">for</span> <span class="n">logger</span> <span class="o">(</span><span class="n">org</span><span class="o">.</span><span class="na">apache</span><span class="o">.</span><span class="na">pdfbox</span><span class="o">.</span><span class="na">util</span><span class="o">.</span><span class="na">ResourceLoader</span><span class="o">).</span>
+<span class="nl">log4j:</span><span class="n">WARN</span> <span class="n">Please</span> <span class="n">initialize</span> <span class="n">the</span> <span class="n">log4j</span> <span class="n">system</span> <span class="n">properly</span><span class="o">.</span>
+</code></pre>
+</div>
+
+<p>This message means that you need to configure the log4j logging system.
+See the <a href="http://logging.apache.org/log4j/1.2/manual.html">log4j documentation</a> for more information.</p>
+
+<p>PDFBox comes with a sample log4j configuration file.  To use it you set a system property like this</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">java</span> <span class="o">-</span><span class="n">Dlog4j</span><span class="o">.</span><span class="na">configuration</span><span class="o">=</span><span class="n">log4j</span><span class="o">.</span><span class="na">xml</span> <span class="n">org</span><span class="o">.</span><span class="na">apache</span><span class="o">.</span><span class="na">pdfbox</span><span class="o">.</span><span class="na">ExtractText</span> <span class="o">&lt;</span><span class="n">PDF</span><span class="o">-</span><span class="n">file</span><span class="o">&gt;</span> <span class="o">&lt;</span><span class="n">output</span><span class="o">-</span><span class="n">text</span><span class="o">-</span><span class="n">file</span><span class="o">&gt;</span>
+</code></pre>
+</div>
+
+<p>If this is not working for you then you may have to specify the log4j config file using a URL path, like this:</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">log4j</span><span class="o">.</span><span class="na">configuration</span><span class="o">=</span><span class="nl">file:</span><span class="c1">///&lt;path to config file&gt;</span>
+</code></pre>
+</div>
+
+<p><a name="threadsafe"></a></p>
+
+<h3 id="is-pdfbox-thread-safe">Is PDFBox thread safe?</h3>
+
+<p>PDFBox has experimental support for <em>read-only</em> operations on the same PDDocument from different threads.</p>
+
+<p>For all other uses cases only one thread may access a single document at a time. You can have multiple threads
+each accessing their own PDDocument object.</p>
+
+<p><a name="notclosed"></a></p>
+
+<h3 id="why-do-i-get-a-warning-you-did-not-close-the-pdf-document">Why do I get a “Warning: You did not close the PDF Document”?</h3>
+
+<p>You need to call close() on the PDDocument inside the finally block, if you
+don’t then the document will not be closed properly.  Also, you must close all
+PDDocument objects that get created.  The following code creates <strong>two</strong>
+PDDocument objects; one from the “new PDDocument()” and the second by the load method.</p>
+
+<div class="highlighter-rouge"><pre class="highlight"><code><span class="n">PDDocument</span> <span class="n">doc</span> <span class="o">=</span> <span class="k">new</span> <span class="n">PDDocument</span><span class="o">();</span>
+<span class="k">try</span>
+<span class="o">{</span>
+   <span class="n">doc</span> <span class="o">=</span> <span class="n">PDDocument</span><span class="o">.</span><span class="na">load</span><span class="o">(</span> <span class="s">"my.pdf"</span> <span class="o">);</span>
+<span class="o">}</span>
+<span class="k">finally</span>
+<span class="o">{</span>
+   <span class="k">if</span><span class="o">(</span> <span class="n">doc</span> <span class="o">!=</span> <span class="kc">null</span> <span class="o">)</span>
+   <span class="o">{</span>
+      <span class="n">doc</span><span class="o">.</span><span class="na">close</span><span class="o">();</span>
+   <span class="o">}</span>
+<span class="o">}</span>
+</code></pre>
+</div>
+
+<h2 id="font-handling-1">Font Handling</h2>
+
+<p><a name="fontencoding"></a></p>
+
+<h3 id="im-getting-javalangillegalargumentexception--is-not-available-in-this-fonts-encoding-winansiencoding">I’m getting java.lang.IllegalArgumentException: … is not available in this font’s encoding: WinAnsiEncoding</h3>
+
+<p>Check whether the character is available in WinAnsiEncoding by looking at the <a href="https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf">PDF Specification</a> Appendix D.
+If not, but if it is available in this font (in windows, have a look with charmap.exe), then load the font with
+PDType0Font.load(), see also in the EmbeddedFonts.java example in the source code download.</p>
+
+<h2 id="pdf-creation-1">PDF Creation</h2>
+
+<p><a name="emptypage"></a></p>
+
+<h3 id="im-creating-a-pdf-but-my-page-is-empty-why">I’m creating a PDF but my page is empty. Why?</h3>
+
+<p>Make sure that you closed your content stream before saving.</p>
+
+<h2 id="text-extraction-1">Text Extraction</h2>
+
+<p><a name="notext"></a></p>
+
+<h3 id="how-come-i-am-not-getting-any-text-from-the-pdf-document">How come I am not getting any text from the PDF document?</h3>
+
+<p>Text extraction from a pdf document is a complicated task and there are many factors
+involved that effect the possibility and accuracy of text extraction.  It would be helpful
+to the PDFBox team if you could try a couple things.</p>
+
+<ul>
+  <li>Open the PDF in Acrobat and try to extract text from there.  If Acrobat can extract text then PDFBox
+should be able to as well and it is a bug if it cannot.  If Acrobat cannot extract text then PDFBox ‘probably’ cannot either.</li>
+  <li>It might really be an image instead of text.  Some PDF documents are just images that have been scanned in.
+You can tell by using the selection tool in Acrobat, if you can’t select any text then it is probably an image.</li>
+</ul>
+
+<p><a name="gibberish"></a></p>
+
+<h3 id="how-come-i-am-getting-gibberishg38g43g36g51g5-when-extracting-text">How come I am getting gibberish(G38G43G36G51G5) when extracting text?</h3>
+
+<p>This is because the characters in a PDF document can use a custom encoding
+instead of unicode or ASCII.  When you see gibberish text then it
+probably means that a meaningless internal encoding is being used.  The
+only way to access the text is to use OCR.  This may be a future
+enhancement.</p>
+
+<p><a name="fontwidth"></a></p>
+
+<h3 id="what-does-javaioioexception-cant-handle-font-width-mean">What does “java.io.IOException: Can’t handle font width” mean?</h3>
+
+<p>This probably means that the “Resources” directory is not in your classpath. The
+Resources directory is included in the PDFBox jar so this is only a problem if you
+are building PDFBox yourself and not using the binary.</p>
+
+<p><a name="permission"></a></p>
+
+<h3 id="why-do-i-get-you-do-not-have-permission-to-extract-text-on-some-documents">Why do I get “You do not have permission to extract text” on some documents?</h3>
+
+<p>PDF documents have certain security permissions that can be applied to them and two
+passwords associated with them, a user password and a master password. If the “cannot extract text”
+permission bit is set then you need to decrypt the document with the master password in order
+to extract the text.</p>
+
+<p><a name="partially"></a></p>
+
+<h3 id="cant-we-just-extract-the-text-without-parsing-the-whole-document-or-extract-text-as-it-is-parsed">Can’t we just extract the text without parsing the whole document or extract text as it is parsed?</h3>
+
+<p>Not really, for a couple reasons.</p>
+
+<ul>
+  <li>If the document is encrypted then you need to parse at least until the encryption dictionary before
+you can decrypt.</li>
+  <li>Sometimes the PDFont contains vital information needed for text extraction.</li>
+  <li>Text on a page does not have to be drawn in reading order. For example: if the page said “Hello World”,
+the pdf could have been written such that “World” gets drawn and then the cursor moves to the left and
+the word “Hello” is drawn.</li>
+</ul>
+
+<h2 id="pdf-rendering-1">PDF rendering</h2>
+
+<p><a name="dropshadow"></a></p>
+
+<h3 id="a-drop-shadow-is-missing-or-at-the-wrong-position-when-rendering-a-page">A drop shadow is missing or at the wrong position when rendering a page</h3>
+
+<p>Please attach your file in the <a href="https://issues.apache.org/jira/browse/PDFBOX-3000">PDFBOX-3000</a> issue</p>
+
+            </div>
+        </div>
+    </div>
+
+    <footer class="footer">
+        <div class="container">
+            <div class="row">
+                <div class="span3">
+                    <!-- nothing in here on purpose -->
+                </div>
+                <div class="span9">
+                    <p>Copyright © 2009&ndash;2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.
+                        <br/>Apache PDFBox, PDFBox, Apache, the Apache feather logo and the Apache PDFBox project logos are trademarks of The Apache Software Foundation.</p>
+                </div>
+            </div>
+        </div>
+    </footer>
+
+        <!-- Twitter Bootstrap and jQuery after this line. -->
+    <script src="//code.jquery.com/jquery-latest.js"></script>
+    <script src="/bootstrap/js/bootstrap.min.js"></script>
+    <script type="text/javascript">
+
+        $(document).ready(function () {
+                $('[data-toggle="offcanvas"]').click(function () {
+                $('.row-offcanvas').toggleClass('active')
+            });
+        });
+
+        $(function() {
+            // collapse tree nodes dynamically to support noscript
+            $('.sidebar-node').addClass('collapsed');
+
+
+            // toggle expand/collapse
+            $('.sidebar-node > a').click(function(e) {
+                $(this).parent().toggleClass('collapsed');
+                e.preventDefault();
+            });
+
+            // preserve expand/collapse across page navigation
+            var path = document.location.pathname;
+            if (path.indexOf('/1.8') == 0) {
+                $('#v1-8').removeClass('collapsed');
+                if (path.indexOf('/1.8/cookbook') == 0) {
+                    $('#v1-8-cookbook').removeClass('collapsed');
+                }
+            } else {
+                $('#v2-0').removeClass('collapsed');
+                if (path.indexOf('/2.0/cookbook') == 0) {
+                    $('#v2-0-cookbook').removeClass('collapsed');
+                }
+            }
+
+        });
+    </script>
+
+</body>
+
+</html>
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/getting-started.html
----------------------------------------------------------------------
diff --git a/content/2.0/getting-started.html b/content/2.0/getting-started.html
index 5256765..25a99e3 100644
--- a/content/2.0/getting-started.html
+++ b/content/2.0/getting-started.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/2.0/migration.html
----------------------------------------------------------------------
diff --git a/content/2.0/migration.html b/content/2.0/migration.html
index 67c513e..ce60616 100644
--- a/content/2.0/migration.html
+++ b/content/2.0/migration.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/building.html
----------------------------------------------------------------------
diff --git a/content/building.html b/content/building.html
index 4814c0a..fec29a6 100644
--- a/content/building.html
+++ b/content/building.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/codingconventions.html
----------------------------------------------------------------------
diff --git a/content/codingconventions.html b/content/codingconventions.html
index 7ee2bc6..f264924 100644
--- a/content/codingconventions.html
+++ b/content/codingconventions.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/download.html
----------------------------------------------------------------------
diff --git a/content/download.html b/content/download.html
index b60a0bf..55408ff 100644
--- a/content/download.html
+++ b/content/download.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/errors/403.html
----------------------------------------------------------------------
diff --git a/content/errors/403.html b/content/errors/403.html
index 0b3db20..ea328dc 100644
--- a/content/errors/403.html
+++ b/content/errors/403.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/errors/404.html
----------------------------------------------------------------------
diff --git a/content/errors/404.html b/content/errors/404.html
index 05cbc2c..42b75a7 100644
--- a/content/errors/404.html
+++ b/content/errors/404.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/ideas.html
----------------------------------------------------------------------
diff --git a/content/ideas.html b/content/ideas.html
index 8748676..96a9d2f 100644
--- a/content/ideas.html
+++ b/content/ideas.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/index.html
----------------------------------------------------------------------
diff --git a/content/index.html b/content/index.html
index 5846194..8c77cb1 100644
--- a/content/index.html
+++ b/content/index.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/mailinglists.html
----------------------------------------------------------------------
diff --git a/content/mailinglists.html b/content/mailinglists.html
index 944349e..1b2fe5c 100644
--- a/content/mailinglists.html
+++ b/content/mailinglists.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2015/10/19/pdfbox-2.0.0-RC1-released.html
----------------------------------------------------------------------
diff --git a/content/news/2015/10/19/pdfbox-2.0.0-RC1-released.html b/content/news/2015/10/19/pdfbox-2.0.0-RC1-released.html
index 5b61eed..0dbed84 100644
--- a/content/news/2015/10/19/pdfbox-2.0.0-RC1-released.html
+++ b/content/news/2015/10/19/pdfbox-2.0.0-RC1-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2015/11/22/pdfbox-2.0.0-RC2-released.html
----------------------------------------------------------------------
diff --git a/content/news/2015/11/22/pdfbox-2.0.0-RC2-released.html b/content/news/2015/11/22/pdfbox-2.0.0-RC2-released.html
index c9ad414..680c7f1 100644
--- a/content/news/2015/11/22/pdfbox-2.0.0-RC2-released.html
+++ b/content/news/2015/11/22/pdfbox-2.0.0-RC2-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/01/15/pdfbox-2.0.0-RC3-released.html
----------------------------------------------------------------------
diff --git a/content/news/2016/01/15/pdfbox-2.0.0-RC3-released.html b/content/news/2016/01/15/pdfbox-2.0.0-RC3-released.html
index a00db0a..acadb2b 100644
--- a/content/news/2016/01/15/pdfbox-2.0.0-RC3-released.html
+++ b/content/news/2016/01/15/pdfbox-2.0.0-RC3-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/01/18/pdfbox-1.8.11-released.html
----------------------------------------------------------------------
diff --git a/content/news/2016/01/18/pdfbox-1.8.11-released.html b/content/news/2016/01/18/pdfbox-1.8.11-released.html
index 4aa4120..d458823 100644
--- a/content/news/2016/01/18/pdfbox-1.8.11-released.html
+++ b/content/news/2016/01/18/pdfbox-1.8.11-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/03/18/pdfbox-2.0.0-released.html
----------------------------------------------------------------------
diff --git a/content/news/2016/03/18/pdfbox-2.0.0-released.html b/content/news/2016/03/18/pdfbox-2.0.0-released.html
index cb3a8b4..78ce881 100644
--- a/content/news/2016/03/18/pdfbox-2.0.0-released.html
+++ b/content/news/2016/03/18/pdfbox-2.0.0-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/04/26/new-pdfbox-releases.html
----------------------------------------------------------------------
diff --git a/content/news/2016/04/26/new-pdfbox-releases.html b/content/news/2016/04/26/new-pdfbox-releases.html
index 5bddd56..5b6f69e 100644
--- a/content/news/2016/04/26/new-pdfbox-releases.html
+++ b/content/news/2016/04/26/new-pdfbox-releases.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/05/27/CVE-2016-2175.html
----------------------------------------------------------------------
diff --git a/content/news/2016/05/27/CVE-2016-2175.html b/content/news/2016/05/27/CVE-2016-2175.html
index 6f8f20b..b5726da 100644
--- a/content/news/2016/05/27/CVE-2016-2175.html
+++ b/content/news/2016/05/27/CVE-2016-2175.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/06/09/pdfbox-2.0.2-released.html
----------------------------------------------------------------------
diff --git a/content/news/2016/06/09/pdfbox-2.0.2-released.html b/content/news/2016/06/09/pdfbox-2.0.2-released.html
index 5035e1b..3a9f064 100644
--- a/content/news/2016/06/09/pdfbox-2.0.2-released.html
+++ b/content/news/2016/06/09/pdfbox-2.0.2-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/news/2016/09/17/pdfbox-2.0.3-released.html
----------------------------------------------------------------------
diff --git a/content/news/2016/09/17/pdfbox-2.0.3-released.html b/content/news/2016/09/17/pdfbox-2.0.3-released.html
index 9368da6..a8a87d1 100644
--- a/content/news/2016/09/17/pdfbox-2.0.3-released.html
+++ b/content/news/2016/09/17/pdfbox-2.0.3-released.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/references.html
----------------------------------------------------------------------
diff --git a/content/references.html b/content/references.html
index 9cc36b9..279361f 100644
--- a/content/references.html
+++ b/content/references.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/siteupdate.html
----------------------------------------------------------------------
diff --git a/content/siteupdate.html b/content/siteupdate.html
index 4c18ea8..94cdabc 100644
--- a/content/siteupdate.html
+++ b/content/siteupdate.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/support.html
----------------------------------------------------------------------
diff --git a/content/support.html b/content/support.html
index 12e0ba2..ae72a06 100644
--- a/content/support.html
+++ b/content/support.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>

http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/eaca545b/content/team.html
----------------------------------------------------------------------
diff --git a/content/team.html b/content/team.html
index c2154df..01dc8c3 100644
--- a/content/team.html
+++ b/content/team.html
@@ -85,6 +85,7 @@
                                 </ul>
                             </li>
                             <li><a href="/2.0/commandline.html">Command Line Tools</a></li>
+                            <li><a href="/2.0/faq.html">FAQ</a></li>
                             <li><a href="/docs/2.0.3/javadocs/">API Docs</a></li>
                         </ul>
                     </li>


Mime
View raw message