<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="main.xsl"?>
<home>
 <head>
  <title>Java PDF Library by BFO - A Java class library for creating PDF documents</title>
  <keywords>
   <keyword>Java PDF Software</keyword>
   <keyword>PDF documents</keyword>
   <keyword>example</keyword>
   <keyword>BFO</keyword>
  </keywords>
  <description>Example PDF documents that can be created with the BFO PDF Library</description>
 </head>
 <body class="theme--pdflibrary">
  <page-masthead product="pdf">
   <h1>PDF Library Example Documents</h1>
   <p>
     Here are some example PDF documents created with the PDF Library. These documents, along with a few others,
     are included in the download package with the commented source code that created them.
   </p>
  </page-masthead>

  <page-content>
   <div class="grid">
    <div class="col-desktop-2-3">

    <div class="example">
     <h2>PDF Viewer Applet</h2>
     <div>
      <div class="example__image"><a href="/products/pdfviewer/example/"><img src="images/viewer.png"/></a></div>
      <p>Here's an example installation of our Java PDF viewer running as an applet.</p>
      <script type="text/javascript"><![CDATA[
       if (isJavaWebStartInstalled()) {
         document.writeln("Alternatively, here's a Java Web Start version of the same code.<br /><a href="/products/pdfviewer/example/applet/bfopdf.jnlp">Download</a>&nbsp;(800KB)");
        } else {
          document.writeln("If you had Java Web Start installed in your browser, you'd also be able to run the viewer as a Java Web Start application.");
        }
      ]]></script>
      <p><a href="/products/pdfviewer/example/">View</a></p>
     </div>
    </div>

    <div class="example">
     <h2>Hello World</h2>
     <div>
      <div class="example__image"><a href="HelloWorld.pdf"><img src="images/helloworldthumb.gif" alt="Hello World example"/></a></div>
      <p>The simplest possible example. We made it a bit more interesting by encrypting it - the password is "password".</p>
      <div><a href="HelloWorld.pdf">View</a> (1.1KB)</div>
      <div><a viewtext="true" href="HelloWorld.java">Source code</a></div>
     </div>
    </div>

    <div class="example">
     <h2>Form Completion</h2>
     <div>
      <div class="example__image"><img src="images/formfillthumb.gif" alt="Form Completion example"/></div>
      <p>
        Demonstrates the <b>Extended Edition</b> feature of filling out a form
        in an existing PDF.  Fill out the fields below and press Go to see
        the result.
      </p>
      <div><a viewtext="true" href="FormFill.java">Source code</a></div>
      <form method="get" action="formfill">
       <table>
        <tr>
         <td align="right">Name</td>
         <td colspan="2"><input name="name" size="15" /></td>
        </tr>
        <tr>
         <td align="right">Country</td>
         <td><input name="country" size="10" /></td>
         <td><input type="submit" value="Go" /></td>
        </tr>
       </table>
       <input type="hidden" name="dummysuffix" value=".pdf" />
      </form>
     </div>
    </div>

    <div class="example">
     <h2>Multiple Fonts</h2>
     <div>
      <div class="example__image"><a href="Fonts.pdf"><img src="images/fontthumb.gif" alt="Multiple fonts example"/></a></div>
      <p>
       An example showing TrueType and Type 1 fonts, demonstrating kerning,
       ligatures and line justification.
      </p>
      <div><a href="Fonts.pdf">View</a> (44KB)</div>
      <div><a viewtext="true" href="Fonts.java">Source code</a></div>
     </div>
    </div>

    <div class="example">
     <h2>Images</h2>
     <div>
      <div class="example__image"><a href="Images.pdf"><img src="images/imagethumb.gif" alt="Images example"/></a></div>
      <p>
       An example showing embedded GIF, JPEG and PNG images.
       The BFO library can handle all these plus TIFF, PNM and JPEG2000.
      </p>
      <div><a href="Images.pdf">View</a> (165KB)</div>
      <div><a viewtext="true" href="Images.java">Source code</a></div>
     </div>
    </div>

    <div class="example">
     <h2>Unicode</h2>
     <div>
      <div class="example__image"><a href="Unicode.pdf"><img src="images/unicodethumb.gif" alt="Unicode example"/></a></div>
      <p>
       An example containing the same phrase in 23 different languages,
       demonstrating the Unicode capabilities of the library.
      </p>
      <div><a href="Unicode.pdf">View</a> (120KB)</div>
      <div><a viewtext="true" href="Unicode.java">Source code</a></div>
     </div>
    </div>

    <div class="example">
     <h2>Graphs</h2>
     <div>
      <div class="example__image"><a href="examples.pdf"><img src="images/graphthumb.gif" alt="Graph examples"/></a></div>
      <p>
       Things get even more interesting when you combine the PDF library
       with our old Graph library V1. This 24 page document shows what
       could be achieved. The new <a href="/products/graph/">Graph Library V2</a>
       can do all this, plus lots more.
      </p>
      <div><a href="examples.pdf">View</a> (171KB)</div>
     </div>
    </div>

    <div class="example">
     <h2>User Guide</h2>
     <div>
      <div class="example__image"><a href="../docs/userguide.pdf"><img src="images/userguidethumb.gif" alt="User Guide"/></a></div>
      <p>
       The user guide for the library was actually created with our
       <a href="/products/report/">Report Generator</a>. 
       It demonstrates most of the features available in the library.
      </p>
      <div><a href="../docs/userguide.pdf">View</a> (350KB)</div>
     </div>
    </div>

    </div><!--col-->

    <div class="col-desktop-1-3">

    </div>
   </div><!--grid-->
  </page-content>
 </body>
</home>