@NotThreadSafe public class PLPageSet extends AbstractPLObject<PLPageSet> implements IPLHasMarginBorderPadding<PLPageSet>, IPLHasFillColor<PLPageSet>
| Modifier and Type | Class and Description |
|---|---|
static class |
PLPageSet.PageSetPrepareResult |
DEFAULT_MARGINDEFAULT_PADDINGDEFAULT_BORDERDEFAULT_FILL_COLOR| Constructor and Description |
|---|
PLPageSet(float fWidth,
float fHeight) |
PLPageSet(org.apache.pdfbox.pdmodel.common.PDRectangle aPageRect) |
PLPageSet(SizeSpec aPageSize) |
getDebugID, getID, setBasicDataFrom, setIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFullBottom, getFullLeft, getFullRight, getFullTop, getFullXSum, getFullYSum, getMarginAndBorderBottom, getMarginAndBorderLeft, getMarginAndBorderRight, getMarginAndBorderTop, getMarginAndBorderXSum, getMarginAndBorderYSumgetMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMarginXSum, getMarginYSum, setMargin, setMargin, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTopgetPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPaddingXSum, getPaddingYSum, setPadding, setPadding, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTopgetBorderBottomWidth, getBorderLeftWidth, getBorderRightWidth, getBorderTopWidth, getBorderXSumWidth, getBorderYSumWidth, setBorder, setBorder, setBorder, setBorderBottom, setBorderLeft, setBorderRight, setBorderTopgetAsSplittable, getDebugID, isSplittablehasFillColorpublic PLPageSet(@Nonnull org.apache.pdfbox.pdmodel.common.PDRectangle aPageRect)
public PLPageSet(@Nonnegative float fWidth, @Nonnegative float fHeight)
public float getPageWidth()
public float getPageHeight()
@Nonnull public final PLPageSet setMargin(@Nonnull MarginSpec aMargin)
IPLHasMarginsetMargin in interface IPLHasMargin<PLPageSet>aMargin - Margin to use. May not be null.@Nonnull public final MarginSpec getMargin()
getMargin in interface IPLHasMargin<PLPageSet>null.@Nonnull public final PLPageSet setPadding(@Nonnull PaddingSpec aPadding)
IPLHasPaddingsetPadding in interface IPLHasPadding<PLPageSet>aPadding - Padding to use. May not be null.@Nonnull public final PaddingSpec getPadding()
getPadding in interface IPLHasPadding<PLPageSet>null.@Nonnull public final PLPageSet setBorder(@Nonnull BorderSpec aBorder)
IPLHasBordersetBorder in interface IPLHasBorder<PLPageSet>aBorder - Border to use. May not be null.@Nonnull public final BorderSpec getBorder()
getBorder in interface IPLHasBorder<PLPageSet>null.@Nonnull public PLPageSet setFillColor(@Nullable Color aFillColor)
IPLHasFillColorsetFillColor in interface IPLHasFillColor<PLPageSet>aFillColor - The fill color to use. May be null.@Nullable public Color getFillColor()
getFillColor in interface IPLHasFillColor<PLPageSet>null.@Nullable public IRenderingContextCustomizer getRenderingContextCustomizer()
@Nonnull public PLPageSet setRenderingContextCustomizer(@Nullable IRenderingContextCustomizer aRCCustomizer)
@Nonnegative public float getAvailableWidth()
@Nonnegative public float getAvailableHeight()
@Nullable public IPLElement<?> getPageHeader()
null.@Nonnull public PLPageSet setPageHeader(@Nullable IPLElement<?> aPageHeader)
aPageHeader - The global page header. May be null.@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<? extends IPLRenderableObject<?>> getAllElements()
@Nonnegative public int getElementCount()
public void forEachElement(@Nonnull Consumer<? super IPLRenderableObject<?>> aConsumer)
@Nonnull public PLPageSet addElement(@Nonnull IPLRenderableObject<?> aElement)
@Nullable public IPLElement<?> getPageFooter()
null.@Nonnull public PLPageSet setPageFooter(@Nullable IPLElement<?> aPageFooter)
aPageFooter - The global page footer. May be null.public float getYTop()
@Nonnull public PLPageSet.PageSetPrepareResult prepareAllPages(@Nonnull PreparationContextGlobal aGlobalCtx) throws IOException
IOExceptionpublic void renderAllPages(@Nonnull PLPageSet.PageSetPrepareResult aPrepareResult, @Nonnull org.apache.pdfbox.pdmodel.PDDocument aDoc, boolean bDebug, @Nonnegative int nPageSetIndex, @Nonnegative int nTotalPageStartIndex, @Nonnegative int nTotalPageCount) throws IOException
aPrepareResult - The preparation result. May not be null.aDoc - The PDDocument. May not be null.bDebug - true for debug outputnPageSetIndex - Page set index. Always ≥ 0.nTotalPageStartIndex - Total page index. Always ≥ 0.nTotalPageCount - Total page count. Always ≥ 0.IOException - In case of render errorspublic String toString()
toString in class AbstractPLObject<PLPageSet>Copyright © 2014–2016 Philip Helger. All rights reserved.