public class HtmlDocument
extends com.itextpdf.layout.Document
Document
, which is the default root element while creating a self-sufficient PDF. It contains several html-specific customizations.
Constructor and Description |
---|
HtmlDocument(com.itextpdf.kernel.pdf.PdfDocument pdfDoc, com.itextpdf.kernel.geom.PageSize pageSize, boolean immediateFlush)
Creates a html document from a PdfDocument with a manually set PageSize .
|
Modifier and Type | Method and Description |
---|---|
void |
relayout() |
add, add, checkClosingStatus, close, ensureRootRendererNotNull, flush, getBottomMargin, getDefaultProperty, getLeftMargin, getPageEffectiveArea, getPdfDocument, getRightMargin, getTopMargin, setBottomMargin, setLeftMargin, setMargins, setRenderer, setRightMargin, setTopMargin
add, createAndAddRendererSubTree, deleteOwnProperty, getFontProvider, getOwnProperty, getProperty, getRenderer, hasOwnProperty, hasProperty, setFontProvider, setProperty, showTextAligned, showTextAligned, showTextAligned, showTextAligned, showTextAligned, showTextAligned, showTextAlignedKerned
getSplitCharacters, getStrokeColor, getStrokeWidth, getTextRenderingMode, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundColor, setBackgroundImage, setBackgroundImage, setBaseDirection, setBold, setBorder, setBorderBottom, setBorderBottomLeftRadius, setBorderBottomRightRadius, setBorderLeft, setBorderRadius, setBorderRight, setBorderTop, setBorderTopLeftRadius, setBorderTopRightRadius, setCharacterSpacing, setDestination, setFixedPosition, setFixedPosition, setFixedPosition, setFixedPosition, setFont, setFontColor, setFontColor, setFontFamily, setFontFamily, setFontKerning, setFontScript, setFontSize, setHorizontalAlignment, setHyphenation, setItalic, setLineThrough, setOpacity, setRelativePosition, setSplitCharacters, setStrokeColor, setStrokeWidth, setTextAlignment, setTextRenderingMode, setUnderline, setUnderline, setUnderline, setUnderline, setWordSpacing
public HtmlDocument(com.itextpdf.kernel.pdf.PdfDocument pdfDoc, com.itextpdf.kernel.geom.PageSize pageSize, boolean immediateFlush)
PdfDocument
with a manually set PageSize
.
pdfDoc
- the in-memory representation of the PDF document
pageSize
- the page size
immediateFlush
- if true, write pages and page-related instructions to the PdfDocument
as soon as possible.
Copyright © 1998–2022 iText Group NV. All rights reserved.