You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2016/05/16 18:22:43 UTC

pdfbox-docs git commit: Site checkin for project Apache PDFBox Website

Repository: pdfbox-docs
Updated Branches:
  refs/heads/asf-site 799b1d78d -> 067cdaf3e


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

Branch: refs/heads/asf-site
Commit: 067cdaf3ecea65459df3646587c458a68e2d4d1b
Parents: 799b1d7
Author: Maruan Sahyoun <sa...@fileaffairs.de>
Authored: Mon May 16 20:22:38 2016 +0200
Committer: Maruan Sahyoun <sa...@fileaffairs.de>
Committed: Mon May 16 20:22:38 2016 +0200

----------------------------------------------------------------------
 content/2.0/migration.html | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/067cdaf3/content/2.0/migration.html
----------------------------------------------------------------------
diff --git a/content/2.0/migration.html b/content/2.0/migration.html
index 3fbae59..7af7db1 100644
--- a/content/2.0/migration.html
+++ b/content/2.0/migration.html
@@ -256,6 +256,7 @@ and so on. The <code class="highlighter-rouge">add</code> method now supports al
 <span class="kt">int</span> <span class="n">pageCounter</span> <span class="o">=</span> <span class="mi">0</span><span class="o">;</span>
 <span class="k">for</span> <span class="o">(</span><span class="n">PDPage</span> <span class="n">page</span> <span class="o">:</span> <span class="n">document</span><span class="o">.</span><span class="na">getPages</span><span class="o">())</span>
 <span class="o">{</span> 
+    <span class="c1">// note that the page number parameter is zero based</span>
     <span class="n">BufferedImage</span> <span class="n">bim</span> <span class="o">=</span> <span class="n">pdfRenderer</span><span class="o">.</span><span class="na">renderImageWithDPI</span><span class="o">(</span><span class="n">pageCounter</span><span class="o">,</span> <span class="mi">300</span><span class="o">,</span> <span class="n">ImageType</span><span class="o">.</span><span class="na">RGB</span><span class="o">);</span>
 
     <span class="c1">// suffix in filename will be used as the file format</span>