Class StylableDocument
java.lang.Object
com.lowagie.text.Document
fr.opensagres.xdocreport.itext.extension.ExtendedDocument
fr.opensagres.odfdom.converter.pdf.internal.stylable.StylableDocument
- All Implemented Interfaces:
com.lowagie.text.DocListener,com.lowagie.text.ElementListener,IBoundsLimitContainer,IBreakHandlingContainer,IStylableContainer,IStylableElement,IStylableFactory,fr.opensagres.xdocreport.itext.extension.IITextContainer,fr.opensagres.xdocreport.itext.extension.IITextElement,EventListener
public class StylableDocument
extends fr.opensagres.xdocreport.itext.extension.ExtendedDocument
implements IStylableContainer, IBoundsLimitContainer, IBreakHandlingContainer, IStylableFactory
fixes for pdf conversion by Leszek Piotrowicz <leszekp@safe-mail.net>
-
Field Summary
Fields inherited from class fr.opensagres.xdocreport.itext.extension.ExtendedDocument
originMarginBottom, originMarginLeft, originMarginRight, originMarginTop, writerFields inherited from class com.lowagie.text.Document
chapternumber, close, compress, footer, header, htmlStyleClass, javaScript_onLoad, javaScript_onUnLoad, marginBottom, marginLeft, marginMirroring, marginMirroringTopBottom, marginRight, marginTop, open, pageN, pageSize, plainRandomAccess, wmfFontCorrection -
Constructor Summary
ConstructorsConstructorDescriptionStylableDocument(OutputStream out, fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration configuration, StyleEngineForIText styleEngine) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(com.lowagie.text.Element element) voidapplyStyles(Style style) voidclose()voidcreateAnchor(IStylableContainer parent) createChunk(IStylableContainer parent, String textContent, fr.opensagres.xdocreport.itext.extension.font.FontGroup fontGroup) createDocumentSection(IStylableContainer parent, boolean inHeaderFooter) createHeaderFooter(boolean header) createHeading(IStylableContainer parent, List<Integer> headingNumbering) createImage(IStylableContainer parent, com.lowagie.text.Image image, Float x, Float y, Float width, Float height) createList(IStylableContainer parent, int listLevel) createListItem(IStylableContainer parent) createParagraph(IStylableContainer parent) createPhrase(IStylableContainer parent) createTab(IStylableContainer parent, boolean inTableOfContent) createTable(IStylableContainer parent, int numColumns) createTableCell(IStylableContainer parent) com.lowagie.text.Elementfloatget available height limit or value < 0 if there is no height limitgetMasterPage(String masterPageName) floatgetStyleMasterPage(StylableMasterPage masterPage) floatget width available for an element to be added to this containerbooleannewPage()voidvoidsetActiveMasterPage(fr.opensagres.xdocreport.itext.extension.IMasterPage masterPage) Methods inherited from class fr.opensagres.xdocreport.itext.extension.ExtendedDocument
add, addMasterPage, createExtendedHeaderFooter, getITextContainer, getOrientation, getOriginMarginBottom, getOriginMarginLeft, getOriginMarginRight, getOriginMarginTop, getPageNumber, setActiveMasterPage, setITextContainer, setOrientation, setOriginalMarginsMethods inherited from class com.lowagie.text.Document
addAuthor, addCreationDate, addCreator, addDocListener, addHeader, addKeywords, addProducer, addSubject, addTitle, bottom, bottom, bottomMargin, getHtmlStyleClass, getJavaScript_onLoad, getJavaScript_onUnLoad, getPageSize, getProduct, getRelease, getVersion, isMarginMirroring, isOpen, left, left, leftMargin, open, removeDocListener, resetFooter, resetHeader, resetPageCount, right, right, rightMargin, setFooter, setHeader, setHtmlStyleClass, setJavaScript_onLoad, setJavaScript_onUnLoad, setMarginMirroring, setMarginMirroringTopBottom, setMargins, setPageCount, setPageSize, top, top, topMargin
-
Constructor Details
-
StylableDocument
public StylableDocument(OutputStream out, fr.opensagres.xdocreport.itext.extension.IPdfWriterConfiguration configuration, StyleEngineForIText styleEngine) throws com.lowagie.text.DocumentException - Throws:
com.lowagie.text.DocumentException
-
-
Method Details
-
createAnchor
- Specified by:
createAnchorin interfaceIStylableFactory
-
createChunk
public StylableChunk createChunk(IStylableContainer parent, String textContent, fr.opensagres.xdocreport.itext.extension.font.FontGroup fontGroup) - Specified by:
createChunkin interfaceIStylableFactory
-
createDocumentSection
public StylableDocumentSection createDocumentSection(IStylableContainer parent, boolean inHeaderFooter) - Specified by:
createDocumentSectionin interfaceIStylableFactory
-
createHeading
- Specified by:
createHeadingin interfaceIStylableFactory
-
createImage
public StylableImage createImage(IStylableContainer parent, com.lowagie.text.Image image, Float x, Float y, Float width, Float height) - Specified by:
createImagein interfaceIStylableFactory
-
createList
- Specified by:
createListin interfaceIStylableFactory
-
createListItem
- Specified by:
createListItemin interfaceIStylableFactory
-
createParagraph
- Specified by:
createParagraphin interfaceIStylableFactory
-
createPhrase
- Specified by:
createPhrasein interfaceIStylableFactory
-
createTab
- Specified by:
createTabin interfaceIStylableFactory
-
createTable
- Specified by:
createTablein interfaceIStylableFactory
-
createTableCell
- Specified by:
createTableCellin interfaceIStylableFactory
-
setActiveMasterPage
public void setActiveMasterPage(fr.opensagres.xdocreport.itext.extension.IMasterPage masterPage) - Overrides:
setActiveMasterPagein classfr.opensagres.xdocreport.itext.extension.ExtendedDocument
-
getActiveMasterPage
- Overrides:
getActiveMasterPagein classfr.opensagres.xdocreport.itext.extension.ExtendedDocument
-
getStyleMasterPage
-
getMasterPage
- Overrides:
getMasterPagein classfr.opensagres.xdocreport.itext.extension.ExtendedDocument
-
getDefaultMasterPage
- Overrides:
getDefaultMasterPagein classfr.opensagres.xdocreport.itext.extension.ExtendedDocument
-
applyStyles
- Specified by:
applyStylesin interfaceIStylableElement
-
getLastStyleApplied
- Specified by:
getLastStyleAppliedin interfaceIStylableElement
-
getParent
- Specified by:
getParentin interfaceIStylableElement
-
getElement
public com.lowagie.text.Element getElement()- Specified by:
getElementin interfaceIStylableElement
-
addElement
public void addElement(com.lowagie.text.Element element) - Specified by:
addElementin interfacefr.opensagres.xdocreport.itext.extension.IITextContainer- Specified by:
addElementin interfaceIStylableContainer- Overrides:
addElementin classfr.opensagres.xdocreport.itext.extension.ExtendedDocument
-
columnBreak
public void columnBreak()- Specified by:
columnBreakin interfaceIBreakHandlingContainer
-
pageBreak
public void pageBreak()- Specified by:
pageBreakin interfaceIBreakHandlingContainer
-
newPage
public boolean newPage()- Specified by:
newPagein interfacecom.lowagie.text.DocListener- Overrides:
newPagein classcom.lowagie.text.Document
-
close
public void close()- Specified by:
closein interfacecom.lowagie.text.DocListener- Overrides:
closein classcom.lowagie.text.Document
-
getWidthLimit
public float getWidthLimit()Description copied from interface:IBoundsLimitContainerget width available for an element to be added to this container- Specified by:
getWidthLimitin interfaceIBoundsLimitContainer
-
getHeightLimit
public float getHeightLimit()Description copied from interface:IBoundsLimitContainerget available height limit or value < 0 if there is no height limit- Specified by:
getHeightLimitin interfaceIBoundsLimitContainer
-
getPageWidth
public float getPageWidth()
-