ILIAS  eassessment Revision 61809
 All Data Structures Namespaces Files Functions Variables Groups Pages
tcpdf_config_alt.php File Reference

Go to the source code of this file.

Namespaces

namespace  com\tecnick\tcpdf
 PHP class to creates array representations for 2D barcodes to be used with TCPDF.

Variables

if((!isset($_SERVER['DOCUMENT_ROOT']))
OR(empty($_SERVER['DOCUMENT_ROOT']))) 
$k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))))
const K_PATH_MAIN (substr($k_path_main,-1)!= '/') = $k_path_main
 Installation path (/var/www/tcpdf/).
const K_PATH_URL (isset($_SERVER['HTTP_HOST']) AND(!empty($_SERVER['HTTP_HOST']))) = $k_path_url
 URL path to tcpdf installation folder (http://localhost/tcpdf/).
const K_PATH_FONTS = K_PATH_MAIN.'fonts/'
 path for PDF fonts use K_PATH_MAIN.
const K_PATH_CACHE = K_PATH_MAIN.'cache/'
 cache directory for temporary files (full path)
const K_PATH_URL_CACHE = K_PATH_URL.'cache/'
 cache directory for temporary files (url path)
const K_PATH_IMAGES = K_PATH_MAIN.'images/'
 *images directory
const K_BLANK_IMAGE = K_PATH_IMAGES.'_blank.png'
 blank image
const PDF_PAGE_FORMAT = 'A4'
 page format
const PDF_PAGE_ORIENTATION = 'P'
 page orientation (P=portrait, L=landscape)
const PDF_CREATOR = 'TCPDF'
 document creator
const PDF_AUTHOR = 'TCPDF'
 document author
const PDF_HEADER_TITLE = 'TCPDF Example'
 header title
const PDF_HEADER_STRING = "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"
 header description string
const PDF_HEADER_LOGO = 'tcpdf_logo.jpg'
 image logo
const PDF_HEADER_LOGO_WIDTH = 30
 header logo image width [mm]
const PDF_UNIT = 'mm'
 document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]
const PDF_MARGIN_HEADER = 5
 header margin
const PDF_MARGIN_FOOTER = 10
 footer margin
const PDF_MARGIN_TOP = 27
 top margin
const PDF_MARGIN_BOTTOM = 25
 bottom margin
const PDF_MARGIN_LEFT = 15
 left margin
const PDF_MARGIN_RIGHT = 15
 right margin
const PDF_FONT_NAME_MAIN = 'helvetica'
 default main font name
const PDF_FONT_SIZE_MAIN = 10
 default main font size
const PDF_FONT_NAME_DATA = 'helvetica'
 default data font name
const PDF_FONT_SIZE_DATA = 8
 default data font size
const PDF_FONT_MONOSPACED = 'courier'
 default monospaced font name
const PDF_IMAGE_SCALE_RATIO = 1.25
 ratio used to adjust the conversion of pixels to user units
const HEAD_MAGNIFICATION = 1.1
 magnification factor for titles
const K_CELL_HEIGHT_RATIO = 1.25
 height of cell repect font height
const K_TITLE_MAGNIFICATION = 1.3
 title magnification respect main font size
const K_SMALL_RATIO = 2/3
 reduction factor for small font
const K_THAI_TOPCHARS = true
 set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
const K_TCPDF_CALLS_IN_HTML = true
 if true allows to call TCPDF methods using HTML syntax IMPORTANT: For security reason, disable this feature if you are printing user HTML content.

Variable Documentation

if ((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $k_path_main = str_replace( '\\', '/', realpath(substr(dirname(__FILE__), 0, 0-strlen('config'))))

Definition at line 45 of file tcpdf_config_alt.php.

const HEAD_MAGNIFICATION = 1.1

magnification factor for titles

Definition at line 207 of file tcpdf_config_alt.php.

const K_BLANK_IMAGE = K_PATH_IMAGES.'_blank.png'

blank image

Definition at line 97 of file tcpdf_config_alt.php.

Referenced by TCPDF\Header().

const K_CELL_HEIGHT_RATIO = 1.25

height of cell repect font height

Definition at line 212 of file tcpdf_config_alt.php.

const K_PATH_CACHE = K_PATH_MAIN.'cache/'

cache directory for temporary files (full path)

Definition at line 82 of file tcpdf_config_alt.php.

Referenced by TCPDF\_generateencryptionkey(), TCPDF\_toJPEG(), TCPDF\_toPNG(), TCPDF\getObjFilename(), TCPDF\Image(), TCPDF\ImagePngAlpha(), and TCPDF\Output().

const K_PATH_FONTS = K_PATH_MAIN.'fonts/'

path for PDF fonts use K_PATH_MAIN.

'fonts/old/' for old non-UTF8 fonts

Definition at line 77 of file tcpdf_config_alt.php.

Referenced by TCPDF\_getfontpath().

const K_PATH_IMAGES = K_PATH_MAIN.'images/'

*images directory

Definition at line 92 of file tcpdf_config_alt.php.

Referenced by TCPDF\Header().

const K_PATH_MAIN(substr($k_path_main,-1)!= '/') = $k_path_main

Installation path (/var/www/tcpdf/).

By default it is automatically calculated but you can also set it as a fixed string to improve performances.

Definition at line 54 of file tcpdf_config_alt.php.

Referenced by TCPDF\openHTMLTagHandler(), and TCPDF\startSVGElementHandler().

const K_PATH_URL(isset($_SERVER['HTTP_HOST']) AND(!empty($_SERVER['HTTP_HOST']))) = $k_path_url

URL path to tcpdf installation folder (http://localhost/tcpdf/).

By default it is automatically calculated but you can also set it as a fixed string to improve performances..

Definition at line 71 of file tcpdf_config_alt.php.

Referenced by TCPDF\openHTMLTagHandler(), and TCPDF\startSVGElementHandler().

const K_PATH_URL_CACHE = K_PATH_URL.'cache/'

cache directory for temporary files (url path)

Definition at line 87 of file tcpdf_config_alt.php.

const K_SMALL_RATIO = 2/3

reduction factor for small font

Definition at line 222 of file tcpdf_config_alt.php.

Referenced by TCPDF\getHtmlDomArray().

const K_TCPDF_CALLS_IN_HTML = true

if true allows to call TCPDF methods using HTML syntax IMPORTANT: For security reason, disable this feature if you are printing user HTML content.

Definition at line 233 of file tcpdf_config_alt.php.

Referenced by TCPDF\openHTMLTagHandler().

const K_THAI_TOPCHARS = true

set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language

Definition at line 227 of file tcpdf_config_alt.php.

Referenced by TCPDF\getCellCode().

const K_TITLE_MAGNIFICATION = 1.3

title magnification respect main font size

Definition at line 217 of file tcpdf_config_alt.php.

const PDF_AUTHOR = 'TCPDF'

document author

Definition at line 117 of file tcpdf_config_alt.php.

const PDF_CREATOR = 'TCPDF'

document creator

Definition at line 112 of file tcpdf_config_alt.php.

const PDF_FONT_MONOSPACED = 'courier'

default monospaced font name

Definition at line 197 of file tcpdf_config_alt.php.

const PDF_FONT_NAME_DATA = 'helvetica'

default data font name

Definition at line 187 of file tcpdf_config_alt.php.

const PDF_FONT_NAME_MAIN = 'helvetica'

default main font name

Definition at line 177 of file tcpdf_config_alt.php.

const PDF_FONT_SIZE_DATA = 8

default data font size

Definition at line 192 of file tcpdf_config_alt.php.

const PDF_FONT_SIZE_MAIN = 10

default main font size

Definition at line 182 of file tcpdf_config_alt.php.

const PDF_HEADER_LOGO = 'tcpdf_logo.jpg'

image logo

Definition at line 132 of file tcpdf_config_alt.php.

const PDF_HEADER_LOGO_WIDTH = 30

header logo image width [mm]

Definition at line 137 of file tcpdf_config_alt.php.

const PDF_HEADER_STRING = "by Nicola Asuni - Tecnick.com\nwww.tcpdf.org"

header description string

Definition at line 127 of file tcpdf_config_alt.php.

const PDF_HEADER_TITLE = 'TCPDF Example'

header title

Definition at line 122 of file tcpdf_config_alt.php.

const PDF_IMAGE_SCALE_RATIO = 1.25

ratio used to adjust the conversion of pixels to user units

Definition at line 202 of file tcpdf_config_alt.php.

const PDF_MARGIN_BOTTOM = 25

bottom margin

Definition at line 162 of file tcpdf_config_alt.php.

const PDF_MARGIN_FOOTER = 10

footer margin

Definition at line 152 of file tcpdf_config_alt.php.

const PDF_MARGIN_HEADER = 5

header margin

Definition at line 147 of file tcpdf_config_alt.php.

const PDF_MARGIN_LEFT = 15

left margin

Definition at line 167 of file tcpdf_config_alt.php.

const PDF_MARGIN_RIGHT = 15

right margin

Definition at line 172 of file tcpdf_config_alt.php.

const PDF_MARGIN_TOP = 27

top margin

Definition at line 157 of file tcpdf_config_alt.php.

const PDF_PAGE_FORMAT = 'A4'

page format

Definition at line 102 of file tcpdf_config_alt.php.

const PDF_PAGE_ORIENTATION = 'P'

page orientation (P=portrait, L=landscape)

Definition at line 107 of file tcpdf_config_alt.php.

const PDF_UNIT = 'mm'

document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch]

Definition at line 142 of file tcpdf_config_alt.php.