Logotype in PDF header

Author Message

Sofie Johansson

Friday 27 May 2005 6:28:20 am

Hi

As a beginner I´m feeling lost. Hoping that someone can help me. I have exported an article into PDF with overrides and my own templates (as I´ve read in PDF-tutorials) and pictures within the body are shown. But my problem is this: how can I get a logotype within the header of the PDF-file? it doesn´t seem to work in the same way as the other pictures as they are imbed.

Best Regards
Sofie

Developer, Novitell AB

Ɓukasz Serwatka

Monday 30 May 2005 1:11:50 am

Hi Sofie,

Look in to design\standard\templates\content\pdf\header.tpl

Use this code to display image in pdf

 {pdf(image,hash(src, image_full_path,
                       width, image_width,
		       height, image_height,
		       border, image_border_size))} 

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Sofie Johansson

Monday 30 May 2005 6:02:12 am

Thanks for your reply, but I have been looking at the file you recommend and unfortunately not been able to figure it out.

I have managed to view an image in the PDF-document, but only an embedded image in the article-body, not in the header. Is it something like this?

{pdf(image, hash(src, /images/logotype.gif, width, 100, height, 30, border, 0))}

Because I am afraid that does not seem work...I must have done something wrong.

Developer, Novitell AB

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 18 2025 22:33:51
Script start
Timing: Jan 18 2025 22:33:51
Module start 'layout'
Timing: Jan 18 2025 22:33:51
Module start 'content'
Timing: Jan 18 2025 22:33:52
Module end 'content'
Timing: Jan 18 2025 22:33:52
Script end

Main resources:

Total runtime0.8481 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 589.0234152.6250
Module start 'layout' 0.00610.0028 741.648439.4297
Module start 'content' 0.00900.8372 781.0781543.8984
Module end 'content' 0.84620.0019 1,324.976612.1875
Script end 0.8481  1,337.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.5105160.0003
Check MTime0.00160.1885160.0001
Mysql Total
Database connection0.00110.128210.0011
Mysqli_queries0.791393.3049570.0139
Looping result0.00060.0766550.0000
Template Total0.813395.920.4067
Template load0.00200.231720.0010
Template processing0.811495.669020.4057
Template load and register function0.00010.010610.0001
states
state_id_array0.00160.192410.0016
state_identifier_array0.00130.157020.0007
Override
Cache load0.00160.1857200.0001
Sytem overhead
Fetch class attribute can translate value0.00100.122320.0005
Fetch class attribute name0.00160.193950.0003
XML
Image XML parsing0.00150.179020.0008
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00120.1362240.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs