<?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 transform pdf, return new version in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286847#M239977</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have an OCR server (ABBYY Recognition Server) that can perform its work over a SOAP connection.&amp;nbsp; I've built a transformation for PDF to TXT.&amp;nbsp; Basically, the script that is called by the transformation first looks for a text layer and exports and returns that using pdftotext if available skipping the OCR server.&amp;nbsp; However if there is no text layer, it uses SOAP and runs it through the OCR server, getting back text which is returned to alfresco for indexing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That all works great.&amp;nbsp; However, the OCR server has the ability to return a PDF with the OCR text as a text layer.&amp;nbsp; What I was hoping is possible is to have a PDF to PDF transformation that would be set as a rule or run manually (with a webscript perhaps?) that sends the PDF out and gets the PDF back, then inserts the new PDF as a new minor version of the original document.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've done a lot with the 3.1.2 Alfresco Explorer, but Share is very new to me, and our new setup is going into Share, so I'm not sure where to begin.&amp;nbsp; I can see that the Javascript API has some versioning capability:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/references/API-JS-Versions.html" rel="nofollow noopener noreferrer"&gt;http://docs.alfresco.com/4.2/topic/com.alfresco.enterprise.doc/references/API-JS-Versions.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm not sure where to start with this.&amp;nbsp; Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Apr 2014 22:09:37 GMT</pubDate>
    <dc:creator>abruzzi</dc:creator>
    <dc:date>2014-04-11T22:09:37Z</dc:date>
    <item>
      <title>transform pdf, return new version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286847#M239977</link>
      <description>We have an OCR server (ABBYY Recognition Server) that can perform its work over a SOAP connection.&amp;nbsp; I've built a transformation for PDF to TXT.&amp;nbsp; Basically, the script that is called by the transformation first looks for a text layer and exports and returns that using pdftotext if available skipping</description>
      <pubDate>Fri, 11 Apr 2014 22:09:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286847#M239977</guid>
      <dc:creator>abruzzi</dc:creator>
      <dc:date>2014-04-11T22:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: transform pdf, return new version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286848#M239978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If i am understanding your requirement correctly then you want to setup a business rule in alfresco wherein when a PDF is uploaded to a space, it will be sent to OCR server for processing. And OCR server after processing the PDF will add the OCR text as a text layer on that PDF and will send the updated PDF back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the processed PDF is returned from OCR server, it should be added as a minor version to the original PDF.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this your requirement? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 18:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286848#M239978</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-12T18:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: transform pdf, return new version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286849#M239979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Exactly.&amp;nbsp; The OCR side I know how to do, and the SOAP is fairly easy (if I have to do SOAP in JavaScript, that's a bit trickier). I'm just not sure where to start with Alfresco.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Apr 2014 23:35:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286849#M239979</guid>
      <dc:creator>abruzzi</dc:creator>
      <dc:date>2014-04-12T23:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: transform pdf, return new version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286850#M239980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay. You will have to create custom java based action which will do the required processing for you. In this action, make a remote call to OCR server and get the processed PDF. Once the PDF is returned using VersionService add the new PDF as a new minor version on the original PDF. Also register this new action so as it is available while defining a business rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2014 10:36:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transform-pdf-return-new-version/m-p/286850#M239980</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-04-14T10:36:31Z</dc:date>
    </item>
  </channel>
</rss>

