Added: pdfbox/cmssite/trunk/content/css/pygments-friendly.css
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/css/pygments-friendly.css?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/css/pygments-friendly.css (added)
+++ pdfbox/cmssite/trunk/content/css/pygments-friendly.css Fri Apr 26 16:33:47 
2013
@@ -0,0 +1,61 @@
+.hll { background-color: #ffffcc }
+.c { color: #60a0b0; font-style: italic } /* Comment */
+.err { border: 1px solid #FF0000 } /* Error */
+.k { color: #007020; font-weight: bold } /* Keyword */
+.o { color: #666666 } /* Operator */
+.cm { color: #60a0b0; font-style: italic } /* Comment.Multiline */
+.cp { color: #007020 } /* Comment.Preproc */
+.c1 { color: #60a0b0; font-style: italic } /* Comment.Single */
+.cs { color: #60a0b0; background-color: #fff0f0 } /* Comment.Special */
+.gd { color: #A00000 } /* Generic.Deleted */
+.ge { font-style: italic } /* Generic.Emph */
+.gr { color: #FF0000 } /* Generic.Error */
+.gh { color: #000080; font-weight: bold } /* Generic.Heading */
+.gi { color: #00A000 } /* Generic.Inserted */
+.go { color: #888888 } /* Generic.Output */
+.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
+.gt { color: #0044DD } /* Generic.Traceback */
+.kc { color: #007020; font-weight: bold } /* Keyword.Constant */
+.kd { color: #007020; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #007020; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #007020 } /* Keyword.Pseudo */
+.kr { color: #007020; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #902000 } /* Keyword.Type */
+.m { color: #40a070 } /* Literal.Number */
+.s { color: #4070a0 } /* Literal.String */
+.na { color: #4070a0 } /* Name.Attribute */
+.nb { color: #007020 } /* Name.Builtin */
+.nc { color: #0e84b5; font-weight: bold } /* Name.Class */
+.no { color: #60add5 } /* Name.Constant */
+.nd { color: #555555; font-weight: bold } /* Name.Decorator */
+.ni { color: #d55537; font-weight: bold } /* Name.Entity */
+.ne { color: #007020 } /* Name.Exception */
+.nf { color: #06287e } /* Name.Function */
+.nl { color: #002070; font-weight: bold } /* Name.Label */
+.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
+.nt { color: #062873; font-weight: bold } /* Name.Tag */
+.nv { color: #bb60d5 } /* Name.Variable */
+.ow { color: #007020; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #40a070 } /* Literal.Number.Float */
+.mh { color: #40a070 } /* Literal.Number.Hex */
+.mi { color: #40a070 } /* Literal.Number.Integer */
+.mo { color: #40a070 } /* Literal.Number.Oct */
+.sb { color: #4070a0 } /* Literal.String.Backtick */
+.sc { color: #4070a0 } /* Literal.String.Char */
+.sd { color: #4070a0; font-style: italic } /* Literal.String.Doc */
+.s2 { color: #4070a0 } /* Literal.String.Double */
+.se { color: #4070a0; font-weight: bold } /* Literal.String.Escape */
+.sh { color: #4070a0 } /* Literal.String.Heredoc */
+.si { color: #70a0d0; font-style: italic } /* Literal.String.Interpol */
+.sx { color: #c65d09 } /* Literal.String.Other */
+.sr { color: #235388 } /* Literal.String.Regex */
+.s1 { color: #4070a0 } /* Literal.String.Single */
+.ss { color: #517918 } /* Literal.String.Symbol */
+.bp { color: #007020 } /* Name.Builtin.Pseudo */
+.vc { color: #bb60d5 } /* Name.Variable.Class */
+.vg { color: #bb60d5 } /* Name.Variable.Global */
+.vi { color: #bb60d5 } /* Name.Variable.Instance */
+.il { color: #40a070 } /* Literal.Number.Integer.Long */

Propchange: pdfbox/cmssite/trunk/content/css/pygments-friendly.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/css/pygments-github.css
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/css/pygments-github.css?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/css/pygments-github.css (added)
+++ pdfbox/cmssite/trunk/content/css/pygments-github.css Fri Apr 26 16:33:47 
2013
@@ -0,0 +1,61 @@
+.hll { background-color: #ffffcc }
+.c { color: #999988; font-style: italic } /* Comment */
+.err { color: #a61717; background-color: #e3d2d2 } /* Error */
+.k { color: #000000; font-weight: bold } /* Keyword */
+.o { color: #000000; font-weight: bold } /* Operator */
+.cm { color: #999988; font-style: italic } /* Comment.Multiline */
+.cp { color: #999999; font-weight: bold; font-style: italic } /* 
Comment.Preproc */
+.c1 { color: #999988; font-style: italic } /* Comment.Single */
+.cs { color: #999999; font-weight: bold; font-style: italic } /* 
Comment.Special */
+.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
+.ge { color: #000000; font-style: italic } /* Generic.Emph */
+.gr { color: #aa0000 } /* Generic.Error */
+.gh { color: #999999 } /* Generic.Heading */
+.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
+.go { color: #888888 } /* Generic.Output */
+.gp { color: #555555 } /* Generic.Prompt */
+.gs { font-weight: bold } /* Generic.Strong */
+.gu { color: #aaaaaa } /* Generic.Subheading */
+.gt { color: #aa0000 } /* Generic.Traceback */
+.kc { color: #000000; font-weight: bold } /* Keyword.Constant */
+.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */
+.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */
+.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */
+.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */
+.kt { color: #445588; font-weight: bold } /* Keyword.Type */
+.m { color: #009999 } /* Literal.Number */
+.s { color: #d01040 } /* Literal.String */
+.na { color: #008080 } /* Name.Attribute */
+.nb { color: #0086B3 } /* Name.Builtin */
+.nc { color: #445588; font-weight: bold } /* Name.Class */
+.no { color: #008080 } /* Name.Constant */
+.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */
+.ni { color: #800080 } /* Name.Entity */
+.ne { color: #990000; font-weight: bold } /* Name.Exception */
+.nf { color: #990000; font-weight: bold } /* Name.Function */
+.nl { color: #990000; font-weight: bold } /* Name.Label */
+.nn { color: #555555 } /* Name.Namespace */
+.nt { color: #000080 } /* Name.Tag */
+.nv { color: #008080 } /* Name.Variable */
+.ow { color: #000000; font-weight: bold } /* Operator.Word */
+.w { color: #bbbbbb } /* Text.Whitespace */
+.mf { color: #009999 } /* Literal.Number.Float */
+.mh { color: #009999 } /* Literal.Number.Hex */
+.mi { color: #009999 } /* Literal.Number.Integer */
+.mo { color: #009999 } /* Literal.Number.Oct */
+.sb { color: #d01040 } /* Literal.String.Backtick */
+.sc { color: #d01040 } /* Literal.String.Char */
+.sd { color: #d01040 } /* Literal.String.Doc */
+.s2 { color: #d01040 } /* Literal.String.Double */
+.se { color: #d01040 } /* Literal.String.Escape */
+.sh { color: #d01040 } /* Literal.String.Heredoc */
+.si { color: #d01040 } /* Literal.String.Interpol */
+.sx { color: #d01040 } /* Literal.String.Other */
+.sr { color: #009926 } /* Literal.String.Regex */
+.s1 { color: #d01040 } /* Literal.String.Single */
+.ss { color: #990073 } /* Literal.String.Symbol */
+.bp { color: #999999 } /* Name.Builtin.Pseudo */
+.vc { color: #008080 } /* Name.Variable.Class */
+.vg { color: #008080 } /* Name.Variable.Global */
+.vi { color: #008080 } /* Name.Variable.Instance */
+.il { color: #009999 } /* Literal.Number.Integer.Long */
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/content/css/pygments-github.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/css/site.css
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/css/site.css?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/css/site.css (added)
+++ pdfbox/cmssite/trunk/content/css/site.css Fri Apr 26 16:33:47 2013
@@ -0,0 +1,93 @@
+/*
+* 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.
+*/
+
+/*
+ *  The follwing rules are in addition to the base bootstrap css
+ *  Some of the CSS is copied over from bootstrap as markdown, the primary
+ *  format used to add content, doesn't allow to classes to the elements
+ */
+
+
+/* The overview 'region' is currently not in use but the first one in the
+ * general structure. Apply some padding to it to get off the top toolbar
+ */
+#overview {
+    padding: 60px 0px;
+}
+
+/* Add some space around the pdfbox logo */
+.logo {
+    padding: 12px 20px;
+}
+
+/* Styling for the copyright footer */
+#copyright {
+    min-height:150px;
+    margin-top: 5em;
+    padding: 2em 0;
+    color: rgb(232, 232, 232);
+    border-top: 1px solid rgb(229, 229, 229);
+    background: url("/images/footer.png") repeat scroll 0% 0% rgb(63, 63, 63);
+}
+
+/* add some extra space to the features description */
+#features {
+    margin-top: 2em;
+}
+
+/*
+ * Typography overwrites to bootstrap 
+ */
+h1, h2, h3, h4, h5 {
+    font-family: "OpenSans","Helvetica 
Neue","Helvetica",Arial,Verdana,sans-serif;
+    font-weight: 300;
+}
+
+
+h4 [class^="icon-"], h4 [class*=" icon-"] {
+    vertical-align: -10%;
+    font-size: 20px;
+    margin-right: 5px;
+}
+
+h4 [class^="iconic"], h4 [class*=" iconic"] {
+    vertical-align: -10%;
+    font-size: 24px;
+    margin-right: 8px;
+    color: #0088cc;
+}
+
+
+/* default styling for the tables copied over from bootstrap 
+ * to get basic styling for tables created through markdown 
+ */
+table {
+    width: 100%;
+    margin-bottom: 20px;
+}
+
+table th, table td {
+    padding: 8px;
+    line-height: 20px;
+    text-align: left;
+    vertical-align: top;
+    border-top: 1px solid rgb(221, 221, 221);
+}
+
+table tr:nth-child(even) td, table tr.even td { 
+    background: rgb(249,249,249); 
+}
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/content/css/site.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/dependencies.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/dependencies.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/dependencies.mdtext (added)
+++ pdfbox/cmssite/trunk/content/dependencies.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,68 @@
+Title:     Dependencies
+
+## PDFBox Dependencies
+
+PDFBox consists of a three related components and depends on a few external 
libraries. This page describes what these libraries are and how to include them 
in your application.
+
+### Core components
+
+The three PDFBox components are named pdfbox, fontbox and jempbox. The Maven 
groupId of all PDFBox components is org.apache.pdfbox.
+
+The fontbox and jempbox components are standalone libraries for handling font 
information and XMP metadata. These components have no external dependencies 
and can be
+used simply by adding the respective jar files to the classpath of your 
application.
+
+The main PDFBox component, pdfbox, has hard dependencies on the fontbox and 
jempbox components and the 
[commons-logging](http://commons.apache.org/logging/) library.
+Commons Logging is a generic wrapper around different logging frameworks, so 
you'll either need to also use a logging library like 
[log4j](http://logging.apache.org/log4j/)
+or let commons-logging fall back to the standard [java.util.logging 
API](http://java.sun.com/j2se/1.4.2/docs/guide/util/logging/overview.html)
+included in the Java platform.
+
+To add the pdfbox, fontbox, jempbox 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.
+
+    <dependency>
+      <groupId>org.apache.pdfbox</groupId>
+      <artifactId>pdfbox</artifactId>
+      <version>...</version>
+    </dependency>
+
+Set the version field to the latest stable PDFBox version.
+
+### Optional dependencies
+
+Some features in PDFBox depend on optional external libraries. You can enable 
these features simply by including the required libraries in the classpath of 
your application.
+
+The most notable such optional feature is support for PDF encryption. Instead 
of implementing its own encryption algorithms, PDFBox uses libraries from the 
+[Legion of the Bouncy Castle](http://www.bouncycastle.org/). Both the bcprov 
and bcmail libraries are needed and can be included using the Maven 
dependencies shown below.
+
+    <dependency>
+      <groupId>org.bouncycastle</groupId>
+      <artifactId>bcprov-jdk15</artifactId>
+      <version>1.44</version>
+    </dependency>
+    <dependency>
+      <groupId>org.bouncycastle</groupId>
+      <artifactId>bcmail-jdk15</artifactId>
+      <version>1.44</version>
+    </dependency>
+
+Another important optional feature is support for bidirectional languages like 
Arabic. PDFBox uses the ICU4J library from the 
+[International Components for Unicode](http://site.icu-project.org/) (ICU) 
project to support such languages in PDF documents. To add the ICU4J jar to 
your project, 
+use the following Maven dependency.
+
+    <dependency>
+      <groupId>com.ibm.icu</groupId>
+      <artifactId>icu4j</artifactId>
+      <version>3.8</version>
+    </dependency>
+
+PDFBox also contains extra support for use with the 
[Lucene](http://lucene.apache.org/) and [Ant](http://ant.apache.org/) projects. 
Since in these cases PDFBox is just an
+add-on feature to these projects, you should first set up your application to 
use Lucene or Ant and then add PDFBox support as described on this page.
+
+### Dependencies for Ant builds
+
+The above instructions expect that you're using 
[Maven](http://maven.apache.org/) or another build tool like 
[Ivy](http://ant.apache.org/ivy/) that supports Maven dependencies.
+If you instead use tools like [Ant](http://ant.apache.org/) where you need to 
explicitly include all the required library jars in your application, you'll 
need to do
+something different.
+
+The easiest approach is to run ``mvn dependency:copy-dependencies`` 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.

Propchange: pdfbox/cmssite/trunk/content/dependencies.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/downloads.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/downloads.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/downloads.mdtext (added)
+++ pdfbox/cmssite/trunk/content/downloads.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,106 @@
+Title: Downloads
+
+# Downloads
+
+There are several ways you can obtain the PDFBox binaries or sources:
+
+  - Apache PDFBox 1.8.1
+  - Get the latest source from version control
+  - Download old releases
+  - Export control information
+
+See also the export control information related to the encryption features 
included in Apache PDFBox.
+
+## Apache PDFBox 1.8.1
+
+Apache PDFBox is an open source Java library for working with PDF documents.
+
+  - 
[pdfbox-1.8.1-src.zip](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/pdfbox-1.8.1-src.zip)
 8.7MB, source archive, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/pdfbox-1.8.1-src.zip.asc) ]  
+    SHA1 checksum: 2b8bb4b3df4d5e84072cd4202acc87e09c95ba1a  
+    MD5 checksum: 0adba4b32cc7f7a2ed4847d0606ce3f2
+  - 
[pdfbox-app-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/pdfbox-app-1.8.1.jar)
 9.9MB, pre-built PDFBox standalone binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/pdfbox-app-1.8.1.jar.asc) ]  
 
+    SHA1 checksum: 33d7696a994fed7758d52e5f9b15aafd84825010  
+    MD5 checksum: ccb984b982377340a28ea473c8e23c8a
+  - 
[preflight-app-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/preflight-app-1.8.1.jar)
 6.6MB, pre-built Preflight standalone binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/preflight-app-1.8.1.jar.asc) 
]    
+    SHA1 checksum: 00cfd724dbc938ccd39137cc5d764edc1ba893b0  
+    MD5 checksum: 6cfe46d4d248c28867b970cc6c6c06ab
+  - 
[pdfbox-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/pdfbox-1.8.1.jar)
 3.7MB, pre-built binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/pdfbox-1.8.1.jar.asc) ]  
+    SHA1 checksum: 2127ceef9eceffe4fefe445fa8eae4609c51e  
+    MD5 checksum: 82991170f3c5d4bbfee7c9ec2783f415
+  - 
[fontbox-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/fontbox-1.8.1.jar)
 184KB, pre-built binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/fontbox-1.8.1.jar.asc) ]     
+    SHA1 checksum: 32879bb6bb87b15c6d53bc358e83ede40fc729ae  
+    MD5 checksum: 7ea74850d238b2dab34954b1bfa9c218
+  - 
[jempbox-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/jempbox-1.8.1.jar)
 50KB, pre-built binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/jempbox-1.8.1.jar.asc) ]    
+    SHA1 checksum: 1a34de98c20293b07474aa17cb05dad66070b9c8  
+    MD5 checksum: 841ce10db23ce477df2b6b24104761de
+  - 
[preflight-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/preflight-1.8.1.jar)
 283KB, pre-built binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/preflight-1.8.1.jar.asc) ]   
+    SHA1 checksum: 800d94bd5fe139e959de9cad29ad67d5390d2b52  
+    MD5 checksum: 39cece1bc14f24207f55444642a5db6c
+  - 
[xmpbox-1.8.1.jar](http://www.apache.org/dyn/closer.cgi/pdfbox/1.8.1/xmpbox-1.8.1.jar)
 112KB, pre-built binary, [ [PGP 
signature](http://www.apache.org/dist/pdfbox/1.8.1/xmpbox-1.8.1.jar.asc) ]    
+    SHA1 checksum: 2fe12b2cf8fc60c9fa955db047760f8070d47b20  
+    MD5 checksum: b68e787d0248b81c40d65e72c914e806
+
+This is an incremental feature release based on the earlier 1.x releases.
+
+See the release notes for more details.
+
+## Verify the integrity of the files
+
+It is essential that you verify the integrity of the downloaded files using 
the PGP signatures or MD5 and SHA1 checksums. Please read Verifying Apache HTTP 
Server Releases for
+more information on why you should verify our releases.
+
+The PGP signatures can be verified using PGP or GPG. First download the KEYS 
file as well as the .asc signature files for the relevant release packages. 
Make sure you get these
+files from the main distribution directory, rather than from a mirror. Then 
verify the signatures using
+
+    % pgpk -a KEYS
+       % pgpv pdfbox-X.Y.Z-src.zip.asc
+      
+
+or
+
+       % pgp -ka KEYS
+    % pgp pdfbox-X.Y.Z-src.zip.asc
+      
+
+or
+
+    % gpg --import KEYS
+    % gpg --verify pdfbox-X.Y.Z-src.zip.asc
+      
+
+Alternatively, you can verify the MD5 or SHA1 checksums on the files. For 
checking the MD5 checksums, use the program called md5 or md5sum included in 
many Unix distributions. The similar program for SHA1 is called sha1sum. It is 
also available as part of the GNU core utilities. Windows users can get binary 
md5 programs from here, here, or here.
+
+## Get the latest source from version control
+
+To fetch the latest source code from the trunk in the Subversion repository, 
just run the following command:
+
+    svn checkout http://svn.apache.org/repos/asf/pdfbox/trunk/
+
+You can also browse the Subversion repository using ViewVC at 
<http://svn.apache.org/viewvc/pdfbox/>.
+
+A Git mirror of PDFBox is available at <http://git.apache.org/>.
+
+## Download old releases
+
+Past Apache releases (starting with version 0.8.0-incubating) are available in 
the release archive at:
+
+<http://archive.apache.org/dist/pdfbox/>
+
+The old releases (up to version 0.7.3) published from SourceForge are still 
available. They can be downloaded from this location:
+
+<http://sourceforge.net/project/showfiles.php?group_id=78314>
+
+## Export control information
+
+This distribution includes cryptographic software. The country in which you 
currently reside may have restrictions on the import, possession, use, and/or 
re-export
+to another country, of encryption software. BEFORE using any encryption 
software, please check your country's laws, regulations and policies concerning 
the import,
+possession, or use, and re-export of encryption software, to see if this is 
permitted. See <http://www.wassenaar.org/> for more information.
+
+The U.S. Government Department of Commerce, Bureau of Industry and Security 
(BIS), has classified this software as Export Commodity Control Number (ECCN) 
5D002.C.1,
+which includes information security software using or performing cryptographic 
functions with asymmetric algorithms. The form and manner of this Apache 
Software Foundation
+distribution makes it eligible for export under the License Exception ENC 
Technology Software Unrestricted (TSU) exception (see the BIS Export 
Administration Regulations,
+Section 740.13) for both object code and source code.
+
+The following provides more details on the included cryptographic software:
+
+    Apache PDFBox uses the Java Cryptography Architecture (JCA) and the Bouncy 
Castle libraries for handling encryption in PDF documents. 

Propchange: pdfbox/cmssite/trunk/content/downloads.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/getting-started.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/getting-started.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/getting-started.mdtext (added)
+++ pdfbox/cmssite/trunk/content/getting-started.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,20 @@
+Title: Getting Started
+
+We're on the way to update the documentation to make it more easy to get in 
touch with Sling. At the moment we can give you the following starting points:
+
+{% for label, page in children %}* [{{ page.headers.title }}]({{ page.path }})
+{% endfor %}
+
+## Where to head from here
+
+We recommend you read through following topics to get as fast as possible into 
Sling: 
+
+* [Getting and building Sling]({{ refs.getting-and-building-sling.path }})
+* [Architecture]({{ refs.architecture.path }})
+* [Dispatching Requests]({{ refs.dispatching-requests.path }})
+* [Resources]({{ refs.resources.path }})
+* [Setting up an Sling-Project with Eclipse]({{ 
refs.http://cwiki.apache.org/SLING/setting-up-eclipse-34-for-sling.html.path }})
+* [Manipulating Content - The SlingPostServlet (servlets.post)]({{ 
refs.manipulating-content-the-slingpostservlet-servlets-post.path }})
+* [Request Parameters]({{ refs.request-parameters.path }})
+* [Authentication]({{ refs.authentication.path }})
+* [Eventing and Jobs]({{ refs.eventing-and-jobs.path }})
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/content/getting-started.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/images/footer.png
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/images/footer.png?rev=1476279&view=auto
==============================================================================
Binary file - no diff available.

Propchange: pdfbox/cmssite/trunk/content/images/footer.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: pdfbox/cmssite/trunk/content/images/logo-head.gif
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/images/logo-head.gif?rev=1476279&view=auto
==============================================================================
Binary file - no diff available.

Propchange: pdfbox/cmssite/trunk/content/images/logo-head.gif
------------------------------------------------------------------------------
    svn:mime-type = image/gif

Added: pdfbox/cmssite/trunk/content/index.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/index.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/index.mdtext (added)
+++ pdfbox/cmssite/trunk/content/index.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,58 @@
+Title:     A Java PDF Library
+
+# Apache PDFBox - A Java PDF Library
+
+<p class="lead">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.</p>
+
+To get help on using PDFBox, please subscribe to the Users Mailing List and 
post your
+questions there. We're happy to help.
+
+The project is a volunteer effort and we're always looking for interested 
people to help
+us improve PDFBox. There are a multitude of ways that you can help us 
depending on your
+skills. Subscribe to the [Mailing Lists](/mailinglists.html) and find out how 
you can help.
+
+<h2 id="features">Features</h2>
+
+<div class="row-fluid">
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>Text 
Extraction</h4></header>
+       <p>Extract from within a PDF for usage in other applications.</p>
+ </div>
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>Merging &amp; 
Splitting</h4></header>
+       <p>Merge multiple PDFs into one or split a single PDF into multiple 
PDFs.</p>
+ </div>
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>Forms Filling</h4></header>
+       <p>Extract forms data from PDF forms or prefill a PDF form.</p>
+ </div>
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>PDF/A 
Validation</h4></header>
+       <p>Validate PDFs against the PDF/A ISO standard.</p>
+ </div>
+</div>
+
+<div class="row-fluid">
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>PDF Printing</h4></header>
+       <p>Print a PDF file to printers supported by the Java printing API.</p>
+ </div>
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>PDF to Image 
Conversion</h4></header>
+       <p>Convert you PDFs to Image files.</p>
+ </div>
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>PDF Creation</h4></header>
+       <p>Create a PDF from scratch.</p>
+ </div>
+ <div class="span3">
+       <header><h4><span class="iconic box"></span>Lucene Search Engine 
Integration</h4></header>
+       <p>Integrate PDF indexing with the Lucene search engine.</p>
+ </div>
+</div>
+

Propchange: pdfbox/cmssite/trunk/content/index.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/mailinglists.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/mailinglists.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/mailinglists.mdtext (added)
+++ pdfbox/cmssite/trunk/content/mailinglists.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,24 @@
+Title:     Mailing Lists
+
+## Mailing Lists
+
+Mailing Lists are the primary communication channels for all projects at 
+The Apache Software Foundation. Therefore, this applies to Apache PDFBox, too. 
+
+
+If you have any questions about or problems with Apache PDFBox, you can get 
them addressed 
+on the **Users Mailing List**. 
+
+If you like to participate in the development of Apache PDFBox, 
+the **Developers Mailing List** is the place to be. 
+
+If you like to keep track of what's being changed inside the project, you can 
subscribe 
+to the **Commit Mailing List**.
+
+<p class="alert alert-info">Please use the Users Mailing List if you are 
unsure which list to use</p>
+
+| Name | Address | Subscribe | Unsubscribe | Help | Archive | MarkMail |
+| -- | -- | -- | --| --| -- | -- |
+| Users | us...@pdfbox.apache.org | 
[Subscribe](mailto:users-subscr...@pdfbox.apache.org) | 
[Unsubscribe](mailto:users-unsubscr...@pdfbox.apache.org) | 
[Help](mailto:users-h...@pdfbox.apache.org) | 
[Archive](http://mail-archives.apache.org/mod_mbox/pdfbox-users/) | 
[MarkMail](http://pdfbox-users.markmail.org/) |
+| Developers | d...@pdfbox.apache.org | 
[Subscribe](mailto:dev-subscr...@pdfbox.apache.org) | 
[Unsubscribe](mailto:dev-unsubscr...@pdfbox.apache.org) | 
[Help](mailto:dev-h...@pdfbox.apache.org) | 
[Archive](http://mail-archives.apache.org/mod_mbox/pdfbox-dev/) | 
[MarkMail](http://pdfbox-dev.markmail.org/) |     
+| Commits List | commits@pdfbox.apache.org | 
[Subscribe](mailto:commits-subscr...@pdfbox.apache.org) | 
[Unsubscribe](mailto:commits-unsubscr...@pdfbox.apache.org) | 
[Help](mailto:commits-h...@pdfbox.apache.org) | 
[Archive](http://mail-archives.apache.org/mod_mbox/pdfbox-commits/) | 
[MarkMail](http://pdfbox-commits.markmail.org/) |    

Propchange: pdfbox/cmssite/trunk/content/mailinglists.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/references.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/references.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/references.mdtext (added)
+++ pdfbox/cmssite/trunk/content/references.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,43 @@
+Title:     References
+
+## PDFBox References
+
+This page lists projects that utilize PDFBox and articles that have been 
written about PDFBox. 
+Please file an [improvement 
issue](https://issues.apache.org/jira/browse/PDFBOX) to get new projects or 
articles added to this page, or to update the information on existing links.
+
+## Projects
+| Project Name  | License | Project Description |
+|--|--|--|
+| [Alfresco](http://www.alfresco.org/) | LGPL - commercial 
services/support/training is available | Alfresco is an open source, 
open-standards content repository built by the most experienced content 
management team that includes the co-founder of Documentum.|
+| [Apache Tika](http://tika.apache.org/) | Apache License V2.0 | Apache Tika 
is a toolkit for detecting and extracting metadata and structured text content 
from various documents using existing parser libraries.|
+| [Centric CRM](http://www.centriccrm.com/) | Free To Use But 
Restricted/Commercial | The Most Advanced Open Source CRM Software.|
+| [Canoo Webtest](http://webtest.canoo.com/webtest/manual/WebTestHome.html) | 
BSD Like | Free OpenSource tool for XP-style acceptance testing of Java-based 
Web applications.|
+| [contineo](http://webtest.canoo.com/webtest/manual/WebTestHome.html) | GPL | 
Contineo is a web based document management system.|
+| [DirectPrint](http://forms.pjc.bean.over-blog.com/) | BSD | JavaBean used to 
get back print features lost in Oracle Reports|
+| [Jahia](http://www.jahia.org/) | collaborative source license | The Jahia 
product is currently the most powerful, ready-to-use and affordable integrated 
midrange Java Content Management and Corporate Portal Server.|
+| [jLibrary](http://jlibrary.sourceforge.net/) | BSD | jLibrary is a Document 
Management System, oriented for personal and enterprise use.|
+| [Jomic](http://jomic.sourceforge.net/) | GPL | Jomic is a viewer for comic 
book archives.|
+| [JpdfUnit](http://jpdfunit.sourceforge.net/) | Apache License V2.0 | pdfUnit 
is a framework for testing a generated pdf document with the JUnit Test 
Framework.|
+| [Liferay Portal](http://www.liferay.com/) | MIT | Liferay Portal is an open 
source portal that helps organizations collaborate more efficiently by 
providing a consolidated view of disparate applications.|
+| [LIUS](http://www.bibl.ulaval.ca/lius/index.en.html) | GPL | LIUS is an 
indexing Java framework based on the Jakarta Lucene project. The LIUS framework 
adds to Lucene many files format indexing fonctionalities as: Ms World, Ms 
Excel, Ms PowerPoint, RTF, PDF, XML, HTML, TXT, Open Office suite and 
JavaBeans.|
+| [LuceGene](http://www.gmod.org/lucegene/) | Artistic License | LuceGene is 
an open-source document/object search and retrieval system specially tuned for 
bioinformatics text databases and documents.|
+| [Lutece](http://www.lutece.paris.fr/) | BSD-like | Lutece is a portal engine 
which allows you to easily create your websites or intranets based upon 
HTML,XML content.|
+| [MMBase Lucene Module](http://mmapps.sourceforge.net/lucenemodule/) | MPL | 
Lucenemodule is a plugin (module) for the MMBase content management system that 
enables Lucene full text search through it's content, and thanks to PDFBox also 
PDF content.|
+| [Nutch](http://lucene.apache.org/nutch/) | ASL | Nutch is open source 
web-search software. It builds on Lucene, adding web-specifics, such as a 
crawler, a link-graph database, parsers for HTML and other document formats, 
etc.|
+| [OpenCms](http://www.opencms.org/) | Custom | OpenCms is a professional 
level Open Source Website Content Management System.|
+| [OpenSearchServer](http://www.open-search-server.com/) | GPLv3 | An open 
source search engine and crawler based on best open source technologies. It is 
a modern search engine and a suite of high-powered full text search algorithms.|
+| [Orbeon PresentationServer](http://forge.objectweb.org/projects/ops) | LGPL 
| Orbeon PresentationServer (OPS) is an open source J2EE-based platform for 
XML-centric web applications. OPS is built around XHTML, XForms, XSLT, XML 
pipelines, and Web Services, which makes it ideal for applications that 
capture, process and present XML data. Commercial consulting/training/support 
is available through orbeon.|
+| [PDFcat](http://pdfcat.sourceforge.net/) | LGPL | PDFcat is multi-platform 
catalog manager that provides searching capability over documents among virtual 
catalogs.|
+| [PodReader](http://homepage.mac.com/ptwobrussell/podreader.html) | GPL | 
PodReader is an application that facilitates making electronic documents like 
eBooks readable on your iPod.|
+| [SearchBlox](http://www.searchblox.com/) | Commercial | SearchBlox is a 
high-performance corporate search software designed for the Java 2 Enterprise 
Edition (J2EE) platform.|
+| [Terrier](http://ir.dcs.gla.ac.uk/terrier/) | MPL | Terrier is software for 
the rapid development of Web, intranet and desktop search engines.|
+| [Triboni GinkGO](http://www.triboni.com/) | Commercial | Triboni GinkGO is a 
highly scalable J2EE services platform that is based on a simple XML business 
object defintion and scripting language. Toghether with XSLT content centric 
web applications can be configured in a very short time.|
+| [Zilverline](http://www.zilverline.org/) | Collaborative Source License | 
Zilverline is a search engine that offers web access to your personal or 
intranet content.|
+
+## Articles/Books
+| Article Name | Article Abstract|
+|--|--|
+| Build an eDoc Reader for your iPod <br/>[Part 1 - User 
Interface](http://www.oreillynet.com/pub/a/mac/2004/12/14/ipod_reader.html)</br/>[Part
 2 - Document Reading 
Engine](http://www.oreillynet.com/pub/a/mac/2004/12/17/ipod_reader.html)</br/>[Part
 3 - *Integration with 
PDFBox*](http://www.oreillynet.com/pub/a/mac/2005/01/07/ipod_reader.html) | A 
three part article that discusses the implementation of the PodReader 
application. PodReader is Cocoa application written in Objective-C and article 
discusses how to use the Cocoa-Java bridge to integrate with the Java version 
of PDFBox.|
+| [Lucene In Action](http://www.lucenebook.com/) | A book that discusses 
integrating with the lucene search engine. One chapter discusses how to index 
various file formats and highlights PDFBox for indexing PDF documents.|
+| [Java Developers Journal - March 
2005](http://www.sys-con.com/story/?storyid=48543&DE=1) | An article written by 
the lead developer of PDFBox discussing text extraction and AcroForm 
integration using PDFBox functionality.|
+| [Refactoring trends across N versions of N Java open source systems: an 
empirical 
study](http://www.dcs.bbk.ac.uk/research/techreps/2005/bbkcs-05-02.pdf) | This 
article describes an empirical study of multiple versions of a range of open 
source Java systems in an attempt to understand whether refactoring occur and, 
if so, which types of refactoring were most (and least) common. PDFBox is used 
as a case study. |
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/content/references.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/sitemap.html
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/sitemap.html?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/sitemap.html (added)
+++ pdfbox/cmssite/trunk/content/sitemap.html Fri Apr 26 16:33:47 2013
@@ -0,0 +1,2 @@
+{% include "single_narrative.html" %}
+

Propchange: pdfbox/cmssite/trunk/content/sitemap.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/support.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/support.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/support.mdtext (added)
+++ pdfbox/cmssite/trunk/content/support.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,32 @@
+Title:     Support
+
+## How to get support
+
+If you have questions about using PDFBox or you are experiencing problems 
+then please use the Mailing Lists to report your problem. This will get you 
help from the 
+entire community.
+
+If you are sure you have found a bug the please report the problem in our 
+[Issue Tracker](https://issues.apache.org/jira/browse/PDFBOX). 
+
+<p class="alert alert-info">Please refrain from immediately opening a ticket 
in the issue tracker unless 
+you are really certain it's a problem in the PDFBox software. Try using the 
Mailing Lists 
+before.</p>
+
+### Before submitting a bug report
+
+Before you submit a bug there are several things you can try first
+
+ - for issues with text extraction try if Adobe Reader can extract the text
+ - try the latest SNAPSHOT to see if it's fixed in the pre-release
+ - search the mailing list to see if has been discussed before
+ - check the issue tracker to see if the issue has already been reported
+
+### When reporting a bug
+
+You can help us resolving a bug quicker if
+
+ - you submit the code to reproduce the bug
+ - you submit the additional files such as PDFs which are needed to reproduce 
the bug
+ - you submit provide the information which version of the libs you are using, 
the platform you are running on etc
+ - and if you could provide a patch for the bug that's a very welcome help for 
our small team
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/content/support.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/content/team.mdtext
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/content/team.mdtext?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/content/team.mdtext (added)
+++ pdfbox/cmssite/trunk/content/team.mdtext Fri Apr 26 16:33:47 2013
@@ -0,0 +1,33 @@
+Title:     Project Team
+
+## The Team
+
+A successful project requires many people to play many roles. Some members 
write code or documentation, while others are valuable as testers,
+submitting patches and suggestions.
+
+The team is comprised of Members and Contributors. Members have direct access 
to the source of a project and actively evolve the code-base.
+Contributors improve the project through submission of patches and suggestions 
to the Members. The number of Contributors to the project is unbounded.
+Get involved today. All contributions to the project are greatly appreciated.
+
+## Members
+
+The following is a list of developers with commit privileges that have 
directly contributed to the project in one way or another.
+
+| Id | Name | Roles |
+|--|--|--|
+| adam | Adam Nichols | PMC Member |
+| lehmi | Andreas Lehmkühler | PMC Chair |
+| blitchfield | Ben Litchfield | PMC Member |
+| carrier | Brian Carrier | PMC Member |
+| danielwilson | Daniel Wilson | PMC Member |
+| leleueri | Eric Leleu | PMC Member| 
+| gbailleul | Guillaume Bailleul | PMC Member |
+| jeremias | Jeremias Maerki | PMC Member |
+| koch | Johannes Koch | PMC Member |
+| jukka | Jukka Zitting | PMC Member |
+| kjackson | Kevin Jackson | PMC Member |
+| msahyoun | Maruan Sahyoun | PMC Member |
+| pkoch | Phillipp Koch | PMC Member |
+| tchojecki | Thomas Chojecki | PMC Member |
+| tboehme | Timo Boehme | PMC Member |
+| vfed | Villu Ruusmann | PMC Member |
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/content/team.mdtext
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/lib/path.pm
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/lib/path.pm?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/lib/path.pm (added)
+++ pdfbox/cmssite/trunk/lib/path.pm Fri Apr 26 16:33:47 2013
@@ -0,0 +1,38 @@
+package path;
+
+# taken from django's url.py
+
+our @patterns = (
+       [qr!\.mdtext$!, single_narrative => { template => 
"single_narrative.html" }],
+
+       [qr!/sitemap\.html$!, sitemap => { headers => { title => "Sitemap" }} ],
+
+) ;
+
+# for specifying interdependencies between files
+
+#our %dependencies = (
+#    "/sitemap.html" => [ grep s!^content!!, glob "content/*.mdtext" ],
+#);
+
+1;
+
+=head1 LICENSE
+
+           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. 
+

Propchange: pdfbox/cmssite/trunk/lib/path.pm
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/lib/view.pm
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/lib/view.pm?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/lib/view.pm (added)
+++ pdfbox/cmssite/trunk/lib/view.pm Fri Apr 26 16:33:47 2013
@@ -0,0 +1,145 @@
+package view;
+
+# abstract base class for default view methods
+# see http://svn.apache.org/repos/asf/infrastructure/site/trunk/lib/view.pm 
for sample usage
+
+use strict;
+use warnings;
+use Dotiac::DTL qw/Template *TEMPLATE_DIRS/;
+use Dotiac::DTL::Addon::markup;
+use ASF::Util qw/read_text_file sort_tables parse_filename/;
+
+push our @TEMPLATE_DIRS, "templates";
+our $VERSION = "1.0";
+
+# This is most widely used view.  It takes a
+# 'template' argument and a 'path' argument.
+# Assuming the path ends in foo.mdtext, any files
+# like foo.page/bar.mdtext will be parsed and
+# passed to the template in the "bar" (hash)
+# variable.
+
+sub single_narrative {
+    my %args = @_;
+    my $file = "content$args{path}";
+    my $template = $args{template};
+    $args{path} =~ s/\.mdtext$/\.html/;
+    $args{breadcrumbs} = view->can("breadcrumbs")->($args{path});
+    
+    read_text_file $file, \%args;
+    
+    $args{refs} = {};
+    
+    my $page_path = $file;
+    $page_path =~ s!\.[^./]+$!.page!;
+    if (-d $page_path) {
+        for my $f (grep -f, glob "$page_path/*.mdtext") {
+            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+            $args{$1} = {};
+            read_text_file $f, $args{$1};
+        }
+    }
+    
+    $args{content} = sort_tables($args{content});
+    
+    # the extra (3rd) return value is for sitemap support
+    return Template($template)->render(\%args), html => \%args;
+}
+
+
+# Has the same behavior as the above for foo.page/bar.mdtext
+# files, parsing them into a bar variable for the template.
+# Otherwise presumes the template is the path.
+
+sub news_page {
+    my %args = @_;
+    my $template = "content$args{path}";
+    $args{breadcrumbs} = view->can("breadcrumbs")->($args{path});
+    
+    my $page_path = $template;
+    $page_path =~ s!\.[^./]+$!.page!;
+    if (-d $page_path) {
+        for my $f (grep -f, glob "$page_path/*.mdtext") {
+            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
+            $args{$1} = {};
+            read_text_file $f, $args{$1};
+        }
+    }
+    
+    # the extra (3rd) return value is for sitemap support
+    return Template($template)->render(\%args), html => \%args;
+}
+
+# presumes the dependencies are all mdtext files with subheadings of the form
+## foo ## {#bar}
+
+sub sitemap {
+    my %args = @_;
+    my $template = "content$args{path}";
+    $args{breadcrumbs} = view->can("breadcrumbs")->($args{path});
+    my %data;
+    for (@{$path::dependencies{$args{path}}}) {
+        my $file = $_;
+        my ($filename, $dirname) = parse_filename;
+        no warnings 'once';
+        for my $p (@path::patterns) {
+            my ($re, $method, $args) = @$p;
+            next unless $file =~ $re;
+            my $s = view->can($method) or die "Can't locate method: $method\n";
+            my ($content, $ext, $vars) = $s->(path => $file, %$args); # 3rd 
return value used here
+            $file = "$dirname$filename.$ext";
+            $data{$file} = $vars;
+            last;
+        }
+    }
+    
+    my $content = "";
+    
+    for (sort keys %data) {
+        $content .= "- [$data{$_}->{headers}->{title}]($_)\n";
+        for my $hdr (grep /^#/, split "\n", $data{$_}->{content}) {
+            $hdr =~ /^(#+)\s+([^#]+)?\s+\1\s+\{#([^}]+)\}$/ or next;
+            my $level = length $1;
+        $level *= 4;
+        $content .= " " x $level;
+        $content .= "- [$2]($_#$3)\n";
+    }
+}
+$args{content} = $content;
+# the extra (3rd) return value is for sitemap support
+return Template($template)->render(\%args), html => \%args;
+}
+
+sub breadcrumbs {
+    my @path = split m!/!, shift;
+    pop @path;
+    my @rv;
+    my $relpath = "";
+    for (@path) {
+        $relpath .= "$_/";
+        $_ ||= "Home";
+        push @rv, qq(<a href="$relpath">\u$_</a>);
+    }
+    return join "&nbsp;&raquo&nbsp;", @rv;
+}
+
+1;
+
+=head1 LICENSE
+ 
+ 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.
\ No newline at end of file

Propchange: pdfbox/cmssite/trunk/lib/view.pm
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/templates/single_narrative.html
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/templates/single_narrative.html?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/templates/single_narrative.html (added)
+++ pdfbox/cmssite/trunk/templates/single_narrative.html Fri Apr 26 16:33:47 
2013
@@ -0,0 +1 @@
+{% extends "skeleton.html" %}

Propchange: pdfbox/cmssite/trunk/templates/single_narrative.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: pdfbox/cmssite/trunk/templates/skeleton.html
URL: 
http://svn.apache.org/viewvc/pdfbox/cmssite/trunk/templates/skeleton.html?rev=1476279&view=auto
==============================================================================
--- pdfbox/cmssite/trunk/templates/skeleton.html (added)
+++ pdfbox/cmssite/trunk/templates/skeleton.html Fri Apr 26 16:33:47 2013
@@ -0,0 +1,165 @@
+<!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>
+    <title>Apache PDFBox | {% block title %}{{ headers.title }}{% endblock 
%}</title>
+
+    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
+
+    <link href="/bootstrap/css/bootstrap.css" rel="stylesheet">
+    <link href="/bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
+    <link href="/FontAwesome/css/font-awesome.css" rel="stylesheet">
+    <link href="/Iconic/iconic fill/iconic_fill.css" rel="stylesheet">
+    <link href="/css/pygments-github.css" rel="stylesheet">
+    <link href="/css/site.css" rel="stylesheet">
+        
+        
+
+    {% if headers.atom %}
+      <link rel="alternate" href="{{ headers.atom.url }}"
+            type="application/atom+xml" title="{{ headers.atom.title }}" />
+    {% endif %}
+
+    {% if headers.base %}<base href="{{ headers.base }}" />{% endif %}
+    {% if headers.notice %}<!-- {{ headers.notice }} -->{% endif %}
+        <!-- Twitter Bootstrap and jQuery after this line. -->
+        <script src="http://code.jquery.com/jquery-latest.js";></script>
+        <script src="/bootstrap/js/bootstrap.js"</script>
+        <script>
+            $('.nav-collapse').collapse();
+        </script>
+  </head>
+  <body>
+
+    <div class="navbar navbar-fixed-top">
+      <div class="navbar-inner">
+          <a href="index.html"><img class="logo" 
src="/images/logo-head.gif"></a>
+      </div>
+    </div>
+
+    <header class="main" id="overview">
+        <div class="container">
+        </div>
+    </header>
+
+    <div class="container-fluid">
+        <div class="row-fluid">
+            <div class="span3">
+                <ul class="nav nav-list">
+                    <li class="nav-header">Apache PDFBox</li>
+                    <li><a href="/downloads.html">
+                        <i class="icon-chevron-right"></i>
+                    Downloads</a></li>
+                    <li><a href="/dependencies.html">
+                        <i class="icon-chevron-right"></i>
+                    Dependencies</a></li>
+                    <li><a href="/references.html">
+                        <i class="icon-chevron-right"></i>
+                        References</a></li>
+                <li class="nav-header">Community</li>
+                <li><a href="/support.html">
+                    <i class="icon-chevron-right"></i>
+                    Support
+                </a></li>
+                <li><a href="/mailinglists.html">
+                    <i class="icon-chevron-right"></i>
+                    Mailing Lists
+                </a></li>
+                <li><a href="/team.html">
+                    <i class="icon-chevron-right"></i>
+                    Project Team</a></li>
+                <li  class="nav-header">Documentation</li>
+                <li><a href="/architecture.html">
+                    <i class="icon-chevron-right"></i>
+                    Architecture</a></li>
+                <li><a href="/commandline/">
+                    <i class="icon-chevron-right"></i>
+                    Command Line Tools</a></li>
+                <li class="dropdown"><a  class="dropdown-toggle" 
data-toggle="dropdown" href="#">
+                    <i class="icon-chevron-right"></i>
+                    PDFBox Cookbook <b class="caret"></b></a>
+                    <ul class="dropdown-menu">
+                        <li><a href="/cookbook/documentcreation.html">
+                            <i class="icon-chevron-right"></i>
+                            Document Creation</a>
+                        </li>
+                        <li><a href="/cookbook/textextraction.html">
+                            <i class="icon-chevron-right"></i>
+                            Text Extraction</a>
+                        </li>
+                        <li><a href="/cookbook/pdfavalidation.html">
+                            <i class="icon-chevron-right"></i>
+                            PDF/A Validation</a>
+                        </li>
+                        <li><a href="/cookbook/workingwithfonts.html">
+                            <i class="icon-chevron-right"></i>
+                            Working with Fonts</a>
+                        </li>
+                        <li><a href="/cookbook/workingwithmetadata.html">
+                            <i class="icon-chevron-right"></i>
+                            Working with Metadata</a>
+                        </li>
+                        <li><a href="/cookbook/workingwithattachments.html">
+                            <i class="icon-chevron-right"></i>
+                            Working with Attachments</a>
+                        </li>
+                    </ul>
+                </li>
+                <li  class="nav-header">For Developers</li>
+                <li><a href="/building.html">
+                    <i class="icon-chevron-right"></i>
+                    Building PDFBox</a></li>
+                <li><a href="/codingconventions.html">
+                    <i class="icon-chevron-right"></i>
+                    Coding Conventions</a></li>
+                <li  class="nav-header">Apache Software Foundation</li>
+                <li><a href="http://www.apache.org/";>
+                    <i class="icon-chevron-right"></i>
+                    Apache Software Foundation</a></li>
+                <li><a href="http://www.apache.org/foundation/thanks.html";>
+                    <i class="icon-chevron-right"></i>
+                    ASF Sponsors</a></li>
+                <li><a href="http://www.apache.org/security/";>
+                    <i class="icon-chevron-right"></i>
+                    Security</a></li>
+                </ul>
+            </div>
+            <div class="span9">
+                <p>{% block content %} {{ content|markdown }} {% endblock 
%}</p>
+            </div>
+        </div>
+    </div>
+
+      <footer id="copyright">
+          <div class="row-fluid">
+              <div class="span3">
+                  <!-- nothing in here on purpose -->
+              </div>
+              
+              <div class="span9">
+                  <p>Copyright © 2013 The Apache Software Foundation, 
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>
+      </footer>
+      
+  </body>
+</html>

Propchange: pdfbox/cmssite/trunk/templates/skeleton.html
------------------------------------------------------------------------------
    svn:eol-style = native


Reply via email to