[solved] PDF export problems

Author Message

Alexandre Abric

Tuesday 08 November 2005 2:33:22 am

Hi,

I have having big problems with the PDF generation :
- The title.data_text of the page skips the spaces (text line) <b>EDIT</b> : solved with wash(pdf)

- Too many lines are jumped between each paragraph
- The bullet lists are in one line (XML area)

<b>EDIT</b> : solved by changing xml_paraph.tpl to :

{pdf(newline)}
{pdf(text,$content|wash(pdf) )}
{pdf(newline)}

- The special characters like dash or quote look very strange (XML area). Example : <b>"</b> becomes <b>â¤oe</b>

eZ 3.7.1
PHP 4.4.0

{set-block scope=root variable=cache_ttl}0{/set-block}
                
{*pdf( image,hash(src,"design/igefi/images/logo.jpg",
                width,98,
                height,34,
                border,0,
                align, "left"
                )
        ) *}

{let article=$node.contentobject_version_object 
    node_name=$node.name
    current=fetch('content','node',hash('node_id',$node.node_id)) 
    parent=fetch('content','node',hash('node_id',$:current.object.main_parent_node_id)) 
    
}

    {pdf(frame_header, hash( text, "<b>MY WEB SITE</b>",
               align, "right",
               size, 10 ) ) }
    {pdf(frame_header, hash( text, $:parent.name,
               align, "left",
               size, 10 ) ) }
    {pdf(header, hash( text, $article.data_map.title.data_text|wash(),
               align, "center",
               valign, "bottom",
               size, 16 ) ) }
    {pdf( line, hash( x1, 80, y1, 800, x2, 515, y2, 800,
                               thickness, 1,
			       size, "full" ) ) }

    {pdf(pageNumber, hash( identifier, "main", start, 1 ) )}
    
    {attribute_pdf_gui attribute=$article.data_map.intro}
    
    {attribute_pdf_gui attribute=$article.data_map.body}
    
    {pdf(pageNumber, hash( identifier, "main", stop, 1 ) )}
    
    {include uri="design:content/pdf/footer.tpl" node=$node}

{/let}

Urgent help is needed, any tip is welcome :)

Thanks

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 04:25:01
Script start
Timing: Jan 31 2025 04:25:01
Module start 'layout'
Timing: Jan 31 2025 04:25:01
Module start 'content'
Timing: Jan 31 2025 04:25:01
Module end 'content'
Timing: Jan 31 2025 04:25:01
Script end

Main resources:

Total runtime0.0159 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.1328151.2109
Module start 'layout' 0.00550.0030 739.343836.6484
Module start 'content' 0.00850.0060 775.992290.1563
Module end 'content' 0.01450.0014 866.148429.9922
Script end 0.0158  896.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.1571140.0002
Check MTime0.00117.0851140.0001
Mysql Total
Database connection0.00063.610910.0006
Mysqli_queries0.002817.381630.0009
Looping result0.00000.226810.0000
Template Total0.00106.210.0010
Template load0.00084.901210.0008
Template processing0.00021.240710.0002
Override
Cache load0.00053.307510.0005
General
dbfile0.00159.745380.0002
String conversion0.00000.063140.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.0003 secs