<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>westworld: a webmasters best friend &#187; PDFlib</title>
	<atom:link href="http://www.westworld.be/category/pdflib/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.westworld.be</link>
	<description>A webmasters best friend</description>
	<lastBuildDate>Mon, 14 Jun 2010 18:12:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>performance checklist AS3</title>
		<link>http://www.westworld.be/a-note-to-self/performance-checklist-as3/</link>
		<comments>http://www.westworld.be/a-note-to-self/performance-checklist-as3/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 10:59:42 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[PDFlib]]></category>
		<category><![CDATA[a note to self]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=77</guid>
		<description><![CDATA[
cach bitmaps when possible
use correct object types: int and unit instead of Number if possible
set mouseEnabled and mouseChildren to fals for items that don&#8217;t use mouseevents
keep only the objects that you use and when you use them. Assign null when nolonger needed
Bitwise math



No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<ul>
<li>cach bitmaps when possible</li>
<li>use correct object types: int and unit instead of Number if possible</li>
<li>set mouseEnabled and mouseChildren to fals for items that don&#8217;t use mouseevents</li>
<li>keep only the objects that you use and when you use them. Assign null when nolonger needed</li>
<li><a href="http://lab.polygonal.de/2007/05/10/bitwise-gems-fast-integer-math/" rel="nofollow">Bitwise math</a></li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/performance-checklist-as3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>scraping your pc for mp3 files</title>
		<link>http://www.westworld.be/a-note-to-self/scraping-your-pc-for-mp3-files/</link>
		<comments>http://www.westworld.be/a-note-to-self/scraping-your-pc-for-mp3-files/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 14:37:39 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[PDFlib]]></category>
		<category><![CDATA[a note to self]]></category>
		<category><![CDATA[scrape]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=67</guid>
		<description><![CDATA[The following is a simple dos trick to create a playlist of all your mp3&#8217;s.

go to the start menu
click run
enter cmd  =&#62; this opens a black dos window
type dir /b/s *.mp3 &#62; c:\mp3list.m3u

When this command finishes, a file will be created under c: with a list of all your mp3 files.
The m3u file is a [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The following is a simple dos trick to create a playlist of all your mp3&#8217;s.</p>
<ol>
<li>go to the start menu</li>
<li>click run</li>
<li>enter cmd  =&gt; this opens a black dos window</li>
<li>type dir /b/s *.mp3 &gt; c:\mp3list.m3u</li>
</ol>
<p>When this command finishes, a file will be created under c: with a list of all your mp3 files.<br />
The m3u file is a plain text file with links to all your music. Some audio applications us this format for playlists.</p>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none"></li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/a-note-to-self/scraping-your-pc-for-mp3-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PDFlib basics</title>
		<link>http://www.westworld.be/pdflib/pdflib-basics/</link>
		<comments>http://www.westworld.be/pdflib/pdflib-basics/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 07:38:55 +0000</pubDate>
		<dc:creator>westworld</dc:creator>
				<category><![CDATA[PDFlib]]></category>

		<guid isPermaLink="false">http://www.westworld.be/?p=13</guid>
		<description><![CDATA[A basic example for PDFlib


No related posts.]]></description>
			<content:encoded><![CDATA[<p>$imagefile = &#8220;mybackground.tif&#8221;;</p>
<p>$outfilename = &#8220;&#8221;; //empty if you want to work in memory, else use filename</p>
<p>$p = PDF_new();</p>
<p>PDF_set_parameter($p, &#8220;license&#8221;, &#8220;your licensenr&#8221;);//call before anything else<br />
PDF_set_parameter($p, &#8220;errorpolicy&#8221;, &#8220;return&#8221;);<br />
PDF_set_parameter($p, &#8220;textformat&#8221;, &#8220;utf8&#8243;); // use utf8<br />
//mysql_real_escape_string breaks variables with utf8 data</p>
<p>if (PDF_begin_document($p, $outfilename, &#8220;&#8221;) == 0) {<br />
die(&#8221;Error: &#8221; . PDF_get_errmsg($p));// if you can&#8217;t create the document return the error<br />
}</p>
<p>PDF_set_info($p, &#8220;Creator&#8221;, &#8220;My name&#8221;);// place your name inside the pdf info<br />
PDF_set_info($p, &#8220;Title&#8221;, &#8220;My title&#8221;); // give the pdf a title</p>
<p>PDF_begin_page_ext($p, 595, 842, &#8220;topdown&#8221;); // begin a page, these are settings for A4 size. coordinates start top left</p>
<p>$font = PDF_load_font($p, &#8220;Helvetica&#8221;, &#8220;unicode&#8221;, &#8220;&#8221;); // set the font<br />
if ($font == 0) {<br />
die(&#8221;Error: &#8221; . PDF_get_errmsg($p)); // return errormessage if fontsettings are wrong<br />
}<br />
PDF_setfont($p, $font, 10);</p>
<p>/* place image in the background*/<br />
$image = PDF_load_image($p, &#8220;auto&#8221;, $imagefile, &#8220;&#8221;);<br />
if ($image == 0) {die(&#8221;Error: &#8221; . PDF_get_errmsg($p));} // if failed, return the errormessage<br />
PDF_fit_image($p,$image, 1, 842, &#8220;&#8221;); // place the image<br />
PDF_close_image($p, $image);</p>
<p>/* textflow example*/<br />
$mytext = &#8220;this is&lt;nextline&gt;some text&lt;nextline&gt;on multiple lines&#8221;;<br />
$mytextflow = PDF_create_textflow($p,$mytext, &#8220;fontname=arial fontsize=8 encoding=unicode leading=12&#8243;);<br />
PDF_fit_textflow($p, $mytextflow, 289, 122, 400, 400, &#8220;&#8221;);</p>
<p>/* working with fit_textline */<br />
$optlist1= &#8220;boxsize={355 14} position={top left}&#8221;; // box is 355 width and 14 height, draw text top left<br />
PDF_fit_textline($p,&#8221;test for fit_textline&#8221;, 36, 120, $optlist1);</p>
<p>/*draw rectangle*/</p>
<p>PDF_rect($p, 36, 755, 520, 107);<br />
PDF_stroke($p);</p>
<p>PDF_end_page_ext($p, &#8220;&#8221;); // end of page</p>
<p>PDF_end_document($p, &#8220;&#8221;); // end of document<br />
// $document = pdf_get_buffer($p); use this to capture the pdf from memory -&gt;$outputfile should be empty</p>
<p>PDF_delete($p);</p>
<h4>Related Blogs</h4>
<ul class="pc_pingback">
<li class="hdl" style="list-style: none">Related Blogs on <strong>PDFlib</strong></li>
<li><a href="http://rivervaleyouth.wordpress.com/2008/08/14/use-pdflib-or-fpdf/">Use PDFLib or FPDF?</a></li>
<li><a href="http://imountain.com/blog/2008/06/20/howto-install-pdflitepdflib-on-a-centosrhel-server/">HOWTO: Install PDFLite/PDFLib on a Centos/RHEL server</a></li>
<li><a href="http://bluehosthacks.com/howto/php/how-to-install-pdflib-lite-and-the-php-so">How To Install PDFlib Lite (and the PHP .so)</a></li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.westworld.be/pdflib/pdflib-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
