<?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: [resolved] decode PDF in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-decode-PDF/m-p/2277656#M53359</link>
    <description>I suggest you test the extraction and decoding outside Talend in a simple Java project. If you know how to do it right, you can adapt your new knowledge in a Talend job. By the way, I would create a routine instead coding it in a tJavaRow completely. The static method from a routine could easily be developed and tested outside Talend.</description>
    <pubDate>Tue, 18 Nov 2014 10:43:47 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-11-18T10:43:47Z</dc:date>
    <item>
      <title>[resolved] decode PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-decode-PDF/m-p/2277655#M53358</link>
      <description>I have a list of .txt files that contain encoded PDFs (base64). I am trying to decode and save them back to .pdf files. I am starting with one .txt file to test.&amp;nbsp;
&lt;BR /&gt;tFileList ---&amp;gt; tFileInputDelimited -----&amp;gt; tJavaRow ------&amp;gt; tFileOutputDelimited
&lt;BR /&gt;In tFileInputDelimited, I set row separator to something like "\nnnnnnnnnnnnnnn\nnnnnnnn" so the whole file is treated as one row
&lt;BR /&gt;In tJavaRow,&amp;nbsp;
&lt;BR /&gt;&amp;nbsp; byte[] buf = new sun.misc.BASE64Decoder().decodeBuffer(input_row.pdf_in);
&lt;BR /&gt;&amp;nbsp; output_row.pdf_out = new String(buf);
&lt;BR /&gt;but the output file test.pdf is not readable (Adobe Reader: damaged and could not be repaired).&amp;nbsp;
&lt;BR /&gt;What am I doing wrong?</description>
      <pubDate>Mon, 17 Nov 2014 21:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-decode-PDF/m-p/2277655#M53358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-17T21:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] decode PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-decode-PDF/m-p/2277656#M53359</link>
      <description>I suggest you test the extraction and decoding outside Talend in a simple Java project. If you know how to do it right, you can adapt your new knowledge in a Talend job. By the way, I would create a routine instead coding it in a tJavaRow completely. The static method from a routine could easily be developed and tested outside Talend.</description>
      <pubDate>Tue, 18 Nov 2014 10:43:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-decode-PDF/m-p/2277656#M53359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-18T10:43:47Z</dc:date>
    </item>
  </channel>
</rss>

