public class ViewerImageHandler extends ViewerHandler<PageImage>
Handler for rendering document as Image.
Constructor and Description |
---|
ViewerImageHandler()
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
IInputDataHandler inputDataHandler)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
IInputDataHandler inputDataHandler,
com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
IInputDataHandler inputDataHandler,
ICacheDataHandler cacheDataHandler)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
IInputDataHandler inputDataHandler,
ICacheDataHandler cacheDataHandler,
com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
IInputDataHandler inputDataHandler,
ICacheDataHandler cacheDataHandler,
IFileDataStore fileDataStore)
Initializes a new instance of the
ViewerImageHandler class. |
ViewerImageHandler(ViewerConfig viewerConfig,
IInputDataHandler inputDataHandler,
ICacheDataHandler cacheDataHandler,
IFileDataStore fileDataStore,
com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the
ViewerImageHandler class. |
Modifier and Type | Method and Description |
---|---|
void |
clearTempFiles()
Clears temporary files created during rendering.
|
List<PageImage> |
getPages(AttachmentBase attachment)
Get list of pages image representations for attachment.
|
List<PageImage> |
getPages(AttachmentBase attachment,
ImageOptions imageOptions)
Get list of pages image representations for attachment.
|
List<PageImage> |
getPages(InputStream fileStream)
Get list of pages image representations.
|
List<PageImage> |
getPages(InputStream fileStream,
ImageOptions imageOptions)
Get list of pages image representations.
|
List<PageImage> |
getPages(InputStream fileStream,
String fileName)
Get list of pages image representations.
|
List<PageImage> |
getPages(InputStream fileStream,
String fileName,
ImageOptions imageOptions)
Get list of pages image representations.
|
List<PageImage> |
getPages(String guid)
Get list of pages image representations.
|
List<PageImage> |
getPages(String guid,
ImageOptions imageOptions)
Get list of pages image representations.
|
List<PageImage> |
getPages(URI uri)
Get list of pages image representations.
|
List<PageImage> |
getPages(URI uri,
ImageOptions imageOptions)
Get list of pages image representations.
|
List<PageImage> |
getPages(URI uri,
WindowsAuthenticationCredential credential,
ImageOptions imageOptions)
Get list of pages image representations.
|
PrintableHtmlContainer |
getPrintableHtml(String guid)
Get document HTML for print.
|
PrintableHtmlContainer |
getPrintableHtml(String guid,
PrintableHtmlOptions printableHtmlOptions)
Get document HTML for print.
|
com.groupdocs.viewer.helper.transformation.options.TransformationOptions |
getTransformationOptions(com.groupdocs.viewer.domain.options.ConvertOptions convertOptions) |
PageImage |
getUnlicensedViewCountExceededPage(RenderOptions renderOptions) |
void |
performTransformations(List<PageImage> pages,
com.groupdocs.viewer.helper.transformation.options.TransformationOptions transformationOptions) |
com.groupdocs.viewer.converter.Converter<PageImage> |
resolveConverter(com.groupdocs.viewer.domain.options.ConvertOptions convertOptions) |
clearCache, clearCache, getCacheDataHandler, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getDocumentInfo, getFile, getFile, getFileList, getFileList, getInputDataHandler, getLocalizationHandler, getPages, getPages, getPages, getPages, getPages, getPages, getPdfFile, getPdfFile, getPdfFile, getPdfFile, getPdfFile, getPdfFile, getPdfFile, getPdfFile, getPdfFile, getSupportedDocumentFormats, getViewerConfig, reorderPage, rotatePage
public ViewerImageHandler()
Initializes a new instance of the ViewerImageHandler
class.
public ViewerImageHandler(ViewerConfig viewerConfig)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.public ViewerImageHandler(ViewerConfig viewerConfig, com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.cultureInfo
- The viewer culture. Supported cultures are en-Us, pt-PT and ru-RU.public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.inputDataHandler
- The input data handler.public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.inputDataHandler
- The input data handler.cultureInfo
- The viewer culture. Supported cultures are en-Us, pt-PT and ru-RU.public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.inputDataHandler
- The input data handler.cacheDataHandler
- The cache data handler.public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler, com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.inputDataHandler
- The input data handler.cacheDataHandler
- The cache data handler.cultureInfo
- The viewer culture. Supported cultures are en-Us, pt-PT and ru-RU.public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler, IFileDataStore fileDataStore)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.inputDataHandler
- The input data handler.cacheDataHandler
- The cache data handler.fileDataStore
- The file data store.public ViewerImageHandler(ViewerConfig viewerConfig, IInputDataHandler inputDataHandler, ICacheDataHandler cacheDataHandler, IFileDataStore fileDataStore, com.groupdocs.foundation.utils.CultureInfo cultureInfo)
Initializes a new instance of the ViewerImageHandler
class.
viewerConfig
- The viewer configuration.inputDataHandler
- The input data handler.cacheDataHandler
- The cache data handler.fileDataStore
- The file data store.cultureInfo
- The viewer culture.public List<PageImage> getPages(String guid) throws Exception
Get list of pages image representations.
The following example demonstrates how to get the list of pages.guid
- The file unique identifier, full path for local storage e.g. c:\\storage\\document.txt, relative path e.g document.txt, url e.g. http://site.com/document.txt.Exception
- if any.public List<PageImage> getPages(String guid, ImageOptions imageOptions) throws Exception
Get list of pages image representations.
The following example demonstrates how to get image representations of the second page.guid
- a String
object.imageOptions
- a ImageOptions
object.Exception
- if any.public List<PageImage> getPages(InputStream fileStream) throws Exception
Get list of pages image representations.
fileStream
- a InputStream
object.Exception
- if any.public List<PageImage> getPages(InputStream fileStream, ImageOptions imageOptions) throws Exception
Get list of pages image representations.
fileStream
- a InputStream
object.imageOptions
- a ImageOptions
object.Exception
- if any.public List<PageImage> getPages(InputStream fileStream, String fileName) throws Exception
Get list of pages image representations.
fileStream
- a InputStream
object.fileName
- a String
object.Exception
- if any.public List<PageImage> getPages(InputStream fileStream, String fileName, ImageOptions imageOptions) throws Exception
Get list of pages image representations.
fileStream
- a InputStream
object.fileName
- a String
object.imageOptions
- a ImageOptions
object.Exception
- if any.public List<PageImage> getPages(URI uri) throws Exception
Get list of pages image representations.
public List<PageImage> getPages(URI uri, ImageOptions imageOptions) throws Exception
Get list of pages image representations.
uri
- a URI
object.imageOptions
- a ImageOptions
object.Exception
- if any.public List<PageImage> getPages(URI uri, WindowsAuthenticationCredential credential, ImageOptions imageOptions) throws Exception
Get list of pages image representations.
uri
- a URI
object.credential
- a WindowsAuthenticationCredential
object.imageOptions
- a ImageOptions
object.Exception
- if any.public List<PageImage> getPages(AttachmentBase attachment) throws Exception
Get list of pages image representations for attachment.
attachment
- a AttachmentBase
object.Exception
- if any.public List<PageImage> getPages(AttachmentBase attachment, ImageOptions imageOptions) throws Exception
Get list of pages image representations for attachment.
attachment
- a AttachmentBase
object.imageOptions
- a ImageOptions
object.Exception
- if any.public PrintableHtmlContainer getPrintableHtml(String guid, PrintableHtmlOptions printableHtmlOptions) throws Exception
Get document HTML for print.
Gets the printable HTML.
The following example demonstrates how to get printable HTML of the document.getPrintableHtml
in class ViewerHandler<PageImage>
guid
- The file unique identifier, full path for local storage e.g. c:\\storage\\document.txt,
relative path e.g document.txt, url e.g. http://site.com/document.txtprintableHtmlOptions
- The printableHtmlOptions.Exception
- if any.public PrintableHtmlContainer getPrintableHtml(String guid) throws Exception
Get document HTML for print.
Gets the printable HTML.
getPrintableHtml
in class ViewerHandler<PageImage>
guid
- The file unique identifier, full path for local storage e.g. c:\\storage\\document.txt,
relative path e.g document.txt, url e.g. http://site.com/document.txtException
- if any.public com.groupdocs.viewer.converter.Converter<PageImage> resolveConverter(com.groupdocs.viewer.domain.options.ConvertOptions convertOptions)
public PageImage getUnlicensedViewCountExceededPage(RenderOptions renderOptions)
Get unlicensed view count exceeded page.
getUnlicensedViewCountExceededPage
in class ViewerHandler<PageImage>
public void performTransformations(List<PageImage> pages, com.groupdocs.viewer.helper.transformation.options.TransformationOptions transformationOptions)
public com.groupdocs.viewer.helper.transformation.options.TransformationOptions getTransformationOptions(com.groupdocs.viewer.domain.options.ConvertOptions convertOptions)
public void clearTempFiles()
Clears temporary files created during rendering.
Copyright © 2018. All rights reserved.