| Modifier and Type | Field and Description |
|---|---|
static Object |
PENDING_CHAPTER |
| Constructor and Description |
|---|
ITextContext(Sections sections,
Styles styles) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(com.itextpdf.text.Element element) |
void |
appendAll(Iterable<? extends com.itextpdf.text.Element> elements) |
void |
close() |
protected com.itextpdf.text.Document |
createDocument() |
void |
declare(Object key,
Object value)
Generic placeholder to store a value.
|
void |
definePendingChapter(com.itextpdf.text.Chapter pendingChapter) |
<T> void |
emit(Class<? super T> klazz,
T value) |
<T> void |
emit(T value) |
List<com.itextpdf.text.Element> |
emitButCollectElements(Object value) |
<T> Emitter<T> |
emitterFor(Class<T> type) |
void |
flushPendingChapter() |
<T> T |
get(Object key)
Retrieve the value declared for the key.
|
com.itextpdf.text.Document |
getDocument() |
com.itextpdf.text.Rectangle |
getDocumentArtBox() |
<T> com.google.common.base.Optional<T> |
getNullable(Object key) |
com.itextpdf.text.pdf.PdfWriter |
getPdfWriter() |
ITextContext |
open(File fileOut) |
PageNumber |
pageNumber() |
Consumer<com.itextpdf.text.Element> |
popElementConsumer() |
void |
pushElementConsumer(Consumer<com.itextpdf.text.Element> consumer) |
<T> void |
register(Class<T> type,
Emitter<? super T> emitter) |
Sections |
sections() |
Styles |
styles() |
TableOfContents |
tableOfContents() |
VariableResolver |
variableResolver() |
public static final Object PENDING_CHAPTER
public VariableResolver variableResolver()
public TableOfContents tableOfContents()
public Styles styles()
public com.itextpdf.text.Document getDocument()
public com.itextpdf.text.pdf.PdfWriter getPdfWriter()
public ITextContext open(File fileOut) throws FileNotFoundException, com.itextpdf.text.DocumentException
FileNotFoundExceptioncom.itextpdf.text.DocumentExceptionpublic void close()
protected com.itextpdf.text.Document createDocument()
public com.itextpdf.text.Rectangle getDocumentArtBox()
public Sections sections()
public PageNumber pageNumber()
public void appendAll(Iterable<? extends com.itextpdf.text.Element> elements)
public void append(com.itextpdf.text.Element element)
public <T> void emit(Class<? super T> klazz, T value)
public <T> void emit(T value)
public void pushElementConsumer(Consumer<com.itextpdf.text.Element> consumer)
public Consumer<com.itextpdf.text.Element> popElementConsumer()
public void declare(Object key, Object value)
key - property's keyvalue - property's valuepublic <T> T get(Object key)
T - type the property (inferred)key - property's keynullClassCastException - if the property's value is not of the inferred typedeclare(Object, Object)public <T> com.google.common.base.Optional<T> getNullable(Object key)
public void flushPendingChapter()
public void definePendingChapter(com.itextpdf.text.Chapter pendingChapter)
Copyright © 2014. All Rights Reserved.