<?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: Error while opening PDF after generation in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342190#M110081</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Have you tried to use a custom component tFileOutputPDF which is written by talend community user and shared on talend exchange portal?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 Apr 2018 08:33:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-02T08:33:14Z</dc:date>
    <item>
      <title>Error while opening PDF after generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342189#M110080</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a job whose task is to download a list of PDFs in Salesforce by using an attachment ID. The PDFs are being downloaded, however while opening them I'm getting the error:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtCI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146433i93D087BCA602C742/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtCI.png" alt="0683p000009LtCI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;While opening the PDF via Notepad++ I'm seeing Base64 String.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture4.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtKG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157914i077B9908FCBA0C97/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtKG.png" alt="0683p000009LtKG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;While decoding the said Base64 string in an online Base64 to text converter, I'm getting the correct version of the PDF to download and it can be opened correctly.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is the job design:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LtE0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131945i87EFBDF690E4F3FC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LtE0.png" alt="0683p000009LtE0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The code in the tJavaRowComponent is:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture3.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LsxB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141509iFDD16241209E5409/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LsxB.png" alt="0683p000009LsxB.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:28:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342189#M110080</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening PDF after generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342190#M110081</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt; 
&lt;P&gt;Have you tried to use a custom component tFileOutputPDF which is written by talend community user and shared on talend exchange portal?&lt;/P&gt; 
&lt;P&gt;Best regards&lt;/P&gt; 
&lt;P&gt;Sabrina&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 08:33:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342190#M110081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T08:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error while opening PDF after generation</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342191#M110082</link>
      <description>&lt;P&gt;Hello xdshi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your reply.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The issue I was encountering was that I was unable to decode a byte array directly to Base64 due to the fact that I was forced to use the library sun.misc.BASE64Decoder as Talend 6.4.1 wasn't compiling my code was I tried to use java.util.Base64&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To solve it, I had to write the Base64 String to a text file via a tJavaRow, and then read the saved text via another tJavaRow and tFileList and decode it from said Base64 String to get my PDF.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thank you for your involvement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2018 15:27:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Error-while-opening-PDF-after-generation/m-p/2342191#M110082</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-02T15:27:52Z</dc:date>
    </item>
  </channel>
</rss>

