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, handlesContentType
protected static final int MAX_SIZE
public boolean isPDFRenditionSupported()
isPDFRenditionSupported
in interface RenditionConverter
isPDFRenditionSupported
in class BaseContentConverter
public boolean isThumbnailRenditionSupported()
isThumbnailRenditionSupported
in interface RenditionConverter
isThumbnailRenditionSupported
in class BaseContentConverter
protected void createPDFRendition(InputStream is, OutputStream renditionOutputStream)
createPDFRendition
in class BaseContentConverter
protected void createThumbnailRendition(InputStream is, OutputStream renditionOutputStream) throws Exception
createThumbnailRendition
in class BaseContentConverter
Exception
protected List<String> getSupportedContentTypes()
getSupportedContentTypes
in class BaseContentConverter
public void addSupportedContentType(String contentType)
addSupportedContentType
in interface RenditionConverter
addSupportedContentType
in class BaseContentConverter
public void setSupportedContentTypes(List<String> supportedContentTypes)
setSupportedContentTypes
in interface RenditionConverter
setSupportedContentTypes
in class BaseContentConverter
protected BufferedImage getScaledImage(BufferedImage src, int w, int h)
Copyright © 2019. All rights reserved.