You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Daniel Brownell (JIRA)" <ji...@apache.org> on 2014/10/08 14:01:33 UTC
[jira] [Created] (PDFBOX-2410) if (page != null &&
page.getRotation() != null)
Daniel Brownell created PDFBOX-2410:
---------------------------------------
Summary: if (page != null && page.getRotation() != null)
Key: PDFBOX-2410
URL: https://issues.apache.org/jira/browse/PDFBOX-2410
Project: PDFBox
Issue Type: Bug
Affects Versions: 2.0.0
Environment: Java 7, Windows
Reporter: Daniel Brownell
Priority: Minor
static PDRectangle[] pageSizes = new PDRectangle[5];
static
{
pageSizes[0] = PDPage.PAGE_SIZE_A0;
pageSizes[1] = PDPage.PAGE_SIZE_A1;
pageSizes[2] = PDPage.PAGE_SIZE_A2;
pageSizes[3] = PDPage.PAGE_SIZE_A3;
pageSizes[4] = PDPage.PAGE_SIZE_A4;
}
page = new PDPage(pageSizes[size]);
...
if (page != null && page.getRotation() == 90) //NPE THROWN
{
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)