03-08-2012 12:11 AM
When previewing LibreOffice Writer documents (.odt), the font used is very small, and in combination with the shaded background, it is very difficult to read and takes only about half of the space provided in the panel (see below). Oddly, the header in the document is wider than the text below it, while in the original document the margins are the same.
I'm running Nuxeo Platform 5.5.
03-08-2012 05:53 AM
For what kinds of documents?
03-08-2012 01:33 PM
I updated my entry to give more details.
03-14-2012 10:54 AM
Your question is a bit technical and I give you an answer technical. I hope that you have this profile.
The HTML preview is generated by LibreOffice/OpenOffice Server side.
The class that calls the LibreOffice/OpenOffice server is:
org.nuxeo.ecm.platform.convert.plugins.JODBasedConverter
I don't know if the DocumentFormat offer the possibility to change the rendering generated by LibreOffice. I let you check 😄
If you found something (tell us :D) and you can create your own converter, that can extends our converter for instance. And you will have to declare your converter in Nuxeo with same name as the one implemented by us to override it.
<converter name="office2html"
class="com.yourcompany.convert.plugins.JODBasedConverter">
<destinationMimeType>text/html</destinationMimeType>
<sourceMimeType>text/plain</sourceMimeType>
<sourceMimeType>text/rtf</sourceMimeType>
<!-- Microsoft office documents -->
<sourceMimeType>application/msword</sourceMimeType>
<sourceMimeType>application/vnd.ms-powerpoint</sourceMimeType>
<sourceMimeType>application/vnd.ms-excel</sourceMimeType>
<!-- Microsoft office 2007 documents -->
<sourceMimeType>
application/vnd.openxmlformats-officedocument.wordprocessingml.document
</sourceMimeType>
<sourceMimeType>
application/vnd.openxmlformats-officedocument.presentationml.presentation
</sourceMimeType>
<sourceMimeType>
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
</sourceMimeType>
<!-- OpenOffice.org 1.x documents -->
<sourceMimeType>application/vnd.sun.xml.writer</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.writer.template</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.impress</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.impress.template</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.calc</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.calc.template</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.draw</sourceMimeType>
<sourceMimeType>application/vnd.sun.xml.draw.template</sourceMimeType>
<!-- OpenOffice.org 2.x documents -->
<sourceMimeType>
application/vnd.oasis.opendocument.spreadsheet
</sourceMimeType>
<sourceMimeType>
application/vnd.oasis.opendocument.spreadsheet-template
</sourceMimeType>
<sourceMimeType>application/vnd.oasis.opendocument.text</sourceMimeType>
<sourceMimeType>
application/vnd.oasis.opendocument.text-template
</sourceMimeType>
<sourceMimeType>
application/vnd.oasis.opendocument.presentation
</sourceMimeType>
<sourceMimeType>
application/vnd.oasis.opendocument.presentation-template
</sourceMimeType>
<sourceMimeType>
application/vnd.oasis.opendocument.graphics
</sourceMimeType>
<sourceMimeType>
application/vnd.oasis.opendocument.graphics-template
</sourceMimeType>
<parameters>
<parameter name="ooo_host_name">
${org.nuxeo.ecm.platform.transform.ooo.host.name}
</parameter>
<parameter name="ooo_host_port">
${org.nuxeo.ecm.platform.transform.ooo.host.port}
</parameter>
</parameters>
</converter>
I'm not sure that Open Office offers a way to modify the rendering. It would be great.
11-28-2012 12:23 PM
Did anyone ever figure this out? Preview is nearly useless with 6-point font.
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.