<?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: Display dynamic PDF directly in the browser in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/display-dynamic-pdf-directly-in-the-browser/m-p/247561#M200691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally found a solution. It was an encoding problem. The code to write the pdf content is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;res.getOutputStream().write(content);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The writer must not be used for binary content&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2012 12:38:52 GMT</pubDate>
    <dc:creator>ericfrigot</dc:creator>
    <dc:date>2012-03-23T12:38:52Z</dc:date>
    <item>
      <title>Display dynamic PDF directly in the browser</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-dynamic-pdf-directly-in-the-browser/m-p/247560#M200690</link>
      <description>Hi All,I am trying to write a JAVA Web Script to display generated PDF in the browser. Here is the code &lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ublic class MyPDFWebScript extends AbstractWebScript {&amp;nbsp;&amp;nbsp;&amp;nbsp;@Override&amp;nbsp;&amp;nbsp;&amp;nbsp;public void execute(WebScriptRequest req, WebScriptResponse res) throws IOException {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;res.setContentType("application</description>
      <pubDate>Fri, 23 Mar 2012 11:38:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-dynamic-pdf-directly-in-the-browser/m-p/247560#M200690</guid>
      <dc:creator>ericfrigot</dc:creator>
      <dc:date>2012-03-23T11:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Display dynamic PDF directly in the browser</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/display-dynamic-pdf-directly-in-the-browser/m-p/247561#M200691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I finally found a solution. It was an encoding problem. The code to write the pdf content is :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;res.getOutputStream().write(content);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;The writer must not be used for binary content&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2012 12:38:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/display-dynamic-pdf-directly-in-the-browser/m-p/247561#M200691</guid>
      <dc:creator>ericfrigot</dc:creator>
      <dc:date>2012-03-23T12:38:52Z</dc:date>
    </item>
  </channel>
</rss>

