<?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: From tRestClient to PDF in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294475#M67344</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am not a specialist in Java, make sure you have the expected response string from API, we usually use tLogRow to print the response on console for debugging.  To write a PDF, this &lt;A href="https://stackoverflow.com/questions/15945010/how-to-write-pdf-using-java" alt="https://stackoverflow.com/questions/15945010/how-to-write-pdf-using-java" target="_blank"&gt;page &lt;/A&gt;recommended to use PDF libraries like iText&amp;nbsp;or Apache FOP or the custom component shared on Talend Exchange, such as &lt;A href="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1615&amp;amp;pi=marketplace%252F1%252Fproducts%252F1615%252Fitems%252F2816" alt="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1615&amp;amp;pi=marketplace%252F1%252Fproducts%252F1615%252Fitems%252F2816" target="_blank"&gt;tOutputPDF2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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, 30 Mar 2022 08:22:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-03-30T08:22:17Z</dc:date>
    <item>
      <title>From tRestClient to PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294474#M67343</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I'm retreiving a PDF file from an API request ("POST").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm getting trouble in storing the PDF File. &lt;/P&gt;&lt;P&gt;I'm trying using tJavaRow but I generated i blank file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there others tool or some java code that should help me? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Among all codes, the last one I tried&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;String inputString = input_row.PDFDaConvertire;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;byte[] byteArrray = inputString.getBytes("UTF-8"); //I tried with also ASCII and &lt;B&gt;ISO&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;8859-1&amp;nbsp;&lt;/P&gt;&lt;P&gt; &amp;nbsp; &amp;nbsp;Files.write(Paths.get("out.pdf), byteArrray);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:04:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294474#M67343</guid>
      <dc:creator>EGuarato1648206044</dc:creator>
      <dc:date>2024-11-15T23:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: From tRestClient to PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294475#M67344</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am not a specialist in Java, make sure you have the expected response string from API, we usually use tLogRow to print the response on console for debugging.  To write a PDF, this &lt;A href="https://stackoverflow.com/questions/15945010/how-to-write-pdf-using-java" alt="https://stackoverflow.com/questions/15945010/how-to-write-pdf-using-java" target="_blank"&gt;page &lt;/A&gt;recommended to use PDF libraries like iText&amp;nbsp;or Apache FOP or the custom component shared on Talend Exchange, such as &lt;A href="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1615&amp;amp;pi=marketplace%252F1%252Fproducts%252F1615%252Fitems%252F2816" alt="https://exchange.talend.com/#marketplaceproductoverview:marketplace=marketplace%252F1&amp;amp;p=marketplace%252F1%252Fproducts%252F1615&amp;amp;pi=marketplace%252F1%252Fproducts%252F1615%252Fitems%252F2816" target="_blank"&gt;tOutputPDF2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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, 30 Mar 2022 08:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294475#M67344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-30T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: From tRestClient to PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294476#M67345</link>
      <description>&lt;P&gt;Not working. The tRestClient that retreive the PDF with a POST API call, pass the file in String to the next component. Using a string to pass the file means losing data to rebuild it and the tOutputPDF just create a PDF of the string. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use tHttpRequest but i got the error 411&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 11:15:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294476#M67345</guid>
      <dc:creator>EGuarato1648206044</dc:creator>
      <dc:date>2022-03-30T11:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: From tRestClient to PDF</title>
      <link>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294477#M67346</link>
      <description>&lt;P&gt;Solved , changing approach, using tFileFetch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://community.talend.com/s/question/0D53p00007vCqFGCA0/resolved-is-possible-to-download-a-file-through-trestresponse?language=en_US&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 13:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/From-tRestClient-to-PDF/m-p/2294477#M67346</guid>
      <dc:creator>EGuarato1648206044</dc:creator>
      <dc:date>2022-03-30T13:53:28Z</dc:date>
    </item>
  </channel>
</rss>

