Example usage for org.apache.pdfbox.pdmodel.common PDRectangle PDRectangle

List of usage examples for org.apache.pdfbox.pdmodel.common PDRectangle PDRectangle

Introduction

In this page you can find the example usage for org.apache.pdfbox.pdmodel.common PDRectangle PDRectangle.

Prototype

public PDRectangle(float width, float height) 

Source Link

Document

Constructor.

Usage

From source file:uia.pdf.papers.A3Paper.java

License:Apache License

/**
 * Constructor.//from w  ww  .  j  a  va 2  s  .co  m
 * @param landscape Landscape or not.
 */
public A3Paper(boolean landscape) {
    super(landscape ? new PDRectangle(PDRectangle.A3.getHeight(), PDRectangle.A3.getWidth()) : PDRectangle.A3);
    // super(landscape ? new PDRectangle(PDPage.PAGE_SIZE_A3.getHeight(), PDPage.PAGE_SIZE_A3.getWidth()) : PDPage.PAGE_SIZE_A3);
}

From source file:uia.pdf.papers.A4Paper.java

License:Apache License

/**
 * Constructor./*from w ww.j a  v  a2  s  . c  om*/
 */
public A4Paper(boolean landscape) {
    super(landscape ? new PDRectangle(PDRectangle.A4.getHeight(), PDRectangle.A4.getWidth()) : PDRectangle.A4);
    // super(landscape ? new PDRectangle(PDPage.PAGE_SIZE_A4.getHeight(), PDPage.PAGE_SIZE_A4.getWidth()) : PDPage.PAGE_SIZE_A4);
}