07-07-2010 08:36 AM
07-07-2010 08:57 AM
07-08-2010 07:50 AM
<bean id="transformer.PdfBox.TextToPdf"
class="org.alfresco.repo.content.transform.TextToPdfContentTransformer"
parent="baseContentTransformer" >
<property name="explicitTransformations">
<list>
<bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
<constructor-arg><value>text/plain</value></constructor-arg>
<constructor-arg><value>application/pdf</value></constructor-arg>
</bean>
</list>
</property>
</bean>PDDocument pdf = null;
InputStream is = null;
OutputStream os = null;
try
{
is = reader.getContentInputStream();
pdf = transformer.createPDFFromText(new InputStreamReader(is));
// dump it all to the writer
os = writer.getContentOutputStream();
pdf.save(os);
}07-14-2010 07:14 PM
07-14-2010 07:20 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.