<?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: Blurry Flash Preview in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247617#M200747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some debugging with pdf2swf. Alfresco uses the following command line to generate the preview:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/usr/local/bin/pdf2swf -T 9 -s zoom=72 -s ppmsubpixels=1 -s poly2bitmap=1 -s bitmapfonts=1 test.pdf -o test.swf&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;If I use the options above in a terminal, I get the same blurry output. I have to remove the options "-s poly2bitmap=1" and "-s bitmapfonts=1" to get a perfect preview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the question is: Why does Alfresco use "-s poly2bitmap=1" and "-s bitmapfonts=1"? How can I avoid that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoralt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;SPAN&gt; I found out myself. After grepping through my Alfresco installation I discovered "webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/swf-transform.properties". There I changed the parameters to my needs. Now the preview is perfect &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2011 09:57:00 GMT</pubDate>
    <dc:creator>thoralt</dc:creator>
    <dc:date>2011-10-17T09:57:00Z</dc:date>
    <item>
      <title>Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247610#M200740</link>
      <description>I have encountered a problem with flash preview, after I migrate alfresco from a server to another. I use the same version (3.3), and I follow the steps in http://wiki.alfresco.com/wiki/Backup_and_Restore, I have no problem with that at all, all my documents are available to the users that are allow</description>
      <pubDate>Tue, 04 Oct 2011 15:23:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247610#M200740</guid>
      <dc:creator>soborno</dc:creator>
      <dc:date>2011-10-04T15:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247611#M200741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solved. It was a problem with swftools, apparently there were errors when it was compiled from source, I follow the steps in here: &lt;/SPAN&gt;&lt;A href="https://designbye.wordpress.com/2010/02/23/installing-swftools-and-pdf2swf-on-ubuntu-linux/" rel="nofollow noopener noreferrer"&gt;https://designbye.wordpress.com/2010/02/23/installing-swftools-and-pdf2swf-on-ubuntu-linux/&lt;/A&gt;&lt;SPAN&gt;, and have no more problems.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 11:42:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247611#M200741</guid>
      <dc:creator>soborno</dc:creator>
      <dc:date>2011-10-07T11:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247612#M200742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I stumbled across the same issue. I use Alfresco 4.0.a on Debian Linux. As suggested, I compiled the latest version of swftools, but the preview is still shown in low resolution. Do I need to update/compile/reinstall any components which swftools depends on? Any help would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoralt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 11:44:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247612#M200742</guid>
      <dc:creator>thoralt</dc:creator>
      <dc:date>2011-10-11T11:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247613#M200743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Check your alfresco-global.properties, see if the swftools route is right for your current instalation, in my case with the steps I mention above it should be&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;swf.exe=/usr/local/bin/pdf2swf&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Don`t forget to restart alfresco!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Claudio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 15:45:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247613#M200743</guid>
      <dc:creator>soborno</dc:creator>
      <dc:date>2011-10-11T15:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247614#M200744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you for your reply. I verified my installation, alfresco-global.properties contains "swf.exe=/usr/local/bin/pdf2swf", and did restart Alfresco after the change. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I verified the installation of swftools:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;alfresco:~# /usr/local/bin/pdf2swf -V&lt;BR /&gt;pdf2swf - part of swftools 0.9.1&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;This shows that the right binary is in place (and it has a recent timestamp from my last "make install").&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I delete /usr/local/bin/pdf2swf, upload a new PDF and try to preview it, I get an error (preview not available). As soon as I copy back pdf2swf to /usr/local/bin, the PDF preview is possible. This shows that Alfresco is using the right file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To sum it up: Alfresco uses my freshly compiled swftools 0.9.1 (I also tried 0.8.1 with same result).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a screenshot what it looks like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://www.thoralt.de/netbox/alfrescoscreenshot.png" rel="nofollow noopener noreferrer"&gt;http://www.thoralt.de/netbox/alfrescoscreenshot.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apparently Alfresco/swftools renders a pixel image instead of vector/glyph based data, which looks as shown above. How can I verify what's going wrong here? At the moment I don't know where to start…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoralt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 06:47:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247614#M200744</guid>
      <dc:creator>thoralt</dc:creator>
      <dc:date>2011-10-12T06:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247615#M200745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would start with swftools, test in the command line the pdf2swf tool (after all, is a tool for itself too) with some light pdf file, and then check the .swf, if its blurry, you have a problem with swftools.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Claudio&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 00:02:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247615#M200745</guid>
      <dc:creator>soborno</dc:creator>
      <dc:date>2011-10-16T00:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247616#M200746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for the suggestion. I did the test and converted a pdf on the command line. If I load the resulting swf file with Firefox, it shows up normally. Even at highest magnification everything stays sharp, because it is vectorized. The same file within Alfresco stays blurred and rasterized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My conclusion therefore is: Something between Alfresco and pdf2swf is wrong. I'll investigate that further.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoralt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 07:22:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247616#M200746</guid>
      <dc:creator>thoralt</dc:creator>
      <dc:date>2011-10-17T07:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247617#M200747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did some debugging with pdf2swf. Alfresco uses the following command line to generate the preview:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;/usr/local/bin/pdf2swf -T 9 -s zoom=72 -s ppmsubpixels=1 -s poly2bitmap=1 -s bitmapfonts=1 test.pdf -o test.swf&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;If I use the options above in a terminal, I get the same blurry output. I have to remove the options "-s poly2bitmap=1" and "-s bitmapfonts=1" to get a perfect preview.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the question is: Why does Alfresco use "-s poly2bitmap=1" and "-s bitmapfonts=1"? How can I avoid that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thoralt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;SPAN&gt; I found out myself. After grepping through my Alfresco installation I discovered "webapps/alfresco/WEB-INF/classes/alfresco/subsystems/thirdparty/default/swf-transform.properties". There I changed the parameters to my needs. Now the preview is perfect &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2011 09:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247617#M200747</guid>
      <dc:creator>thoralt</dc:creator>
      <dc:date>2011-10-17T09:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Blurry Flash Preview</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247618#M200748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have filed this as an issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://issues.alfresco.com/jira/browse/ALF-10870" rel="nofollow noopener noreferrer"&gt;https://issues.alfresco.com/jira/browse/ALF-10870&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 06:38:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/blurry-flash-preview/m-p/247618#M200748</guid>
      <dc:creator>loftux</dc:creator>
      <dc:date>2011-10-18T06:38:36Z</dc:date>
    </item>
  </channel>
</rss>

