06
Oct
Written by: Jonathan Maron. Stored in: LiveDocx, Templates.

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).

uploadImage($filename)
Uploads an image file to your account on the LiveDocx backend service.

downloadImage($filename)
Downloads an image file from your account on the LiveDocx backend service.

listImages()
Returns an array of all images that are stored on the LiveDocx backend service.

deleteImage($filename)
Deletes an image file from the LiveDocx backend service.

imageExists($filename)
Checks whether an image file is available on the LiveDocx backend service.

If you are familiar with the Zend_Service_LiveDocx_MailMerge API, you will notice that these methods an very similar to the template handling methods.

The version of Zend_Service_LiveDocx_MailMerge that contains image merging will be released with the next Zend Framework release. For the time being, it is part of the Standard Trunk and can be checked out via SVN.

If you wish to try out the above methods, take a look at the following sample applications:

/demos/Zend/Service/LiveDocx/MailMerge/images/

Leave a Reply