@OpenApiAll public class PPTXFormatter extends DefaultFormatter
dpi, properties, styledDocument
DOT_PER_INCH
Constructor and Description |
---|
PPTXFormatter(ITemplateEngine templateEngine)
Create a PPTX formatter with specific properties.
|
PPTXFormatter(java.util.Properties properties)
Create a PPTX formatter with specific properties.
|
Modifier and Type | Method and Description |
---|---|
protected ITool.RetainedString |
createBookmark(Bookmark bookmark)
Create a PPTX bookmark string from given
Bookmark object. |
protected java.lang.String |
createColumn(Column column)
Increase new columns from given
Column object. |
protected ITool.RetainedString |
createGridRowSpan(GridRowSpan span)
Create a PPTX gridrowspan (merge columns vertically) string from given
GridRowSpan object. |
protected java.lang.String |
createGridSpan(GridSpan span)
Create a PPTX gridspan (merge columns horizontally) string from given
GridSpan object. |
protected ITool.RetainedString |
createImage(Image image)
Create a PPTX image string from given
Image object. |
protected ITool.RetainedString |
createImage(Image image,
float width,
float height,
int flag)
Create a PPTX image string from given
Image object. |
protected ITool.RetainedString |
createLink(Link link)
Create a PPTX link string from given
Link object. |
java.lang.Object |
format(java.lang.Object value)
Convert an Object value into PPTX format.
|
float[] |
getPageSize()
Calculation for total paper width and total paper height after minus margin of page.
|
getImageFlag, getObjectFormater, getProperties, registerObjectFormatter, setProperties, setStyledDocument, writeImage, writeImage
public PPTXFormatter(ITemplateEngine templateEngine)
templateEngine
- template enginepublic PPTXFormatter(java.util.Properties properties)
properties
- template propertiespublic java.lang.Object format(java.lang.Object value)
format
in interface IFormatter
format
in class DefaultFormatter
value
- converting valueprotected ITool.RetainedString createImage(Image image) throws java.io.IOException
Image
object.image
- an Image
objectjava.io.IOException
- when IO error occursprotected ITool.RetainedString createImage(Image image, float width, float height, int flag) throws java.io.IOException
Image
object. PPTX always ignore flag
attribute.
The image size always automatically fit to text box. And no rotation supports.image
- an Image
objectwidth
- the target image widthheight
- the target image heightflag
- scaling image flagjava.io.IOException
- when IO error occurspublic float[] getPageSize()
protected ITool.RetainedString createBookmark(Bookmark bookmark) throws java.io.IOException
Bookmark
object.bookmark
- an Bookmark
objectjava.io.IOException
- when IO error occursprotected ITool.RetainedString createLink(Link link) throws java.io.IOException
Link
object.link
- an Link
objectjava.io.IOException
- when IO error occursprotected java.lang.String createGridSpan(GridSpan span)
GridSpan
object.span
- an GridSpan
objectprotected java.lang.String createColumn(Column column)
Column
object.column
- an Column
objectprotected ITool.RetainedString createGridRowSpan(GridRowSpan span)
GridRowSpan
object.span
- an GridRowSpan
objectCopyright © 2010 - No Magic Asia