<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to feature-requests</title><link href="https://sourceforge.net/p/odtphp/feature-requests/" rel="alternate"/><link href="https://sourceforge.net/p/odtphp/feature-requests/feed.atom" rel="self"/><id>https://sourceforge.net/p/odtphp/feature-requests/</id><updated>2011-05-08T04:04:18Z</updated><subtitle>Recent changes to feature-requests</subtitle><entry><title>zend framework</title><link href="https://sourceforge.net/p/odtphp/feature-requests/7/" rel="alternate"/><published>2011-05-08T04:04:18Z</published><updated>2011-05-08T04:04:18Z</updated><author><name>Muhammad Hussein Fattahizadeh</name><uri>https://sourceforge.net/u/mhfir/</uri></author><id>https://sourceforge.netd8f6d5cde275a018820a412d5524d2633b24b9b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can use it inside ZF. also with this &lt;a href="http://dag.wieers.com/home-made/unoconv/" rel="nofollow"&gt;http://dag.wieers.com/home-made/unoconv/&lt;/a&gt; you can get more optional output.&lt;br /&gt;
thank for keeping on this project.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Make the temporary directory configurable</title><link href="https://sourceforge.net/p/odtphp/feature-requests/6/" rel="alternate"/><published>2009-06-12T08:41:31Z</published><updated>2009-06-12T08:41:31Z</updated><author><name>Aurelien Bompard</name><uri>https://sourceforge.net/u/abompard/</uri></author><id>https://sourceforge.neta6a384c056150bad7f4e5d93d6638a8d68c28542</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The temporary directory in PCLZip seems to be hardcoded to "./tmp". Here's a patch to make it configurable.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Import images, styles and fonts</title><link href="https://sourceforge.net/p/odtphp/feature-requests/5/" rel="alternate"/><published>2009-06-01T21:44:21Z</published><updated>2009-06-01T21:44:21Z</updated><author><name>Aurelien Bompard</name><uri>https://sourceforge.net/u/abompard/</uri></author><id>https://sourceforge.net9dae26769b2f6b0a245b000cebebf079bb92340d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying out odtPHP and I needed a few features, so I've coded the corresponding functions :&lt;/p&gt;
&lt;p&gt;- direct images import: I needed to import images directly in the output file (the ODT XML code is generated on the side).&lt;br /&gt;
- styles import: when I'm adding ODT XML code, I need to import styles in the &amp;lt;automatic-styles&amp;gt; section.&lt;br /&gt;
- font import: for the same reason I sometimes need to register a font name (for monotype text for example).&lt;/p&gt;
&lt;p&gt;Those functions are available in the attached patch to version 0.9. Please make sure I did not break the windows line endings, since I'm developing from Linux.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>add a row in an array</title><link href="https://sourceforge.net/p/odtphp/feature-requests/4/" rel="alternate"/><published>2009-05-12T14:20:43Z</published><updated>2009-05-12T14:20:43Z</updated><author><name>PIERRE de GEYER</name><uri>https://sourceforge.net/u/cyruss/</uri></author><id>https://sourceforge.net16ce30ca12f4db8a0a872c50f2a0b5eaacc3d68a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;as it is not possible to put the BEGIN at the good emplacement in the template file when working on an array a specific method need to be implemented.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>add multiples bloc in a bloc</title><link href="https://sourceforge.net/p/odtphp/feature-requests/3/" rel="alternate"/><published>2009-05-12T14:19:34Z</published><updated>2009-05-12T14:19:34Z</updated><author><name>PIERRE de GEYER</name><uri>https://sourceforge.net/u/cyruss/</uri></author><id>https://sourceforge.neta46145a54100cc388ee3dd12d7511588328181bb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;[blk1;block=begin]&lt;br /&gt;
[blk2;block=begin]&lt;br /&gt;
[blk2.var]&lt;br /&gt;
[blk2;block=end]&lt;/p&gt;
&lt;p&gt;[blk3;block=begin]&lt;/p&gt;
&lt;p&gt;[blk2.var]&lt;/p&gt;
&lt;p&gt;[blk3;block=end]&lt;br /&gt;
[blk1;block=end]&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>add images in a segment (block)</title><link href="https://sourceforge.net/p/odtphp/feature-requests/2/" rel="alternate"/><published>2009-05-12T14:16:42Z</published><updated>2009-05-12T14:16:42Z</updated><author><name>PIERRE de GEYER</name><uri>https://sourceforge.net/u/cyruss/</uri></author><id>https://sourceforge.net606d5ff99ca9e7c89e3eecf1f606e041b5c9befb</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;In 0.3 it is not possible to call the "SetImage" method in a Segment. It will be possible in 1.0 version.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>scan vars in template</title><link href="https://sourceforge.net/p/odtphp/feature-requests/1/" rel="alternate"/><published>2008-11-26T16:37:51Z</published><updated>2008-11-26T16:37:51Z</updated><author><name> orouk</name><uri>https://sourceforge.net/u/orouk/</uri></author><id>https://sourceforge.net5d01ab7e4de974227a815a99b0e8a8d8a406c6d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You could add this method to your class.&lt;br /&gt;
It can avoid to have errors with setVars()&lt;/p&gt;
&lt;p&gt;class myOdfClass extends Odf&lt;br /&gt;
{&lt;/p&gt;
&lt;p&gt;public function scanTemplate()&lt;br /&gt;
{&lt;br /&gt;
$subject = $this-&amp;gt;__toString();&lt;/p&gt;
&lt;p&gt;$pattern = '/.*\\'.parent::DELIMITER_LEFT.'(.*)\\'.parent::DELIMITER_RIGHT.'.*/mU';&lt;/p&gt;
&lt;p&gt;preg_match_all($pattern, $subject, $matches);&lt;/p&gt;
&lt;p&gt;return $matches[1];     &lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;// object instanciation&lt;br /&gt;
$odf = new myOdfClass ("tpl/myTemplate.odt");&lt;/p&gt;
&lt;p&gt;// Get marks included in template&lt;br /&gt;
$marks = $odf-&amp;gt;scanTemplate();&lt;/p&gt;
&lt;p&gt;// Replace Vars/marks by values or NULL values&lt;br /&gt;
foreach ($marks as $val) {&lt;/p&gt;
&lt;p&gt;if (isset($defaultVal[$val])) {&lt;/p&gt;
&lt;p&gt;$odf-&amp;gt;setVars($val, $defaultVal[$val]);&lt;/p&gt;
&lt;p&gt;} else {&lt;br /&gt;
$odf-&amp;gt;setVars($val, '');&lt;br /&gt;
}  &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;} // end foreach ($marks ...&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>