How can I increase the font size used in the document preview feature?

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. alt text

I'm running Nuxeo Platform 5.5.

0 votes

2 answers

1249 views

ANSWER

For what kinds of documents?
03/08/2012

I updated my entry to give more details.
03/08/2012



Did anyone ever figure this out? Preview is nearly useless with 6-point font.

0 votes



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 :D

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.

0 votes