<?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 Aggregate files with the same prefix in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348582#M115691</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm reading a directory with tFileList:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05bc5d63-aef5-4e76-8d7b-789957117d31.pdf&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d.pdf&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d_Bijlage 210120065.pdf&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d.pdf&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d_Bijlage 210120017.pdf&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to merge the PDFs. Ie:&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d.pdf&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d_Bijlage 210120065.pdf&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d_merged.pdf&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d.pdf&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d_Bijlage 210120017.pdf&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d_merged.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tfileList (get all the UUIDs) -&amp;gt; tFileList (process by UUID)&lt;/LI&gt;&lt;LI&gt;with a tLoop &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to figure it out.&lt;/P&gt;&lt;P&gt;Can oneone point me in the right direction? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:03:37 GMT</pubDate>
    <dc:creator>JayQueue</dc:creator>
    <dc:date>2024-11-15T22:03:37Z</dc:date>
    <item>
      <title>Aggregate files with the same prefix</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348582#M115691</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm reading a directory with tFileList:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;05bc5d63-aef5-4e76-8d7b-789957117d31.pdf&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d.pdf&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d_Bijlage 210120065.pdf&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d.pdf&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d_Bijlage 210120017.pdf&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I want to merge the PDFs. Ie:&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d.pdf&lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d_Bijlage 210120065.pdf&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;0e9b95e7-5875-47dd-8c54-14293586ac8d_merged.pdf&lt;/P&gt;&lt;P&gt;And&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d.pdf&lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d_Bijlage 210120017.pdf&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;1ab11ca4-fabf-4ace-ba6a-a32391dbb49d_merged.pdf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;tfileList (get all the UUIDs) -&amp;gt; tFileList (process by UUID)&lt;/LI&gt;&lt;LI&gt;with a tLoop &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to figure it out.&lt;/P&gt;&lt;P&gt;Can oneone point me in the right direction? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:03:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348582#M115691</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2024-11-15T22:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate files with the same prefix</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348583#M115692</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Do you just want to merge the file name or merge the file content aslo?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 00:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348583#M115692</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-03-01T00:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate files with the same prefix</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348584#M115693</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to merge the file content with PDFMerge but I can't seem to group them&lt;/P&gt;</description>
      <pubDate>Wed, 01 Mar 2023 06:49:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348584#M115693</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2023-03-01T06:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate files with the same prefix</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348585#M115694</link>
      <description>&lt;P&gt;Fixed:&lt;/P&gt;&lt;P&gt;tFileList -- Iterate -- tJavaFlex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Start&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;ArrayList&amp;lt;String&amp;gt; myFiles = new ArrayList&amp;lt;String&amp;gt;();&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String fileNamePath = ((String)globalMap.get("tFileList_5_CURRENT_FILEPATH"));&lt;/P&gt;&lt;P&gt;String fileName 	= ((String)globalMap.get("tFileList_5_CURRENT_FILE"));&lt;/P&gt;&lt;P&gt;String prefix 		= fileName.substring(0, 36);&lt;/P&gt;&lt;P&gt;System.out.println("Merging " + fileName);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Main&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;myFiles.add(fileNamePath);&lt;/P&gt;&lt;P&gt;myFiles.add(context.invoiceFolder + prefix + ".pdf");&amp;nbsp;&lt;/P&gt;&lt;P&gt;File file1 					= new File(myFiles.get(0));&lt;/P&gt;&lt;P&gt;File file2 					= new File(myFiles.get(1));&amp;nbsp;&lt;/P&gt;&lt;P&gt;PDFMergerUtility pdfMerger 	= new PDFMergerUtility();&lt;/P&gt;&lt;P&gt;pdfMerger.setDestinationFileName(context.invoiceFolder + "/"+ "factuur_" + prefix + ".pdf");&lt;/P&gt;&lt;P&gt;pdfMerger.addSource(file2);&lt;/P&gt;&lt;P&gt;pdfMerger.addSource(file1);&lt;/P&gt;&lt;P&gt;pdfMerger.mergeDocuments(null);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;End&lt;/B&gt;:&lt;/P&gt;&lt;P&gt;Just a simple System.out.println();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 09:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Aggregate-files-with-the-same-prefix/m-p/2348585#M115694</guid>
      <dc:creator>JayQueue</dc:creator>
      <dc:date>2023-03-02T09:49:05Z</dc:date>
    </item>
  </channel>
</rss>

