Forums / Setup & design / Pdf newline

Pdf newline

Author Message

Ibrahim Khachab

Friday 11 June 2004 8:53:39 am

Hi all,

I am trying make some PDF on-the-fly on my site.
I noticed that the pdf(newline) is making a lange distance between lines.
Is there a way to decide the vertical distance for a new line?

Thanks

Martin Burger

Wednesday 15 September 2004 12:33:58 pm

I'm interested in this topic. Is there any way to control the vertical space (or margin) caused by pdf(newline)?

http://www.netbeyond.de/

Vivek Chopra

Wednesday 15 September 2004 2:09:11 pm

A quick hack would be to insert text with white color and control height with font size or to insert a transparent image and control the height to the image.

Vivek

Ekkehard Dörre

Wednesday 15 September 2004 5:23:15 pm

One work-around is in my bug message:
http://ez.no/community/bug_reports/pdf_text_align_full_creates_a_lot_of_space_lines

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Per Henrik Johansen

Thursday 21 July 2005 3:52:06 am

Hi,

I am also interested in this topic. the pdf(newline) seem to generate a lot of space between line, and I need to control this. Has anyone a solution, I can not seem to find any.

Per Henrik

Brendan Pike

Wednesday 27 July 2005 5:09:34 pm

One way to achieve controlled height line breaks is to create empty content but then define the font size.

{pdf(text, '
'|wash(pdf), hash(
                          font, 'Courier',
                          size, 6,
                          align, left ))}

Hope that helps

www.dbinformatics.com.au

We are always interested in hearing from experienced eZ PHP programmers and eZ template designers interested in contract work.

eZ debug

Timing: Jan 18 2025 10:26:34
Script start
Timing: Jan 18 2025 10:26:34
Module start 'content'
Timing: Jan 18 2025 10:26:35
Module end 'content'
Timing: Jan 18 2025 10:26:35
Script end

Main resources:

Total runtime1.0101 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.6953180.8516
Module start 'content' 0.00620.8727 769.5469719.9063
Module end 'content' 0.87890.1310 1,489.4531336.4609
Script end 1.0099  1,825.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3904210.0002
Check MTime0.00150.1455210.0001
Mysql Total
Database connection0.00080.076710.0008
Mysqli_queries0.918390.91112110.0044
Looping result0.00260.25922090.0000
Template Total0.982797.320.4913
Template load0.00200.196820.0010
Template processing0.980797.089320.4903
Template load and register function0.00010.014610.0001
states
state_id_array0.00100.103810.0010
state_identifier_array0.00120.122920.0006
Override
Cache load0.00170.1682280.0001
Sytem overhead
Fetch class attribute can translate value0.00140.138970.0002
Fetch class attribute name0.00140.137490.0002
XML
Image XML parsing0.00380.371670.0005
class_abstraction
Instantiating content class attribute0.00000.001790.0000
General
dbfile0.00610.6051380.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs