<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Content Transformer Configuration in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254660#M207790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what i understand alfresco does a couple of checks when it goes to do a transformation with two registered mime type conversions of the same type i.e. html-pdf. Alfresco will pick up both and basically weight them on estimated time to produce and output, it uses which ever is fastest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get a answer to this let me know. Ive been digging through alfrescos default content transformations which are located in "&lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;configRoot&amp;gt;/alfresco/content-services-context.xml&lt;/STRONG&gt;&lt;SPAN&gt;" but the only thing registered there is htmlParser. From what im getting i think there is no real way to disable the out-of-the-box HTML-PDF transformer. It used PDFBox and open office but there doesnt seem to be a "logical" way to disable it or to tell alfresco to use a specific transformer when it finds two.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing i can think of is to create a new mime-type of .htmls or something silly and that way when it goes to transform there will only be one associated transformer for HTMLS-&amp;gt;PDF it will then use that. Im not a big fan of that, and if at all possible will try and find other means. If the mime type doesnt bother you…there is a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike P&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2011 19:34:01 GMT</pubDate>
    <dc:creator>mike_priest1</dc:creator>
    <dc:date>2011-07-14T19:34:01Z</dc:date>
    <item>
      <title>Content Transformer Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254658#M207788</link>
      <description>Hi,finally I was able to set up a transformer(worker) to use MS Word for converting doc to pdf. Therefore I used the source mimetype application/word and set this mimetype manually to a document.I read about reliablility parameters for transformers and alfresco chooses the one which fits best. If I</description>
      <pubDate>Mon, 18 Apr 2011 05:28:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254658#M207788</guid>
      <dc:creator>chris_0815</dc:creator>
      <dc:date>2011-04-18T05:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Content Transformer Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254659#M207789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Chris! Have you found the solution for your issue?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have similar problem with wkhtmltopdf (HTML-&amp;gt;PDF converter). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a workflow that produces .html document, and then i need preview for it. Alfresco Share uses HTML-&amp;gt;PDF-&amp;gt;SWF chain to do that, but the default HTML-&amp;gt;PDF conversion leverages OpenOffice, and i couldn't make it understand CSS styles correctly (with wkhtmltopdf, styles are interpreted perfectly). So i've created new Complex transformation (as described on Alfresco Wiki and here - &lt;/SPAN&gt;&lt;A href="http://www.abstractive.ca/home/blog/~/blog/mike.priest/alfresco_html_to_pdf" rel="nofollow noopener noreferrer"&gt;http://www.abstractive.ca/home/blog/~/blog/mike.priest/alfresco_html_to_pdf&lt;/A&gt;&lt;SPAN&gt;) (HTML to PDF using wkhtmltopdf, and then PDF to SWF). And now when i try to preview my .html files, Share can make preview using sometimes html-&amp;gt;pdf(using OOoDirect)-&amp;gt;swf, and sometimes html-&amp;gt;wkhtmltopdf-&amp;gt;swf. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And i don't know yet:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) how does it make a decision which transformer to use (seems it's some kind of round-robin, i didn't find a way to configure it)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) how to disable internal HTML-&amp;gt;PDF transformation&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Igor&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 14:30:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254659#M207789</guid>
      <dc:creator>d_garry</dc:creator>
      <dc:date>2011-06-09T14:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Content Transformer Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254660#M207790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From what i understand alfresco does a couple of checks when it goes to do a transformation with two registered mime type conversions of the same type i.e. html-pdf. Alfresco will pick up both and basically weight them on estimated time to produce and output, it uses which ever is fastest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you get a answer to this let me know. Ive been digging through alfrescos default content transformations which are located in "&lt;/SPAN&gt;&lt;STRONG&gt;&amp;lt;configRoot&amp;gt;/alfresco/content-services-context.xml&lt;/STRONG&gt;&lt;SPAN&gt;" but the only thing registered there is htmlParser. From what im getting i think there is no real way to disable the out-of-the-box HTML-PDF transformer. It used PDFBox and open office but there doesnt seem to be a "logical" way to disable it or to tell alfresco to use a specific transformer when it finds two.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only thing i can think of is to create a new mime-type of .htmls or something silly and that way when it goes to transform there will only be one associated transformer for HTMLS-&amp;gt;PDF it will then use that. Im not a big fan of that, and if at all possible will try and find other means. If the mime type doesnt bother you…there is a solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike P&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2011 19:34:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254660#M207790</guid>
      <dc:creator>mike_priest1</dc:creator>
      <dc:date>2011-07-14T19:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Content Transformer Configuration</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254661#M207791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is the fix we found:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tracked down where openoffice is configured to transform files with a mimetype of 'text/html'. I found in the file "\alfresco\WEB-INF\classes\alfresco\mimetype\openoffice-document-formats.xml" In that file there is comment that states "Note: (X)HTML formats are here for completeness but they are currently unsupported" so if comment out the XML in the file that configures openoffice for text/html. Once this was done Alfresco always uses the custom transformer using wkhtmltopdf for HTML-&amp;gt;PDF conversions.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Credits to Chris penning&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 15:08:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/content-transformer-configuration/m-p/254661#M207791</guid>
      <dc:creator>mike_priest1</dc:creator>
      <dc:date>2011-08-08T15:08:20Z</dc:date>
    </item>
  </channel>
</rss>

