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.

eZ debug

Timing: Jan 31 2025 01:26:32
Script start
Timing: Jan 31 2025 01:26:32
Module start 'layout'
Timing: Jan 31 2025 01:26:32
Module start 'content'
Timing: Jan 31 2025 01:26:32
Module end 'content'
Timing: Jan 31 2025 01:26:32
Script end

Main resources:

Total runtime0.0208 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2500151.2266
Module start 'layout' 0.00470.0033 739.4766220.7188
Module start 'content' 0.00790.0115 960.1953997.9609
Module end 'content' 0.01950.0013 1,958.156329.9922
Script end 0.0207  1,988.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.3038140.0002
Check MTime0.00105.0363140.0001
Mysql Total
Database connection0.00073.477010.0007
Mysqli_queries0.00198.978430.0006
Looping result0.00000.048210.0000
Template Total0.00094.410.0009
Template load0.00073.531010.0007
Template processing0.00020.866910.0002
Override
Cache load0.00052.546910.0005
General
dbfile0.00115.268380.0001
String conversion0.00000.034440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs