<?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>LiveDocx in PHP &#187; LiveDocx</title>
	<atom:link href="http://www.phplivedocx.org/category/livedocx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phplivedocx.org</link>
	<description>Zend Framework Implementation of LiveDocx</description>
	<lastBuildDate>Wed, 21 Dec 2011 12:39:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>LiveDocx arrives in Zend Framework 2.0.0beta2</title>
		<link>http://www.phplivedocx.org/2011/12/21/livedocx-makes-it-into-zend-framework-2-0-0beta2/</link>
		<comments>http://www.phplivedocx.org/2011/12/21/livedocx-makes-it-into-zend-framework-2-0-0beta2/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 12:37:30 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1520</guid>
		<description><![CDATA[I am delighted to announce that version 2.0.0beta2 of the Zend Framework now contains the latest LiveDocx components, tests and demo applications. You can download one of the official distribution files from: http://packages.zendframework.com/ Or take a look at the source directly on GitHub. Feel free to download the framework and try out the latest LiveDocx [...]]]></description>
			<content:encoded><![CDATA[<p>I am delighted to announce that version <strong>2.0.0beta2</strong> of the Zend Framework now contains the latest LiveDocx components, tests and demo applications.</p>
<p>You can download one of the official distribution files from:</p>
<ul>
<li><a href="http://packages.zendframework.com/">http://packages.zendframework.com/</a></li>
</ul>
<p>Or take a look at the source directly on <a href="https://github.com/zendframework/zf2/tree/master/library/Zend/Service/LiveDocx">GitHub</a>.</p>
<p>Feel free to download the framework and try out the latest LiveDocx demo applications. I have not only ported all those from Zend Framework 1, but also added some new ones for Zend Framework 2.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2011/12/21/livedocx-makes-it-into-zend-framework-2-0-0beta2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Video tutorial: Getting started with LiveDocx</title>
		<link>http://www.phplivedocx.org/2011/07/23/video-tutorial-getting-started-with-livedocx/</link>
		<comments>http://www.phplivedocx.org/2011/07/23/video-tutorial-getting-started-with-livedocx/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 16:34:28 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[LiveDocx]]></category>
		<category><![CDATA[Samples]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1453</guid>
		<description><![CDATA[Björn Meyer over at livedocx.com has just published a video (below) that illustrates how to set up a LiveDocx account, create a template with one merge field in Microsoft Word and finally how to populate the template, using a Visual Studio .NET based application. The final step of the tutorial is not directly relevant to [...]]]></description>
			<content:encoded><![CDATA[<p><em>Björn Meyer</em> over at livedocx.com has just published a <a href="http://www.youtube.com/watch?v=ZaVdYtnVIso">video</a> (below) that illustrates how to <a href="https://www.livedocx.com/user/account_registration.aspx">set up</a> a LiveDocx account, create a template with one merge field in Microsoft Word and finally how to populate the template, using a Visual Studio .NET based application.</p>
<p style="margin-bottom:15px;">The final step of the tutorial is not directly relevant to this blog, but the first two steps are. To see some PHP code that illustrates how to populate templates with LiveDocx, using the <a href="http://framework.zend.com/manual/en/zend.service.livedocx.html">Zend Framework</a>, please take a look at this article: <a href="http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/">Brief introduction to LiveDocx in PHP</a>.</p>
<p><object width="560" height="450"><param name="movie" value="http://www.youtube.com/v/NW89ti-esVA?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><param name="wmode" value="transparent"></param>
    <embed src="http://www.youtube.com/v/NW89ti-esVA?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowScriptAccess="always" allowFullScreen="true" wmode="transparent" width="560" height="450"></embed></object></p>
<p style="margin-top:15px;">If you have any questions about the video or need help using LiveDocx, please do not hesitate to use the comment section below.</p>
<p>Thank you <em>Björn</em> for a very easy-to-follow video tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2011/07/23/video-tutorial-getting-started-with-livedocx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using LiveDocx with Python and SUDS</title>
		<link>http://www.phplivedocx.org/2011/06/23/using-livedocx-with-python-suds/</link>
		<comments>http://www.phplivedocx.org/2011/06/23/using-livedocx-with-python-suds/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 14:56:11 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[Community]]></category>
		<category><![CDATA[LiveDocx]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1434</guid>
		<description><![CDATA[Despite this blog being about using LiveDocx in PHP, I am often asked whether it is possible to use LiveDocx in Python. As LiveDocx is a SOAP service, it is possible to use LiveDocx in any programming language that supports SOAP. Python supports SOAP, hence LiveDocx may be used in Python. However, it is always [...]]]></description>
			<content:encoded><![CDATA[<p>Despite this blog being about using LiveDocx in PHP, I am often asked whether it is possible to use LiveDocx in Python.</p>
<p>As LiveDocx is a SOAP service, it is possible to use LiveDocx in any programming language that supports SOAP. Python supports SOAP, hence LiveDocx may be used in Python. However, it is always easiest, if a native adapter is available.</p>
<p><a href="http://blog.rbenkel.me/">Radoslaw Benkel</a> (<a href="http://twitter.com/#!/singlespl">@singlespl</a>) has recently published such a native adapter, which makes using LiveDocx in Python a breeze.</p>
<p>Take a look a his GitHub repository for details:<br />
<a href="https://github.com/singles/python_livedocx">https://github.com/singles/python_livedocx</a></p>
<p>To use this library, all you have to do is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash">from livedocx import LiveDocx
&nbsp;
ld = LiveDocx<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
ld.login<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'username'</span>, <span style="color: #ff0000;">'password'</span><span style="color: #66cc66;">&#41;</span>
ld.set_local_template<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'path/to/template.doc'</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
ld.assign_value<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'software'</span>, <span style="color: #ff0000;">'python_livedocx'</span><span style="color: #66cc66;">&#41;</span>
ld.assign_value<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'license'</span>, <span style="color: #ff0000;">'MIT'</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
ld.create_document<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
data = ld.retrieve_document<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'PDF'</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
file = open<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'software info.pdf'</span>, <span style="color: #ff0000;">'wb'</span><span style="color: #66cc66;">&#41;</span>
file.write<span style="color: #66cc66;">&#40;</span>data<span style="color: #66cc66;">&#41;</span>
file.close<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>If anyone else has written libraries to use LiveDocx in Python and would be willing to share details, please post a comment below.</p>
<p>Thank you, <strong>Radoslaw Benkel</strong>, for your contribution to the LiveDocx community.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2011/06/23/using-livedocx-with-python-suds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slides from PHP Unconference Europe 2011</title>
		<link>http://www.phplivedocx.org/2011/02/19/slides-from-php-unconference-europe-2011/</link>
		<comments>http://www.phplivedocx.org/2011/02/19/slides-from-php-unconference-europe-2011/#comments</comments>
		<pubDate>Sat, 19 Feb 2011 17:02:25 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1354</guid>
		<description><![CDATA[Thanks to all those who attended my session at PHP Unconference Europe, in Manchester (UK) and for the fine chats afterwards. Feel free to approach me and can talk more about using LiveDocx in PHP. I&#8217;ll be hanging round until the end of the unconference and then I&#8217;ll be at Leeds PHP on Monday night. [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.phplivedocx.org/wp-content/uploads/2011/01/phpuceu-logo.png" width="200" height="53" alt="PHP Unconference Europe" style="float:right;margin-left:10px" />Thanks to all those who attended my session at PHP Unconference Europe, in Manchester (UK) and for the fine chats afterwards.</p>
<p>Feel free to approach me and can talk more about using LiveDocx in PHP. I&#8217;ll be hanging round until the end of the unconference and then I&#8217;ll be at Leeds PHP on Monday night.</p>
<p>You can <a href="http://www.phplivedocx.org/wp-content/uploads/2011/02/phpuceu-2011-slides.pdf">download the slides</a> to the presentation.</p>
<p>You can also <a href="http://www.phplivedocx.org/contact/">contact me</a> (<a href="http://www.twitter.com/JonathanMaron">@JonathanMaron</a>), if you have any further questions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2011/02/19/slides-from-php-unconference-europe-2011/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Image Merging with LiveDocx &#8211; ZF 2.0 version</title>
		<link>http://www.phplivedocx.org/2010/10/12/image-merging-with-livedocx-zf-2-0-version/</link>
		<comments>http://www.phplivedocx.org/2010/10/12/image-merging-with-livedocx-zf-2-0-version/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 07:00:16 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>
		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1269</guid>
		<description><![CDATA[Last week, I posted a sample application that shows how to use the new image merging functionality of LiveDocx 2.0. Since then, I have received several requests for a version that uses Zend Framework 2.0. I implemented a Zend Framework 2.0 version of \Zend\Service\LiveDocx\MailMerge in June and have just added LiveDocx 2.0 functionality today. You [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.phplivedocx.org/2010/10/05/image-merging-with-livedocx/">Last week</a>, I posted a sample application that shows how to use the new image merging functionality of LiveDocx 2.0. Since then, I have received several requests for a version that uses Zend Framework 2.0.
<p>I <a href="http://www.phplivedocx.org/2010/06/08/porting-zend_service_livedocx-to-zend-framework-2-0/">implemented</a> a Zend Framework 2.0 version of <em>\Zend\Service\LiveDocx\MailMerge</em> in June and have just added LiveDocx 2.0 functionality today.</p>
<p>You can download the latest version of Zend Framework 2.0, including LiveDocx 2.0 functionality, tests and demonstration applications from my <a href="http://github.com/jonathanmaron/zf2/tree/livedocx-2.0">GitHub</a>.</p>
<p>Take a look at the following directory for a large number of demonstration applications that illustrate all LiveDocx functionality:</p>

<div class="wp_syntax"><div class="code"><pre class="bash">/demos/Zend/Service/LiveDocx/</pre></div></div>

<p>I have sent a pull request to the Zend Framework guys, so you can expect the new code to be included in the main GIT repository shortly.</p>
<p>Below is the Zend Framework 2.0 version of the sample application that I posted last week:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="php">use Zend\<span style="color: #000066;">Date</span>\<span style="color: #000066;">Date</span>;
use Zend\Service\LiveDocx\MailMerge;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span> = <span style="color: #000000; font-weight: bold;">new</span> MailMerge<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">setUsername</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'username'</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">setPassword</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'password'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$photoFilename</span> = <span style="color: #ff0000;">'dailemaitre.jpg'</span>;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">imageExists</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">uploadImage</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">setLocalTemplate</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'template.docx'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'name'</span>,        <span style="color: #ff0000;">'Daï Lemaitre'</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'company'</span>,     <span style="color: #ff0000;">'Megasoft Co-operation'</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'date'</span>,        <span style="color: #000066;">Date</span>::<span style="color: #006600;">now</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>-&gt;<span style="color: #006600;">toString</span><span style="color: #66cc66;">&#40;</span><span style="color: #000066;">Date</span>::<span style="color: #006600;">DATE_LONG</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'image:photo'</span>, <span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">createDocument</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$document</span> = <span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">retrieveDocument</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'pdf'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
file_put_contents<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'document.pdf'</span>, <span style="color: #0000ff;">$document</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">deleteImage</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000066;">unset</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$mailMerge</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2010/10/12/image-merging-with-livedocx-zf-2-0-version/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Image Handling Methods</title>
		<link>http://www.phplivedocx.org/2010/10/06/image-handling-methods/</link>
		<comments>http://www.phplivedocx.org/2010/10/06/image-handling-methods/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 06:25:06 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>
		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1251</guid>
		<description><![CDATA[Following the positive feedback from the blog post yesterday, announcing image merging, I would today like to elaborate a little on the image handling methods of Zend_Service_LiveDocx_MailMerge. They include: getImageImportFormats()Returns an array of supported image formats from which can be imported (lowercase). getImageExportFormats()Returns as array of supported image formats to which can be exported (lowercase). [...]]]></description>
			<content:encoded><![CDATA[<p>Following the positive feedback from the <a href="http://www.phplivedocx.org/2010/10/05/image-merging-with-livedocx/">blog post</a> yesterday, announcing image merging, I would today like to elaborate a little on the image handling methods of <em>Zend_Service_LiveDocx_MailMerge</em>. They include:</p>
<p><em>getImageImportFormats()</em><br />Returns an array of supported image formats from which can be imported (lowercase).</p>
<p><em>getImageExportFormats()</em><br />Returns as array of supported image formats to which can be exported (lowercase).</p>
<p><em>uploadImage($filename)</em><br />Uploads an image file to your account on the LiveDocx backend service.</p>
<p><em>downloadImage($filename)</em><br />Downloads an image file from your account on the LiveDocx backend service.</p>
<p><em>listImages()</em><br />Returns an array of all images that are stored on the LiveDocx backend service.</p>
<p><em>deleteImage($filename)</em><br />Deletes an image file from the LiveDocx backend service.</p>
<p><em>imageExists($filename)</em><br />Checks whether an image file is available on the LiveDocx backend service.</p>
<p>If you are familiar with the <em>Zend_Service_LiveDocx_MailMerge</em> API, you will notice that these methods an very similar to the template handling methods.</p>
<p>The version of <em>Zend_Service_LiveDocx_MailMerge</em> that contains image merging will be released with the next Zend Framework release. For the time being, it is part of the <a href="http://www.phplivedocx.org/2009/12/03/migrated-to-zend-framework-standard-trunk/">Standard Trunk</a> and can be checked out via SVN.</p>
<p>If you wish to try out the above methods, take a look at the following sample applications:</p>

<div class="wp_syntax"><div class="code"><pre class="bash">/demos/Zend/Service/LiveDocx/MailMerge/images/</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2010/10/06/image-handling-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Image Merging with LiveDocx</title>
		<link>http://www.phplivedocx.org/2010/10/05/image-merging-with-livedocx/</link>
		<comments>http://www.phplivedocx.org/2010/10/05/image-merging-with-livedocx/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 22:21:53 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>
		<category><![CDATA[Templates]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1248</guid>
		<description><![CDATA[One of the most commonly requested new features in LiveDocx is the ability to merge images into a template. I am very happy to announce that exactly this feature has been implemented by the backend service. I have updated Zend_Service_LiveDocx_MailMerge to include this new functionality. Image merging is useful, for example, in the case of [...]]]></description>
			<content:encoded><![CDATA[<p>One of the most commonly requested new features in LiveDocx is the ability to merge images into a template. I am very happy to announce that exactly this feature has been implemented by the backend service. I have updated <em>Zend_Service_LiveDocx_MailMerge</em> to include this new functionality.</p>
<p>Image merging is useful, for example, in the case of a badge application for a conference. In addition to a name, company name and date that should appear on the badge, it is possible to insert a photo of the delegate, using the Zend Framework.</p>
<p>Even it is sounds a little counter-intuitive, image merging works with text fields. In fact, inserting a text field for an image is almost identical to inserting a text field for textual information. The only difference is the naming convention of the text field. Whereas, a text field for textual information can have (almost) any identifier, a text field for an image must start with <em>image:</em>. For example: <em>image:photo</em>.</p>
<p>For example, in the case of our badge application, we would have the following 4 fields:</p>
<p><img src="http://www.phplivedocx.org/wp-content/uploads/2010/10/zend.service.livedocx.mailmerge.templates-imagemerge_zoom-300x118.png" width="300" height="118" alt="" /></p>
<p>The text field, into which image data will be inserted is called <em>image:photo</em> and can be populated just like any other text field, using the <em>assign()</em> method. The text fields <em>name</em>, <em>company</em> and <em>date</em> are normal text fields for textual information.</p>
<p>Before an image can be inserted, it first has to be uploaded to your account on the backend LiveDocx server. This can be achieved using the <em>uploadImage($filename)</em> method. We then simply reference the filename in the merge process.</p>
<p>The following code snippet illustrates the flow:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="php"><span style="color: #0000ff;">$mailMerge</span> = <span style="color: #000000; font-weight: bold;">new</span> Zend_Service_LiveDocx_MailMerge<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">setUsername</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'username'</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">setPassword</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'password'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$photoFilename</span> = <span style="color: #ff0000;">'dailemaitre.jpg'</span>;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>!<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">imageExists</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
    <span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">uploadImage</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">setLocalTemplate</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'template.docx'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'name'</span>,        <span style="color: #ff0000;">'Daï Lemaitre'</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'company'</span>,     <span style="color: #ff0000;">'Megasoft Co-operation'</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'date'</span>,        Zend_Date::<span style="color: #006600;">now</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>-&gt;<span style="color: #006600;">toString</span><span style="color: #66cc66;">&#40;</span>Zend_Date::<span style="color: #006600;">DATE_LONG</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
          -&gt;<span style="color: #006600;">assign</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'image:photo'</span>, <span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">createDocument</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$document</span> = <span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">retrieveDocument</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'pdf'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
file_put_contents<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'document.pdf'</span>, <span style="color: #0000ff;">$document</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #0000ff;">$mailMerge</span>-&gt;<span style="color: #006600;">deleteImage</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$photoFilename</span><span style="color: #66cc66;">&#41;</span>;</pre></td></tr></table></div>

<p>The version of <em>Zend_Service_LiveDocx_MailMerge</em> that contains image merging will be released with the next Zend Framework release. For the time being, it is part of the <a href="http://www.phplivedocx.org/2009/12/03/migrated-to-zend-framework-standard-trunk/">Standard Trunk</a> and can be checked out via SVN.</p>
<p>You can find the above sample application in the following directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash">/demos/Zend/Service/LiveDocx/MailMerge/conference-pass/</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2010/10/05/image-merging-with-livedocx/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LiveDocx supports PHP Unconference Europe</title>
		<link>http://www.phplivedocx.org/2010/04/14/livedocx-supports-php-unconference-europe/</link>
		<comments>http://www.phplivedocx.org/2010/04/14/livedocx-supports-php-unconference-europe/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 04:56:10 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[Events]]></category>
		<category><![CDATA[LiveDocx]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1222</guid>
		<description><![CDATA[I am delighted to announce that LiveDocx will officially be supporting the next PHP Unconference Europe (PHPucEU). The exact date and venue have yet been announced, but it is expected to be in Spring 2011. LiveDocx will be deployed by the unconference in their contribution and interests web application. Using this application, unconference participants can [...]]]></description>
			<content:encoded><![CDATA[<p>I am delighted to announce that LiveDocx will <a href="http://www.phpuceu.org/2010/04/11/livedocx-supports-php-unconference-europe/">officially</a> be supporting the next <a href="http://www.phpuceu.org">PHP Unconference Europe</a> (<a href="http://twitter.com/phpuceu">PHPucEU</a>). The exact date and venue have yet been announced, but it is expected to be in Spring 2011.</p>
<p>LiveDocx will be deployed by the unconference in their <em>contribution and interests</em> web application. Using this application, unconference participants can register a session that they would like to host, or register an interest in a specific topic. Another unconference participant can then register a session, based upon the original person&#8217;s interest.</p>
<p><img src="http://www.phplivedocx.org/wp-content/uploads/2010/04/vote_poster.jpg" width="210" height="139" style="float:right;margin-left:10px" />The LiveDocx powered <em>contribution and interests</em> web application allows the collection of this data and generates the so called <em>vote posters</em>. To decide upon which sessions may actually be hosted, there is a <a href="http://www.phpuceu.org/introducing-phpuceu/how-it-works/">voting process</a> on each morning of the unconference. In this process, participants stick little stickers onto the vote posters. The session advertised on vote posters with the most stickers may then be hosted.</p>
<p>This democratic method of deciding upon which sessions may be hosted is the quintessence of an unconference and the defining difference from a traditional conference: The participants of an unconference decide, on the day, which sessions they would like to have hosted.</p>
<p>LiveDocx is also being used to generate the badges for the unconference. This is a typical mail-merge application and ideally suited to LiveDocx: The badge template, created by a graphic designer, is populated with data in PHP. The data that is inserted into the template (name, organization, blog, WiFi credentials etc.) originates from the database of unconference participants, merged with a database of WiFi credentials.</p>
<p>In each of the above two applications, LiveDocx is used to generate the final documents. One document per PDF file. Additionally, there is a script to concentrate each set of PDF files together, so that the unconference organizers simply need to send two PDF files to the printers to get a hard copy of all the vote posters and badges.</p>
<p>LiveDocx is proud to support PHP Unconference Europe with professional document generation services.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2010/04/14/livedocx-supports-php-unconference-europe/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maintaining LiveDocx Backend Server</title>
		<link>http://www.phplivedocx.org/2010/01/06/maintaining-livedocx-backend-server/</link>
		<comments>http://www.phplivedocx.org/2010/01/06/maintaining-livedocx-backend-server/#comments</comments>
		<pubDate>Wed, 06 Jan 2010 20:33:07 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1123</guid>
		<description><![CDATA[The backend server guys have just published an official maintenance schedule in their blog: Patch Monday: LiveDocx Server Update Policy In these maintenance windows, the backend service will not be available. Usually, the downtime is only a few minutes.]]></description>
			<content:encoded><![CDATA[<p>The backend server guys have just published an official maintenance schedule in their blog:</p>
<ul>
<li><a href="http://blog.livedocx.com/post/Patch-Monday-LiveDocx-Server-Update-Policy.aspx">Patch Monday: LiveDocx Server Update Policy</a></li>
</ul>
<p>In these maintenance windows, the backend service will not be available. Usually, the downtime is only a few minutes.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2010/01/06/maintaining-livedocx-backend-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend_Service_LiveDocx_MailMerge in depth</title>
		<link>http://www.phplivedocx.org/2009/10/06/detailed-look-at-zend_service_livedocx_mailmerge/</link>
		<comments>http://www.phplivedocx.org/2009/10/06/detailed-look-at-zend_service_livedocx_mailmerge/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:43:15 +0000</pubDate>
		<dc:creator>Jonathan Maron</dc:creator>
				<category><![CDATA[LiveDocx]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.phplivedocx.org/?p=1016</guid>
		<description><![CDATA[Zend_Service_LiveDocx_MailMerge will be released with Zend Framework 1.10. For the time being, it is part of the Standard Trunk and can be checked out via SVN. The following article examines Zend_Service_LiveDocx_MailMerge in depth: PDF Generation with Zend Framework When ZF 1.10 is released, Zend_Service_LiveDocx_MailMerge will replace Tis_Service_LiveDocx_MailMerge. With the exception of the parameters in the [...]]]></description>
			<content:encoded><![CDATA[<p><em>Zend_Service_LiveDocx_MailMerge</em> will be released with Zend Framework 1.10. For the time being, it is part of the <a href="http://www.phplivedocx.org/2009/12/03/migrated-to-zend-framework-standard-trunk/">Standard Trunk</a> and can be checked out via SVN.</p>
<p>The following article examines <em>Zend_Service_LiveDocx_MailMerge</em> in depth:</p>
<ul>
<li><a href="http://www.phplivedocx.org/articles/pdf-generation-with-zend-framework/">PDF Generation with Zend Framework</a></li>
</ul>
<p>When ZF 1.10 is released, <em>Zend_Service_LiveDocx_MailMerge</em> will replace <em>Tis_Service_LiveDocx_MailMerge</em>. With the exception of the parameters in the constructor, the public methods and functionality of the two classes are identical.</p>
<p>I will post more on how to migrate code from the old to new class, when ZF 1.10 is released.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phplivedocx.org/2009/10/06/detailed-look-at-zend_service_livedocx_mailmerge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

