As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
convert -compress jpeg -density 100 input.pdf output.pdf
<bean id="loftux.thumbnail.pdfcompressed" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean"> <property name="targetObject" ref="thumbnailRegistry" /> <property name="targetMethod" value="addThumbnailDefinition" /> <property name="arguments"> <list> <bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition"> <property name="name" value="pdfcompressed" /> <property name="mimetype" value="application/pdf"/> <property name="transformationOptions"> <bean parent="defaultImageTransformationOptions"> <property name="commandOptions"> <value>-compress jpeg -density 100 ${source} ${target}</value> </property> </bean> </property> <property name="runAs" value="System"/> <property name="failureHandlingOptions" ref="standardFailureOptions"/> </bean> </list> </property> </bean>