pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r969606 - in /websites/staging/pdfbox/trunk/content: ./ 2.0/migration.html
Date Tue, 20 Oct 2015 13:21:15 GMT
Author: buildbot
Date: Tue Oct 20 13:21:15 2015
New Revision: 969606

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 Tue Oct 20 13:21:15 2015
@@ -1 +1 @@
-1709456
+1709584

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 Tue Oct 20 13:21:15 2015
@@ -242,7 +242,7 @@ and so on. The <code>add</code> method n
 <span class="n">int</span> <span class="n">pageCounter</span> <span
class="p">=</span> 0<span class="p">;</span>
 <span class="k">for</span> <span class="p">(</span><span class="n">PDPage</span>
<span class="n">page</span> <span class="p">:</span> <span class="n">document</span><span
class="p">.</span><span class="n">getPages</span><span class="p">())</span>
 <span class="p">{</span> 
-    <span class="n">pdfRenderer</span><span class="p">.</span><span
class="n">renderImageWithDPI</span><span class="p">(</span><span class="n">page</span><span
class="p">,</span> 300<span class="p">,</span> <span class="n">ImageType</span><span
class="p">.</span><span class="n">RGB</span><span class="p">);</span>
+    <span class="n">pdfRenderer</span><span class="p">.</span><span
class="n">renderImageWithDPI</span><span class="p">(</span><span class="n">pageCounter</span><span
class="p">,</span> 300<span class="p">,</span> <span class="n">ImageType</span><span
class="p">.</span><span class="n">RGB</span><span class="p">);</span>
 
     <span class="o">//</span> <span class="n">suffix</span> <span
class="n">in</span> <span class="n">filename</span> <span class="n">will</span>
<span class="n">be</span> <span class="n">used</span> <span class="n">as</span>
<span class="n">the</span> <span class="n">file</span> <span class="n">format</span>
     <span class="n">ImageIOUtil</span><span class="p">.</span><span
class="n">writeImage</span><span class="p">(</span><span class="n">bim</span><span
class="p">,</span> <span class="n">pdfFilename</span> <span class="o">+</span>
&quot;<span class="o">-</span>&quot; <span class="o">+</span>
<span class="p">(</span><span class="n">pageCounter</span><span
class="o">++</span><span class="p">)</span> <span class="o">+</span>
&quot;<span class="p">.</span><span class="n">png</span>&quot;<span
class="p">,</span> 300<span class="p">);</span>



Mime
View raw message