Java com.itextpdf.layout Document fields, constructors, methods, implement or subclass

Example usage for Java com.itextpdf.layout Document fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.itextpdf.layout Document.

The text is from its open source code.

Constructor

Document(PdfDocument pdfDoc)
Creates a document from a PdfDocument .
Document(PdfDocument pdfDoc, PageSize pageSize)
Creates a document from a PdfDocument with a manually set PageSize .
Document(PdfDocument pdfDoc, PageSize pageSize, boolean immediateFlush)
Creates a document from a PdfDocument with a manually set PageSize .

Method

Documentadd(AreaBreak areaBreak)
Terminates the current element, usually a page.
Documentadd(IBlockElement element)
voidclose()
Closes the document and associated PdfDocument.
voidsetMargins(float topMargin, float rightMargin, float bottomMargin, float leftMargin)
Convenience method to set all margins with one method.