public class MSPowerPointHandler extends MSOfficeHandler
Modifier and Type | Field and Description |
---|---|
static String |
MIMETYPE_MSPOWERPOINT |
static String |
MIMETYPE_MSPOWERPOINT_VND |
static String[] |
MIMETYPES_SUPPORTED |
MIMETYPE_MSEXCEL, MIMETYPE_MSWORD
PROPERTY_DEACTIVATED_MIME_TYPES
Constructor and Description |
---|
MSPowerPointHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canHandleSubAssets()
Indicates if the handler supports processing of
sub assets |
BufferedImage |
getImage(Rendition rendition,
Dimension dim)
|
String[] |
getMimeTypes()
This method returns the mime types a particular
AssetHandler supports. |
List<String> |
processSubAssets(Asset asset)
Handler implementations may choose to support sub asset creation for the file types it handles.
|
extractMetadata, getImage
createThumbnails, createThumbnails, createThumbnails, createThumbnails, createThumbnailsExt, exportAsset, processRelated, processSubAssets
public static final String MIMETYPE_MSPOWERPOINT
public static final String MIMETYPE_MSPOWERPOINT_VND
public static final String[] MIMETYPES_SUPPORTED
public String[] getMimeTypes()
MSOfficeHandler
AssetHandler
supports.getMimeTypes
in interface AssetHandler
getMimeTypes
in class MSOfficeHandler
public BufferedImage getImage(Rendition rendition, Dimension dim) throws IOException
AssetHandler
Asset
s given Rendition
. For images the
BufferedImage
of the original image is returned, for other formats the first page is retrieved as
BufferedImage
.
If maxDimension
is given, the handler should return an
image where no dimension extends the given value. This can be used to reduce
the memory footprint of large buffered images if the full resolution is not needed.
getImage
in interface AssetHandler
getImage
in class MSOfficeHandler
rendition
- The rendition for which to retrieve its graphical representation.dim
- optional constraint for the maximal dimension of the image.BufferedImage
if a graphical representation exists, otherwise null
IOException
- in case an error is thrown while fetching the buffered imagepublic boolean canHandleSubAssets()
AbstractAssetHandler
sub assets
canHandleSubAssets
in interface AssetHandler
canHandleSubAssets
in class AbstractAssetHandler
true
if handler is able to process sub assetspublic List<String> processSubAssets(Asset asset)
AssetHandler
CreateSubAssetsProcess
during import/update of an asset and its
binary, as part of the DAM Update Asset workflow. Sub assets represent fragments of the original asset,
for example every page of a multi-page PDF document are sub assets. Sub assets are stored as assets themselves
under the parent asset. Sub assets are stored in the subassets folder of the main asset, e.g. at
/content/dam/geometrixx/documents/ECM Artikel.pdf/subassets.
The asset
argument represents the javax.jcr.Node
of type nt:file holding the binary
content or the DAM Asset node (type dam:Asset), for which its original rendition would be retrieved.processSubAssets
in interface AssetHandler
processSubAssets
in class AbstractAssetHandler
asset
- asset to extract sub assetsAssetHandler.canHandleSubAssets()
,
Asset.isSubAsset()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"