PDFPREVIEW extension : error when convert

Author Message

SEBBANE Alexandre

Friday 03 April 2009 1:27:25 am

Hello ,

I try to install your extension could you telle me which version you have of im and gs .

mine are im 6.4.3 and gs 7.07 : is it enough ? because there is no image generation....

by the way : in your doc , there is 3 parameters :

#### Usage ####

pathtofile|pdfpreview( width [, page [, name ] ] ] )

{if $node.object.data_map.file.content.mime_type|eq('application/pdf')}
<img src={$node.object.data_map.file.content.filepath|pdfpreview( 99, 1, "My PDF.pdf" )|ezroot} alt="Preview">
{/if}

and in your code there are 4 parameters

return array( 'pdfpreview' => array(
'width' => array( 'type' => 'integer', 'required' => true, 'default' => 99 ),
'height' => array( 'type' => 'integer', 'required' => true, 'default' => 0 ),
'page' => array( 'type' => 'integer', 'required' => false, 'default' => 1 ),
'original_filename' => array( 'type' => 'string', 'required' => false, 'default' => ''
)

Paris, France

scrieler _

Tuesday 26 May 2009 5:22:23 am

example:

{if $object.data_map.file.content.mime_type|eq('application/pdf')}
    <img src={$object.data_map.file.content.filepath|pdfpreview( 99, 100, 1, $object.data_map.file.content.original_filename )|ezroot} alt="{$object.data_map.file.content.original_filename|wash()}">
{/if}

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.