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

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

Introduction

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

Prototype

@Override
public boolean setMargins(final float marginLeft, final float marginRight, final float marginTop,
        final float marginBottom) 

Source Link

Document

Sets the margins.

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);//from w ww . j av a2s. co  m
    document.setMargins(LEFT_MARGIN, RIGHT_MARGIN, TOP_MARGIN, BOTTOM_MARGIN);
}