List of usage examples for com.itextpdf.layout Canvas Canvas
public Canvas(PdfFormXObject formXObject, PdfDocument pdfDocument)
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); }