Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
odfdom-0.7.5
-
None
-
None
-
Operating System: Windows
Platform: PC
-
99
Description
Created an attachment (id=112)
Image convenient APIs
This patch is for image convenient APIs. We add some functions in OdfDocument and ImageHandler to implement the image convenient APIs :
org.odftoolkit.odfdom.doc.OdfDocument
//return the image handler instance of this document
public ImageHandler getImageContainer()
//The ImageContainer interface is used to access a image object or a collection of image objects in some image container
org.odftoolkit.odfdom.doc.draw.ImageHandler
//insert an Image from the specified uri to the OdfDocument,
public String createImage(URI imageUri)
//The method returns the specific one or more images by image path since the image may be inserted to the document several times.
public List<OdfDrawImage> getImageByPath(String imagePath)
//The method deletes one or more images from image container by image path
public void deleteImageByPath(String imagePath)
//The method deletes the specified image from image container
public void deleteImage(OdfDrawImage image)
//get the count of image objects in the image container
public int getImageCount()
//the method return the image list in the image container
public List<OdfDrawImage> getImages()
//the method return the set of all the image paths
public Set<String> getImagePathSet()