You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by bu...@apache.org on 2015/10/17 19:13:24 UTC

svn commit: r969290 - in /websites/staging/pdfbox/trunk/content: ./ 2.0/migration.html

Author: buildbot
Date: Sat Oct 17 17:13:24 2015
New Revision: 969290

Log:
Staging update by buildbot for pdfbox

Modified:
    websites/staging/pdfbox/trunk/content/   (props changed)
    websites/staging/pdfbox/trunk/content/2.0/migration.html

Propchange: websites/staging/pdfbox/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sat Oct 17 17:13:24 2015
@@ -1 +1 @@
-1708888
+1709199

Modified: websites/staging/pdfbox/trunk/content/2.0/migration.html
==============================================================================
--- websites/staging/pdfbox/trunk/content/2.0/migration.html (original)
+++ websites/staging/pdfbox/trunk/content/2.0/migration.html Sat Oct 17 17:13:24 2015
@@ -192,6 +192,18 @@ h2:hover > .headerlink, h3:hover > .head
 <li><code>PDXObjectForm</code> was renamed to <code>PDFormXObject</code>  </li>
 <li><code>PDXObjectImage</code> was renamed to <code>PDImageXObject</code></li>
 </ul>
+<h3 id="font-handling">Font Handling<a class="headerlink" href="#font-handling" title="Permanent link">&para;</a></h3>
+<p>Font handling now has full Unicode support and supports font subsetting.</p>
+<p>TrueType fonts shall now be loaded using</p>
+<div class="codehilite"><pre><span class="n">PDType0Font</span><span class="p">.</span><span class="n">load</span>
+</pre></div>
+
+
+<p>to leverage that. </p>
+<h3 id="pdf-resources-handling">PDF Resources Handling<a class="headerlink" href="#pdf-resources-handling" title="Permanent link">&para;</a></h3>
+<p>The individual calls to add resources such as <code>PDResource.addFont(PDFont font)</code> and <code>PDResource.addXObject(PDXObject xobject, String prefix)</code>
+have been replaced with <code>PDResource.add(resource type)</code> where <code>resource type</code> represents the different resource classes such as <code>PDFont</code>, <code>PDAbstractPattern</code>
+and so on. The <code>add</code> method now supports all the different type of resources available.</p>
 <h3 id="general-behaviour">General Behaviour<a class="headerlink" href="#general-behaviour" title="Permanent link">&para;</a></h3>
 <p>PDFBox 2.0.0 is now parsing PDF files following the Xref information in the PDF. This is similar to the functionality using
 <code>PDDocument.loadNonSeq</code> with PDFBox 1.8.x. Users still using <code>PDDocument.load</code> with PDFBox 1.8.x might experience different