PDF: unit for set_line/line_space and avoiding pagebreaks

Author Message

Thomas Nunninger

Saturday 11 March 2006 7:02:37 am

Hi,

I'm doing my first experiences with pdf export - and have some questions. I want to output the contact data (address and sometimes email, phone, mobile and fax) of some people.

- Is it really necessary to define the

{pdf( 'set_margin',
      hash( 'line_space', 0.45 ) )}

before <i>each</i>

{pdf( 'new_line' )}

to avoid huge spaces between e.g. street and town? What is the unit of line_space?

- How can I avoid pagebreaks while outputting the contact data of one person so that pagebreaks only occur between the data of different persons? Do I need to calculate the needed space for each record and check myself if there is enough place?

- Is it possible to print a simple linebreak in the outputted text without any new_line, e.g. the outputtet text is "first line<br>second line" or instead of "<br>" using "\n" or whatever - I didn't find a solution. Or do I need a text command for each line?

Thank you

Thomas

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

Main resources:

Total runtime0.0152 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.0052 588.1719152.6563
Module start 'layout' 0.00520.0026 740.828139.5078
Module start 'content' 0.00780.0050 780.335989.4297
Module end 'content' 0.01280.0024 869.765630.3047
Script end 0.0151  900.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002718.0849140.0002
Check MTime0.00117.0074140.0001
Mysql Total
Database connection0.00084.987410.0008
Mysqli_queries0.002114.139030.0007
Looping result0.00000.105210.0000
Template Total0.001912.210.0019
Template load0.00106.385410.0010
Template processing0.00095.818310.0009
Override
Cache load0.00074.308810.0007
General
dbfile0.00021.635280.0000
String conversion0.00000.039340.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