Example usage for com.itextpdf.layout Canvas Canvas

List of usage examples for com.itextpdf.layout Canvas Canvas

Introduction

In this page you can find the example usage for com.itextpdf.layout Canvas Canvas.

Prototype

public Canvas(PdfFormXObject formXObject, PdfDocument pdfDocument) 

Source Link

Document

Creates a new Canvas to manipulate a specific PdfFormXObject .

Usage

From source file:org.zafritech.zidingorms.io.pdf.PageXofY.java

public void writeTotal(PdfDocument pdf) {

    Canvas canvas = new Canvas(placeholder, pdf);

    canvas.showTextAligned(String.valueOf(pdf.getNumberOfPages()), 0, descent, TextAlignment.LEFT);
}