Forums / Setup & design / [solved] PDF export problems

[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