Example usage for com.lowagie.text Rectangle setGrayFill

List of usage examples for com.lowagie.text Rectangle setGrayFill

Introduction

In this page you can find the example usage for com.lowagie.text Rectangle setGrayFill.

Prototype

public void setGrayFill(float value) 

Source Link

Document

Sets the the background color to a grayscale value.

Usage

From source file:mitm.common.pdf.MessagePDFBuilder.java

License:Open Source License

private Document createDocument() throws DocumentException {
    Rectangle pageSize = new Rectangle(documentWidth, documentHeight);

    pageSize.setGrayFill(grayFill);

    Document document = new Document(pageSize, marginLeft, marginRight, marginTop, marginBottom);

    document.addCreator(CREATOR);// ww w .ja va2s .c om

    return document;
}