Example usage for com.itextpdf.text.pdf PdfDocument setPageSize

List of usage examples for com.itextpdf.text.pdf PdfDocument setPageSize

Introduction

In this page you can find the example usage for com.itextpdf.text.pdf PdfDocument setPageSize.

Prototype

@Override
public boolean setPageSize(final Rectangle pageSize) 

Source Link

Document

Sets the pagesize.

Usage

From source file:org.openlmis.web.view.pdf.requisition.RequisitionPdfWriter.java

License:Open Source License

private void setDocumentAttributes(PdfDocument document) {
    document.setPageSize(PAGE_SIZE);
    document.setMargins(LEFT_MARGIN, RIGHT_MARGIN, TOP_MARGIN, BOTTOM_MARGIN);
}