public class HtmlDocumentRenderer
extends com.itextpdf.layout.renderer.DocumentRenderer
document, wrappedContentPage
Constructor and Description |
---|
HtmlDocumentRenderer(com.itextpdf.layout.Document document, boolean immediateFlush)
Instantiates a new HtmlDocumentRenderer instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(com.itextpdf.layout.renderer.IRenderer renderer) |
protected com.itextpdf.kernel.geom.PageSize |
addNewPage(com.itextpdf.kernel.geom.PageSize customPageSize) |
void |
close() |
void |
flush() |
com.itextpdf.layout.renderer.IRenderer |
getNextRenderer() |
void |
processPageRules(com.itextpdf.styledxmlparser.node.INode rootNode, com.itextpdf.styledxmlparser.css.ICssResolver cssResolver, ProcessorContext context)
Processes the page rules.
|
protected void |
shrinkCurrentAreaAndProcessRenderer(com.itextpdf.layout.renderer.IRenderer renderer, List |
protected com.itextpdf.layout.layout.LayoutArea |
updateCurrentArea(com.itextpdf.layout.layout.LayoutResult overflowResult) |
flushSingleRenderer, getOccupiedArea
flushWaitingDrawingElements, getCurrentArea, layout
addAllProperties, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTransformationIfApplied, getBorderAreaBBox, getBorderRadii, getBorders, getChildRenderers, getDefaultProperty, getFirstYLineRecursively, getInnerAreaBBox, getLastYLineRecursively, getMargins, getMinMaxWidth, getModelElement, getOccupiedAreaBBox, getOwnProperties, getOwnProperty, getPaddings, getParent, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsColor, getPropertyAsFloat, getPropertyAsFloat, getPropertyAsFont, getPropertyAsInteger, getPropertyAsTransparentColor, getPropertyAsUnitValue, hasAbsoluteUnitValue, hasOwnOrModelProperty, hasOwnProperty, hasProperty, hasRelativeUnitValue, initElementAreas, isAbsolutePosition, isBorderBoxSizing, isFirstOnRootArea, isFixedLayout, isFlushed, isKeepTogether, isNotFittingHeight, isNotFittingLayoutArea, isNotFittingWidth, isOverflowFit, isOverflowProperty, isOverflowProperty, isOverflowProperty, isPositioned, isRelativePosition, isStaticLayout, move, rectangleToPointsList, retrieveHeight, retrieveMaxHeight, retrieveMaxWidth, retrieveMinHeight, retrieveMinWidth, retrieveUnitValue, retrieveUnitValue, retrieveWidth, setBorders, setMinMaxWidthBasedOnFixedWidth, setParent, setProperty, toString, transformPoints, updateHeight, updateHeightsOnSplit, updateMaxHeight, updateMinHeight, updateWidth
public HtmlDocumentRenderer(com.itextpdf.layout.Document document, boolean immediateFlush)
HtmlDocumentRenderer
instance.
document
- an iText Document
instance
immediateFlush
- the immediate flush indicator
public void processPageRules(com.itextpdf.styledxmlparser.node.INode rootNode, com.itextpdf.styledxmlparser.css.ICssResolver cssResolver, ProcessorContext context)
rootNode
- the root node
cssResolver
- the CSS resolver
context
- the processor context
public void addChild(com.itextpdf.layout.renderer.IRenderer renderer)
addChild
in interface com.itextpdf.layout.renderer.IRenderer
addChild
in class com.itextpdf.layout.renderer.RootRenderer
public void close()
close
in class com.itextpdf.layout.renderer.RootRenderer
public com.itextpdf.layout.renderer.IRenderer getNextRenderer()
getNextRenderer
in interface com.itextpdf.layout.renderer.IRenderer
getNextRenderer
in class com.itextpdf.layout.renderer.DocumentRenderer
public void flush()
flush
in class com.itextpdf.layout.renderer.RootRenderer
protected com.itextpdf.layout.layout.LayoutArea updateCurrentArea(com.itextpdf.layout.layout.LayoutResult overflowResult)
updateCurrentArea
in class com.itextpdf.layout.renderer.DocumentRenderer
protected void shrinkCurrentAreaAndProcessRenderer(com.itextpdf.layout.renderer.IRenderer renderer, ListresultRenderers, com.itextpdf.layout.layout.LayoutResult result)
shrinkCurrentAreaAndProcessRenderer
in class com.itextpdf.layout.renderer.RootRenderer
protected com.itextpdf.kernel.geom.PageSize addNewPage(com.itextpdf.kernel.geom.PageSize customPageSize)
addNewPage
in class com.itextpdf.layout.renderer.DocumentRenderer
Copyright © 1998–2019 iText Group NV. All rights reserved.