@NotThreadSafe public class PageLayoutPDF extends Object
PLPageSet objects that represent a set of pages
with a consistent layouting scheme.| Constructor and Description |
|---|
PageLayoutPDF()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPageSet(PLPageSet aPageSet)
Add a new page set
|
com.helger.commons.collection.ext.ICommonsList<? extends PLPageSet> |
getAllPageSets() |
String |
getDocumentAuthor() |
Calendar |
getDocumentCreationDate() |
String |
getDocumentCreator() |
String |
getDocumentKeywords() |
String |
getDocumentSubject() |
String |
getDocumentTitle() |
boolean |
isDebug() |
com.helger.commons.state.EChange |
removePageSet(PLPageSet aPageSet) |
void |
renderTo(IPDDocumentCustomizer aCustomizer,
OutputStream aOS)
Render this layout to an OutputStream.
|
void |
renderTo(OutputStream aOS)
Render this layout to an OutputStream.
|
PageLayoutPDF |
setDebug(boolean bDebug) |
void |
setDocumentAuthor(String sDocumentAuthor) |
void |
setDocumentCreationDate(Calendar aDocumentCreationDate) |
void |
setDocumentCreator(String sDocumentCreator) |
void |
setDocumentKeywords(String sDocumentKeywords) |
void |
setDocumentSubject(String sDocumentSubject) |
void |
setDocumentTitle(String sDocumentTitle) |
public PageLayoutPDF()
VendorInfo.public boolean isDebug()
@Nonnull public PageLayoutPDF setDebug(boolean bDebug)
bDebug - true to enable PDF debug mode, false to
disable it.public void setDocumentCreationDate(@Nullable Calendar aDocumentCreationDate)
@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.ext.ICommonsList<? extends PLPageSet> getAllPageSets()
public void addPageSet(@Nonnull PLPageSet aPageSet)
aPageSet - The page set to be added. May not be null.@Nonnull public com.helger.commons.state.EChange removePageSet(@Nullable PLPageSet aPageSet)
public void renderTo(@Nonnull @WillClose OutputStream aOS) throws PDFCreationException
aOS - The output stream to write to. May not be null. Is
closed automatically.PDFCreationException - In case of an errorpublic void renderTo(@Nullable IPDDocumentCustomizer aCustomizer, @Nonnull @WillClose OutputStream aOS) throws PDFCreationException
aCustomizer - The customizer to be invoked before the document is written to the
stream. May be null.aOS - The output stream to write to. May not be null. Is
closed automatically.PDFCreationException - In case of an errorCopyright © 2014–2016 Philip Helger. All rights reserved.