image

Summary

Insert image into PDF document

Usage

pdf( image, hash( src, image_path,
                   [ width, image_width, ]
                   [ height, image_height, ]
                   [ align, justification, ]
                   [ x, x_position, ]
                   [ y, y_position, ]
                   [ dpi, resolution, ]
                   [ static, flow_properties ] ) ) }

Parameters

NameTypeDescriptionRequired
src string Full image path yes
width integer Image width no
height integer Image height no
align string Image alignment, default center no
x integer Absolute x offset no
y integer Absolute y offset no
dpi integer Image resolution no
static boolean Image float properties no

Returns

Description

Insert Jpeg or Png image into PDF document. Note, Png images must be without alpha channel.

If static parameter is set to 1, other content will not float around the image, and it may be overwritten.

Available from 3.3 and newer.
Parameters x, y, dpi and static are only available in 3.4 and newer.

Examples

{pdf( image, hash( src,$image.full_path,

                  width,$image.width,

                  height,$image.height ) ) }

Comments

Images path

Can we call external images by providing full path of a image file?

Vivek

log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
    PDF
       anchor
       createIndex
       filled_circle
       filled_rectangle
       footer
       footer_block
       frame_header
       frontpage
       header
       header_block
       image
       keyword
       line
       link
       newline
       newpage
       set_font
       set_margin
       strike
       table
       text
       text_box
       text_frame
       toc
       ul
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

13/05/2004
4:50:47 pm
by Kåre Køhler Høvik

Last updated

01/06/2004
3:42:05 pm
by Kåre Køhler Høvik

Authors

Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.