public class PDFRenditionConverter extends CoreRenditionConverter
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
contentTypes |
protected static int |
MAX_SIZE |
PDF_RENDITION_MIME_TYPE, PDF_RENDITION_PREFIX, PDF_RENDITION_SUFFIX, THUMBNAIL_RENDITION_MIME_TYPE, THUMBNAIL_RENDITION_PREFIX, THUMBNAIL_RENDITION_SUFFIX| Constructor and Description |
|---|
PDFRenditionConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSupportedContentType(String contentType) |
protected void |
createPDFRendition(InputStream is,
OutputStream renditionOutputStream) |
protected void |
createThumbnailRendition(InputStream is,
OutputStream renditionOutputStream) |
protected BufferedImage |
getScaledImage(BufferedImage src,
int w,
int h) |
protected List<String> |
getSupportedContentTypes() |
boolean |
isPDFRenditionSupported() |
boolean |
isThumbnailRenditionSupported() |
void |
setSupportedContentTypes(List<String> supportedContentTypes) |
generatePDF, generateThumbnail, getPdfRenditionMimeType, getThumbnailRenditionMimeType, handlesContentTypeprotected static final int MAX_SIZE
public boolean isPDFRenditionSupported()
isPDFRenditionSupported in interface RenditionConverterisPDFRenditionSupported in class BaseContentConverterpublic boolean isThumbnailRenditionSupported()
isThumbnailRenditionSupported in interface RenditionConverterisThumbnailRenditionSupported in class BaseContentConverterprotected void createPDFRendition(InputStream is, OutputStream renditionOutputStream)
createPDFRendition in class BaseContentConverterprotected void createThumbnailRendition(InputStream is, OutputStream renditionOutputStream) throws Exception
createThumbnailRendition in class BaseContentConverterExceptionprotected List<String> getSupportedContentTypes()
getSupportedContentTypes in class BaseContentConverterpublic void addSupportedContentType(String contentType)
addSupportedContentType in interface RenditionConverteraddSupportedContentType in class BaseContentConverterpublic void setSupportedContentTypes(List<String> supportedContentTypes)
setSupportedContentTypes in interface RenditionConvertersetSupportedContentTypes in class BaseContentConverterprotected BufferedImage getScaledImage(BufferedImage src, int w, int h)
Copyright © 2019. All rights reserved.