<?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: HTML to PDF Transformation in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302216#M255346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first of all, the indexer does not look for transformations to PDF, it looks for transformations to plain text. This might find a round-trip transformer, i.e. one that first converts to PDF, then to plain text - but such a round-trip transformer may need additional setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;second of all, as I said, the properties only "declare" that a transformation should be considered supported. They do not technically force a transformation to be supported if the transformer actually fails or its implementation rejects it despite the configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, the OpenOffice.Html2Pdf transformer already is a pipeline. This pipeline works with input documents that OpenOffice can convert to ODT internally (HTML =&amp;gt; ODT) and then to PDF (ODT =&amp;gt; PDF). Also, the maxSourceSizeKBytes config should have been for OpenOffice.extensions.newMimetype.html.maxSiurceSizeKBytes and OpenOffice.Html2Pdf.extensions.newMimetype.pdf.maxSiurceSizeKBytes to be complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, either your new mimetype is HTML or it isn't. If it is you shouldn't have to do anything - if it isn't, that could be a possible reason for OpenOffice possibly rejecting it when using only OpenOffice.Html2Pdf - if your new pipeline contains a transformer that first converts to "real HTML" before passing it, that would explain why it's now working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2015 08:18:13 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2015-09-15T08:18:13Z</dc:date>
    <item>
      <title>HTML to PDF Transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302212#M255342</link>
      <description>Hi,I'm checking the sources to find where this transformation is defined in order to understand how it works. I'm guessing somewhere it's taken the value of the mimetype extension and processed in a bean with sourceMimetype and targetMimetype. But it doesn't seem to be like that. I found no beans wh</description>
      <pubDate>Thu, 10 Sep 2015 16:28:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302212#M255342</guid>
      <dc:creator>iwkse</dc:creator>
      <dc:date>2015-09-10T16:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: HTML to PDF Transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302213#M255343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTML to PDF transformation is provided by JODConverter (Enterprise-only, see &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://github.com/Alfresco/community-edition/blob/302816f73a96122a0635ce96e38fc3f85e9937dd/projects/repository/config/alfresco/subsystems/Transformers/default/transformers.properties#L220" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/community-edition/blob/302816f73a96122a0635ce96e38fc3f85e9937dd/projects/repository/config/alfresco/subsystems/Transformers/default/transformers.properties#L220&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;transformers.properties&amp;lt;/a&amp;gt;) or direct OpenOffice (Community, see &amp;lt;a href="&lt;/SPAN&gt;&lt;A href="https://github.com/Alfresco/community-edition/blob/302816f73a96122a0635ce96e38fc3f85e9937dd/projects/repository/config/alfresco/subsystems/Transformers/default/transformers.properties#L343" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/community-edition/blob/302816f73a96122a0635ce96e38fc3f85e9937dd/projects/repository/config/alfresco/subsystems/Transformers/default/transformers.properties#L343&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;transformer.properties&amp;lt;/a&amp;gt;).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From 4.2 on, transformations are no longer explicitly defined in Spring XML. Instead, transformer beans are externally configured via transformers.properties (or alfresco-global.properties) to "support" specific transformations (regardless of the question that they technically support any of the transformations - if configured incorrectly, they may still fail at runtime).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 21:54:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302213#M255343</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2015-09-10T21:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: HTML to PDF Transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302214#M255344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Axel,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for this clarification.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So basically if I want to add a new mimetype to be served by the content.transformer.OpenOffice.Html2Pdf I can add in the alfresco-global.properties something like that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;content.transformer.OpenOffice.Html2Pdf.extensions.newMimetype.pdf.supported=true&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or I have to redefine the bean somehow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[edit]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It doesn't work the way I'm trying to do. Basically I don't need/want to create a new transformation but only say to Alfresco to use that Html2Pdf transformation for this new Mimetype (which is HTML)..I didn't find a way yet&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 22:06:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302214#M255344</guid>
      <dc:creator>iwkse</dc:creator>
      <dc:date>2015-09-10T22:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: HTML to PDF Transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302215#M255345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It should work this way…but it doesn't and I don't have a clue why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;content.transformer.OpenOffice.extensions.newMimetype.pdf.maxSourceSizeKBytes=5120&lt;BR /&gt;content.transformer.OpenOffice.Html2Pdf.extensions.newMimetype.pdf.supported=true&lt;BR /&gt;content.transformer.OpenOffice.Html2Pdf.extensions.newMimetype.pdf.priority=50&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The indexer finds NO transformers for such newMimetype -&amp;gt; pdf &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nobody to enlighten?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[edit]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the while I let it work taking another way: Creating a custom transformer and use a pipeline with OpenOffice.Html2Pdf inside.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Check here if you are into the same trouble: &lt;/SPAN&gt;&lt;A href="https://github.com/deas/contentreich-eml/issues/3" rel="nofollow noopener noreferrer"&gt;https://github.com/deas/contentreich-eml/issues/3&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 00:31:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302215#M255345</guid>
      <dc:creator>iwkse</dc:creator>
      <dc:date>2015-09-15T00:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: HTML to PDF Transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302216#M255346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;first of all, the indexer does not look for transformations to PDF, it looks for transformations to plain text. This might find a round-trip transformer, i.e. one that first converts to PDF, then to plain text - but such a round-trip transformer may need additional setup.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;second of all, as I said, the properties only "declare" that a transformation should be considered supported. They do not technically force a transformation to be supported if the transformer actually fails or its implementation rejects it despite the configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, the OpenOffice.Html2Pdf transformer already is a pipeline. This pipeline works with input documents that OpenOffice can convert to ODT internally (HTML =&amp;gt; ODT) and then to PDF (ODT =&amp;gt; PDF). Also, the maxSourceSizeKBytes config should have been for OpenOffice.extensions.newMimetype.html.maxSiurceSizeKBytes and OpenOffice.Html2Pdf.extensions.newMimetype.pdf.maxSiurceSizeKBytes to be complete.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, either your new mimetype is HTML or it isn't. If it is you shouldn't have to do anything - if it isn't, that could be a possible reason for OpenOffice possibly rejecting it when using only OpenOffice.Html2Pdf - if your new pipeline contains a transformer that first converts to "real HTML" before passing it, that would explain why it's now working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Axel&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 08:18:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302216#M255346</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2015-09-15T08:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: HTML to PDF Transformation</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302217#M255347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As you suggested on IRC, I've provided a custom openoffice-document-formats.xml which includes the new mimetype and it's recognized by OpenOffice and does the required transformations without the need to use other classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 12:01:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/html-to-pdf-transformation/m-p/302217#M255347</guid>
      <dc:creator>iwkse</dc:creator>
      <dc:date>2015-09-16T12:01:17Z</dc:date>
    </item>
  </channel>
</rss>

