2.3 KiB
Title, Added, Status
Title | Added | Status |
---|---|---|
Renditions service | v2.0.0 | Deprecated |
Renditions service
Manages prearranged conversions of content to different formats.
Methods
isRenditionAvailable(nodeId: string, encoding: string):
Observable
<boolean>
Has the specified rendition been set up for this item?
isConversionPossible(nodeId: string, encoding: string):
Observable
<boolean>
Is it possible to convert this item to the specified format?
getRenditionUrl(nodeId: string, encoding: string): string
Gets a URL linking to a rendition.
getRenditionsListByNodeId(nodeId: string):
Observable
<RenditionPaging>
Gets all available renditions for an item.
convert(nodeId: string, encoding: string, pollingInterval: number = 1000)
Performs a format conversion on an item directly.
Details
Note: This service is deprecated from v2.2.0 and may be removed in a future version of ADF.
ACS allows content items to be converted to other formats for display or delivery. For example, a raw text file might be converted to HTML to enable better formatting in a web browser or a PDF might be converted to an equivalent bitmap image. A rendition is a prearranged conversion that is set up for an item for convenient repeated use. More information about renditions is available in the Content Services documentation.
In the Renditions service methods, the nodeId
is a string identifying the content
node that the rendition applies to. This can be obtained from
Document List component events and various other places
in the ADF API. The encoding
identifies the conversion performed by the rendition.
See the Renditions API page in the Alfresco JS API for more information about the RenditionPaging class and other implementation details.