<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Creating a PDF preview</title>
	<atom:link href="http://valokuva.org/?feed=rss2&#038;p=7" rel="self" type="application/rss+xml" />
	<link>http://valokuva.org/?p=7</link>
	<description>My Thoughts Exactly</description>
	<lastBuildDate>Fri, 03 Sep 2010 20:25:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: tahere</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-20470</link>
		<dc:creator>tahere</dc:creator>
		<pubDate>Sat, 21 Aug 2010 05:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-20470</guid>
		<description>vbn</description>
		<content:encoded><![CDATA[<p>vbn</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RANA</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-20368</link>
		<dc:creator>RANA</dc:creator>
		<pubDate>Tue, 10 Aug 2010 12:42:23 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-20368</guid>
		<description>How to resolve Fatal error: Class &#039;imagick&#039; not found in C:\xampp\htdocs\pdf-thumb-preview.php on line 3 and WARNING: php_bin C:\xampp\php\php.exe appears to have a suffix  php.exe, but con fig variable php_suffix does not match ERROR: The DSP imagick.dsp does not exist.</description>
		<content:encoded><![CDATA[<p>How to resolve Fatal error: Class &#8216;imagick&#8217; not found in C:\xampp\htdocs\pdf-thumb-preview.php on line 3 and WARNING: php_bin C:\xampp\php\php.exe appears to have a suffix  php.exe, but con fig variable php_suffix does not match ERROR: The DSP imagick.dsp does not exist.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-20143</link>
		<dc:creator>Stephan</dc:creator>
		<pubDate>Tue, 22 Jun 2010 09:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-20143</guid>
		<description>How can you change the image size and quality?</description>
		<content:encoded><![CDATA[<p>How can you change the image size and quality?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: andr</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19986</link>
		<dc:creator>andr</dc:creator>
		<pubDate>Mon, 17 May 2010 23:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19986</guid>
		<description>I can make thumbnail from single pdf, but how to show thumbs from all pdf files in folder?</description>
		<content:encoded><![CDATA[<p>I can make thumbnail from single pdf, but how to show thumbs from all pdf files in folder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: raffazizzi</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19976</link>
		<dc:creator>raffazizzi</dc:creator>
		<pubDate>Sat, 15 May 2010 15:07:50 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19976</guid>
		<description>Hi there, thanks very much for these very useful examples.

I&#039;m converting to png and displaying a postscript file (ps). The file has more than one page (not unlikely a pdf). 

If I load the images without [] it will always show the last page; instead if I put in any index number, it will always show the first page only. For example:

$im-&gt;readImage( &#039;test.ps[2]&#039; ); //shows the first page instead of the third

Any ideas of why this is happening?

Cheers,
R</description>
		<content:encoded><![CDATA[<p>Hi there, thanks very much for these very useful examples.</p>
<p>I&#8217;m converting to png and displaying a postscript file (ps). The file has more than one page (not unlikely a pdf). </p>
<p>If I load the images without [] it will always show the last page; instead if I put in any index number, it will always show the first page only. For example:</p>
<p>$im-&gt;readImage( &#8216;test.ps[2]&#8216; ); //shows the first page instead of the third</p>
<p>Any ideas of why this is happening?</p>
<p>Cheers,<br />
R</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marek</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19948</link>
		<dc:creator>marek</dc:creator>
		<pubDate>Sun, 09 May 2010 15:10:21 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19948</guid>
		<description>pdf to png does not work for me
result:
Fatal error: Uncaught exception &#039;ImagickException&#039; with message &#039;Postscript delegate failed `/data03/..................: No such file or directory @ pdf.c/ReadPDFImage/630&#039; in /data03/.....................:3 Stack trace: #0 /data03/.......................): Imagick-&gt;__construct(&#039;2010_enesekaits...&#039;) #1 {main} thrown in /data03/..................../magick.php on line 3</description>
		<content:encoded><![CDATA[<p>pdf to png does not work for me<br />
result:<br />
Fatal error: Uncaught exception &#8216;ImagickException&#8217; with message &#8216;Postscript delegate failed `/data03/&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;: No such file or directory @ pdf.c/ReadPDFImage/630&#8242; in /data03/&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;:3 Stack trace: #0 /data03/&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..): Imagick-&gt;__construct(&#8217;2010_enesekaits&#8230;&#8217;) #1 {main} thrown in /data03/&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;../magick.php on line 3</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ppva</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19603</link>
		<dc:creator>ppva</dc:creator>
		<pubDate>Tue, 06 Apr 2010 07:18:32 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19603</guid>
		<description>So how can I use a similar technique to get a preview of the 1st page of a pdf file that is on an other server?

Usually, doing things on files on an other server is well supported in the Internet. Examples of this are: hot linking to a jpg file, using the html5 video tag for a video on an other server, etc. So there must be a way for image previews for pdfs as well.</description>
		<content:encoded><![CDATA[<p>So how can I use a similar technique to get a preview of the 1st page of a pdf file that is on an other server?</p>
<p>Usually, doing things on files on an other server is well supported in the Internet. Examples of this are: hot linking to a jpg file, using the html5 video tag for a video on an other server, etc. So there must be a way for image previews for pdfs as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mikko Koppanen</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19598</link>
		<dc:creator>Mikko Koppanen</dc:creator>
		<pubDate>Mon, 05 Apr 2010 14:01:26 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19598</guid>
		<description>ppva,

the [] notation at end works only with local files.</description>
		<content:encoded><![CDATA[<p>ppva,</p>
<p>the [] notation at end works only with local files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ppva</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19594</link>
		<dc:creator>ppva</dc:creator>
		<pubDate>Mon, 05 Apr 2010 09:30:03 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19594</guid>
		<description>A very basic question:

$im = new imagick( &#039;test.pdf[0]&#039; );


Could this work for a file on an other server, eg. 

$im = new imagick( &#039;http://www.otherserver.com/test.pdf[0]&#039; );

or is imagick only designed to work for same-server files?</description>
		<content:encoded><![CDATA[<p>A very basic question:</p>
<p>$im = new imagick( &#8216;test.pdf[0]&#8216; );</p>
<p>Could this work for a file on an other server, eg. </p>
<p>$im = new imagick( &#8216;http://www.otherserver.com/test.pdf[0]&#8216; );</p>
<p>or is imagick only designed to work for same-server files?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adrian Jones</title>
		<link>http://valokuva.org/?p=7&#038;cpage=2#comment-19198</link>
		<dc:creator>Adrian Jones</dc:creator>
		<pubDate>Tue, 16 Feb 2010 06:07:32 +0000</pubDate>
		<guid isPermaLink="false">http://valokuva.org/blog/?p=7#comment-19198</guid>
		<description>For those not happy with the default quality of the PNG preview of the PDF, this will make a big difference. Note that you must set the resolution before reading the image:

$im = new imagick();
$im-&gt;setResolution(600,600);
$im-&gt;readImage($filepath);
$im-&gt;setImageFormat(&quot;png&quot;);
$im-&gt;setImageDepth(8);
$im-&gt;setImageCompressionQuality(90);
$im-&gt;scaleImage(500,0);

The only problem is the filesize ends up being very large, but text is actually readable, unlike imagemagick&#039;s defaults.</description>
		<content:encoded><![CDATA[<p>For those not happy with the default quality of the PNG preview of the PDF, this will make a big difference. Note that you must set the resolution before reading the image:</p>
<p>$im = new imagick();<br />
$im-&gt;setResolution(600,600);<br />
$im-&gt;readImage($filepath);<br />
$im-&gt;setImageFormat(&#8220;png&#8221;);<br />
$im-&gt;setImageDepth(8);<br />
$im-&gt;setImageCompressionQuality(90);<br />
$im-&gt;scaleImage(500,0);</p>
<p>The only problem is the filesize ends up being very large, but text is actually readable, unlike imagemagick&#8217;s defaults.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using apc (user agent is rejected)
Database Caching 2/17 queries in 0.060 seconds using apc

Served from: valokuva.org @ 2010-09-06 22:48:06 -->