PDF template questions

Author Message

Vivek Chopra

Friday 07 May 2004 2:35:28 pm

I am trying to get the PDF on-the-fly generation to work on my site. I am curently on eZ3.3-4.

The questions I have are:
1. Like the footer that is shown on the bottom of all pages, is it possible to include header on all pages? I tried this code but didn't work

{section show=$pdf_root_template|eq(1)}
  {pdf(pageNumber, hash( identifier, "main", start, 1 ) )}
		{include uri="design:content/pdf/newheader.tpl"}
{/section}

This is what I have in the newheader.tpl file

{pdf(header, hash( level, 1, text, 'ProSoft Technology'|wash(pdf), size, 26, align, left, page, "all" ) )}

2. How to do lists? - HTML unordered lists.
I have created a override file for li.tpl file

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

It works but not exactly the way an HTML list shows up.

3. How to handle the <p> tag correctly?

4. Is there any tag to handle margins on the page?

5. In the PDF template operators tutorial there is not moention on how to draw a line. ( like in the footer)

Please help me out. I need to get this to work.

TIA
Vivek

Vivek Chopra

Monday 10 May 2004 9:32:46 am

Would anyone please help me out with this one? Am I the only one trying the PDF functionality?

Kåre or anyone, please provide some guidance on PDF functionality.

Thanks
Vivek

Kåre Køhler Høvik

Friday 14 May 2004 6:30:48 am

Hi

Please see http://ez.no/ez_publish/documentation/reference/template_operators/pdf .
I've updated the documentation there.

mvh
Kåre

Kåre Høvik

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 19 2025 00:36:05
Script start
Timing: Jan 19 2025 00:36:05
Module start 'layout'
Timing: Jan 19 2025 00:36:05
Module start 'content'
Timing: Jan 19 2025 00:36:06
Module end 'content'
Timing: Jan 19 2025 00:36:06
Script end

Main resources:

Total runtime0.6738 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.0056 589.3359152.6250
Module start 'layout' 0.00560.0035 741.960939.4453
Module start 'content' 0.00920.6633 781.4063539.3438
Module end 'content' 0.67250.0013 1,320.750012.1719
Script end 0.6737  1,332.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5414160.0002
Check MTime0.00150.2211160.0001
Mysql Total
Database connection0.00090.132110.0009
Mysqli_queries0.625892.8822570.0110
Looping result0.00040.0633550.0000
Template Total0.642095.320.3210
Template load0.00210.317920.0011
Template processing0.639894.961520.3199
Template load and register function0.00010.016910.0001
states
state_id_array0.00110.158210.0011
state_identifier_array0.00070.102320.0003
Override
Cache load0.00180.2684310.0001
Sytem overhead
Fetch class attribute can translate value0.00050.072920.0002
Fetch class attribute name0.00090.131640.0002
XML
Image XML parsing0.00060.087920.0003
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00070.1071150.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs