<?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: transformDocument() in Java, not in Javascript? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219274#M172404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for both of your replies.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eventually, it seems like there was a problem with using a proper version of OpenOffice, so the conversion wasn't done the way it was supposed to. I've tried both of your solutions, and they work, too! I think they'll serve me for future use. :idea:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Sep 2010 09:42:18 GMT</pubDate>
    <dc:creator>talija83</dc:creator>
    <dc:date>2010-09-14T09:42:18Z</dc:date>
    <item>
      <title>transformDocument() in Java, not in Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219271#M172401</link>
      <description>Is there a way to easily transform content from one mimetype to another, using Java?&amp;nbsp; :?:&amp;nbsp; (For example, HTML file to Word document.)I know that it can be done easily using transformDocument() function in Javascript, but I'm interested in how it's done in Java. In Alfresco 3.3g, it seems that custom</description>
      <pubDate>Thu, 09 Sep 2010 14:57:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219271#M172401</guid>
      <dc:creator>talija83</dc:creator>
      <dc:date>2010-09-09T14:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: transformDocument() in Java, not in Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219272#M172402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the javascript used is a server side java code, so we can translate :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;var html_doc = … // Reference your doc&lt;BR /&gt;var word_doc = html_doc.transformDocument("application/msword");&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;SPAN&gt;to : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ScriptNode html_doc = new ScriptNode(htmlDocNodeRef, serviceRegistry);&lt;BR /&gt;NodeRef word_doc = html_doc.transformDocument("application/msword").getNodeRef();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;hope it works for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 14:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219272#M172402</guid>
      <dc:creator>hsohaib</dc:creator>
      <dc:date>2010-09-10T14:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: transformDocument() in Java, not in Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219273#M172403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The JAVA api is ContentService.transform()&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Sep 2010 14:39:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219273#M172403</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2010-09-10T14:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: transformDocument() in Java, not in Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219274#M172404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for both of your replies.&amp;nbsp; &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eventually, it seems like there was a problem with using a proper version of OpenOffice, so the conversion wasn't done the way it was supposed to. I've tried both of your solutions, and they work, too! I think they'll serve me for future use. :idea:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 09:42:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transformdocument-in-java-not-in-javascript/m-p/219274#M172404</guid>
      <dc:creator>talija83</dc:creator>
      <dc:date>2010-09-14T09:42:18Z</dc:date>
    </item>
  </channel>
</rss>

