public class DocumentRenderer extends RootRenderer
| Modifier and Type | Field and Description |
|---|---|
protected Document |
document |
protected TargetCounterHandler |
targetCounterHandler |
protected List<Integer> |
wrappedContentPage |
currentArea, immediateFlush, waitingDrawingElementschildRenderers, EPS, flushed, INF, isLastRendererForModelElement, modelElement, occupiedArea, OVERLAP_EPSILON, parent, positionedRenderers, properties| Constructor and Description |
|---|
DocumentRenderer(Document document) |
DocumentRenderer(Document document,
boolean immediateFlush) |
| Modifier and Type | Method and Description |
|---|---|
protected PageSize |
addNewPage(PageSize customPageSize)
Adds new page with defined page size to PDF document.
|
protected PageSize |
ensureDocumentHasNPages(int n,
PageSize customPageSize)
Ensures that PDF document has n pages.
|
protected void |
flushSingleRenderer(IRenderer resultRenderer) |
IRenderer |
getNextRenderer()
For
DocumentRenderer, this has a meaning of the renderer that will be used for relayout. |
LayoutArea |
getOccupiedArea()
Gets the resultant occupied area after the last call to the
IRenderer.layout(LayoutContext) method. |
TargetCounterHandler |
getTargetCounterHandler()
Get handler for target-counters.
|
boolean |
isRelayoutRequired()
Indicates if relayout is required for targetCounterHandler.
|
protected LayoutArea |
updateCurrentArea(LayoutResult overflowResult) |
addChild, close, flush, flushWaitingDrawingElements, getCurrentArea, layout, shrinkCurrentAreaAndProcessRendereraddAllProperties, alignChildHorizontally, allowLastYLineRecursiveExtraction, applyAbsolutePosition, applyAction, applyBorderBox, applyBorderBox, applyDestination, applyDestinationsAndAnnotation, applyLinkAnnotation, applyMargins, applyMargins, applyPaddings, applyPaddings, applyRelativePositioningTranslation, beginElementOpacityApplying, beginTransformationIfApplied, calculateAbsolutePdfBBox, calculateBBox, calculateShiftToPositionBBoxOfPointsAt, clipBackgroundArea, clipBackgroundArea, clipBorderArea, createXObject, deleteOwnProperty, deleteProperty, draw, drawBackground, drawBorder, drawChildren, endElementOpacityApplying, endTransformationIfApplied, getBackgroundArea, 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, updateWidthprotected Document document
protected TargetCounterHandler targetCounterHandler
public DocumentRenderer(Document document)
public DocumentRenderer(Document document, boolean immediateFlush)
public TargetCounterHandler getTargetCounterHandler()
TargetCounterHandler instancepublic boolean isRelayoutRequired()
public LayoutArea getOccupiedArea()
AbstractRendererIRenderer.layout(LayoutContext) method.getOccupiedArea in interface IRenderergetOccupiedArea in class AbstractRendererLayoutArea instancepublic IRenderer getNextRenderer()
DocumentRenderer, this has a meaning of the renderer that will be used for relayout.protected LayoutArea updateCurrentArea(LayoutResult overflowResult)
updateCurrentArea in class RootRendererprotected void flushSingleRenderer(IRenderer resultRenderer)
flushSingleRenderer in class RootRendererprotected PageSize addNewPage(PageSize customPageSize)
customPageSize - the size of new page, can be nullprotected PageSize ensureDocumentHasNPages(int n, PageSize customPageSize)
addNewPage(PageSize) method.n - the expected number of pages if documentcustomPageSize - the size of created pages, can be nullCopyright © 1998–2023 Apryse Group NV. All rights reserved.