public class InsertHelper extends Object
| Constructor and Description |
|---|
InsertHelper(FileUtil fileUtil) |
| Modifier and Type | Method and Description |
|---|---|
static InsertHelper |
create() |
DrawFillBitmap |
createDrawFillImage(OdsDocument document,
InputStream sourceStream,
String name,
String href) |
void |
insertImage(OdsDocument document,
Table table,
String frameName,
File source,
String destName,
SVGRectangle rectangle)
Insert a new image into the document
|
void |
insertImage(OdsDocument document,
Table table,
String frameName,
InputStream sourceStream,
String destName,
SVGRectangle rectangle)
Insert a new image into the document
|
void |
insertObject(OdsDocument document,
Table table,
String frameName,
String objectName,
String objectMediaType,
String objectVersion,
InputStream sourceStream,
SVGRectangle rectangle,
GraphicStyle gs)
Insert a new ODF object into the document.
|
public InsertHelper(FileUtil fileUtil)
fileUtil - a file utilpublic static InsertHelper create()
public void insertImage(OdsDocument document, Table table, String frameName, File source, String destName, SVGRectangle rectangle) throws IOException
document - the destination documenttable - the destination tableframeName - the name of the draw framesource - the source of the imagedestName - the name of the image embedded in the documentrectangle - the frame coordinatesIOException - if an I/O error occurspublic void insertImage(OdsDocument document, Table table, String frameName, InputStream sourceStream, String destName, SVGRectangle rectangle) throws IOException
document - the destination documenttable - the destination tableframeName - the name of the draw framesourceStream - the source of the imagedestName - the name of the image embedded in the documentrectangle - the frame coordinatesIOException - if an I/O error occurspublic DrawFillBitmap createDrawFillImage(OdsDocument document, InputStream sourceStream, String name, String href) throws IOException
IOExceptionpublic void insertObject(OdsDocument document, Table table, String frameName, String objectName, String objectMediaType, String objectVersion, InputStream sourceStream, SVGRectangle rectangle, GraphicStyle gs) throws IOException
document - the destination documenttable - the destination tableframeName - the name of the frameobjectName - the name of the object embedded in the documentobjectMediaType - the media-type of the object embedded in the documentobjectVersion - the version of the object embedded in the documentsourceStream - the source of the imagerectangle - the frame coordinatesgs - the graphic styleIOException - if an I/O error occursCopyright © 2016–2021. All rights reserved.