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:17 UTC

pdfbox-docs git commit: PDFBOX-3349: add info about 0-based page number as this differs from 1.8

Repository: pdfbox-docs
Updated Branches:
  refs/heads/master 2482d5d9f -> d9a8a7192


PDFBOX-3349: add info about 0-based page number as this differs from 1.8


Project: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/commit/d9a8a719
Tree: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/tree/d9a8a719
Diff: http://git-wip-us.apache.org/repos/asf/pdfbox-docs/diff/d9a8a719

Branch: refs/heads/master
Commit: d9a8a7192c3499b8d8d6bc9195820c65c9403f45
Parents: 2482d5d
Author: Maruan Sahyoun <sa...@fileaffairs.de>
Authored: Mon May 16 20:22:03 2016 +0200
Committer: Maruan Sahyoun <sa...@fileaffairs.de>
Committed: Mon May 16 20:22:03 2016 +0200

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


http://git-wip-us.apache.org/repos/asf/pdfbox-docs/blob/d9a8a719/content/2.0/migration.md
----------------------------------------------------------------------
diff --git a/content/2.0/migration.md b/content/2.0/migration.md
index 730e665..d379ba7 100644
--- a/content/2.0/migration.md
+++ b/content/2.0/migration.md
@@ -135,6 +135,7 @@ PDFRenderer pdfRenderer = new PDFRenderer(document);
 int pageCounter = 0;
 for (PDPage page : document.getPages())
 { 
+    // note that the page number parameter is zero based
     BufferedImage bim = pdfRenderer.renderImageWithDPI(pageCounter, 300, ImageType.RGB);
 
     // suffix in filename will be used as the file format