<?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: Rule with condition &amp;quot;match a single term in a pdf ducument&amp;quot; in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110435#M30890</link>
    <description>&lt;P&gt;Thank you very much for your quickly response.&lt;/P&gt;&lt;P&gt;For the moment a changed the system to ecoDMS, because I won't take care filenames and folders in general more.&lt;/P&gt;&lt;P&gt;If I change back to Alfresco I will try your solution.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 13:50:20 GMT</pubDate>
    <dc:creator>Stefan79</dc:creator>
    <dc:date>2020-04-07T13:50:20Z</dc:date>
    <item>
      <title>Rule with condition "match a single term in a pdf ducument"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110433#M30888</link>
      <description>&lt;P&gt;After I was spending so many hours without findig a solution, I ask you for help:&lt;/P&gt;&lt;P&gt;I have a folder where I upload new searchable pdf-files. Now I want create a folder rule, which runs if "&lt;SPAN&gt;If all criteria are met:" match find the word "test" in (an already searchable) pdf-file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use alfresco-search-bar and search for keyword:test or text:test these files are listet successfully in the results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want the rule runs and move the file to folder "moved" if it finds the word "test" in the pdf-file (same like the alfresco-search-bar finds these files correctly)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your ideas!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Stefan&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-04-05 08_29_51-Alfresco » Folder Rules.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/544i9956AA88473CA591/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 06:43:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110433#M30888</guid>
      <dc:creator>Stefan79</dc:creator>
      <dc:date>2020-04-05T06:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Rule with condition "match a single term in a pdf ducument"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110434#M30889</link>
      <description>&lt;P&gt;The problem with this approach is that searching the content of an already uploaded document is not available. This is an asynchronous process that can take some seconds to complete.&lt;/P&gt;
&lt;P&gt;You could try to force the transformation to check if the text is inside the document.&lt;/P&gt;
&lt;PRE&gt;var trans = doc.transformDocument('text/plain', companyhome);
if (trans.content.includes("test"))
{
   // Move or whatever
}&lt;/PRE&gt;
&lt;P&gt;Or to execute the rule from time to time in that folder.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 07:16:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110434#M30889</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-04-06T07:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Rule with condition "match a single term in a pdf ducument"</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110435#M30890</link>
      <description>&lt;P&gt;Thank you very much for your quickly response.&lt;/P&gt;&lt;P&gt;For the moment a changed the system to ecoDMS, because I won't take care filenames and folders in general more.&lt;/P&gt;&lt;P&gt;If I change back to Alfresco I will try your solution.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 13:50:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/rule-with-condition-quot-match-a-single-term-in-a-pdf-ducument/m-p/110435#M30890</guid>
      <dc:creator>Stefan79</dc:creator>
      <dc:date>2020-04-07T13:50:20Z</dc:date>
    </item>
  </channel>
</rss>

