You are looking at documentation for an older release. Not what you want? See the current release documentation.
This plugin is to set the supported file types of PDF thumbnail. See also ImageThumbnailPlugin .
To use the plugin in the component configuration, you must use the following target-component:
<target-component>org.exoplatform.services.cms.thumbnail.ThumbnailService</target-component>
The configuration is applied mainly in dms-thumbnail-configuration.xml
.
Sample configuration:
<component-plugin>
<name>PDFThumbnailPlugin</name>
<set-method>addPlugin</set-method>
<type>org.exoplatform.services.cms.thumbnail.impl.PDFThumbnailPlugin</type>
<init-params>
<object-param>
<name>thumbnailType</name>
<description>Thumbnail types</description>
<object type="org.exoplatform.services.cms.thumbnail.impl.ThumbnailType">
<field name="mimeTypes">
<collection type="java.util.ArrayList">
<value>
<string>application/pdf</string>
</value>
</collection>
</field>
</object>
</object-param>
</init-params>
</component-plugin>
In which:
Name:
PDFThumbnailPlugin
Set-method:
addPlugin
Type:
org.exoplatform.services.cms.thumbnail.impl.PDFThumbnailPlugin
Object type:
org.exoplatform.services.cms.thumbnail.impl.ThumbnailType
Field | Type | Value | Description |
---|---|---|---|
mimeTypes |
String
|
application/pdf
| The MIME type of the PDF thumbnail. |
Troubleshooting PDF thumbnail preview issues
In some cases, such as PDF files containing JPEG 2000 images,the PDF thumbnail is not well displayed. The problem is caused by missing Java Advanced Imaging libraries needed for ICEpdf to correctly render these images.
To solve this issue, you need to download the following three classpaths from here.
JAI API 1.1.2_01: download the two jars jai_codec.jar
and jai_core.jar
then install them in JAVA_HOME/jre/lib/ext/.
JAI Image I/O Tools 1.0_01: download the jar jai_imageio.jar
and install it in JAVA_HOME/jre/lib/ext/.
JAI ICC Profiles: download these files and install them in $JAVA_HOME/jre/lib/cmm
CMY.pf
CMYK.pf
YCC601.pf
YCC601L.pf
YCC709.pf
YCC709L.pf
YLINEAR.pf