default_2tce__pdf_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_pdf.php File Reference

Namespaces

 com\tecnick\tcexam\shared\cfg
 TCExam Main Configuration.
 

Variables

const PDF_HEADER_TITLE "School name"
 
const PDF_HEADER_STRING "first row\nsecond row\nthird row"
 
const PDF_HEADER_LOGO ‘logo_example.png’
 
const PDF_HEADER_LOGO_WIDTH 20
 
const PDF_TEXTANSWER_HEIGHT 40
 
const PDF_PAGE_FORMAT ‘A4’
 
const PDF_PAGE_ORIENTATION ‘P’
 
const PDF_CREATOR ‘TCExam 12’
 
const PDF_AUTHOR ‘TCExam 12’
 
const PDF_UNIT ‘mm’
 
const PDF_MARGIN_HEADER 5
 
const PDF_MARGIN_FOOTER 10
 
const PDF_MARGIN_TOP 27
 
const PDF_MARGIN_BOTTOM 30
 
const PDF_MARGIN_LEFT 15
 
const PDF_MARGIN_RIGHT 15
 
const PDF_FONT_NAME_MAIN ‘helvetica’
 
const PDF_FONT_SIZE_MAIN 9
 
const PDF_FONT_NAME_DATA ‘helvetica’
 
const PDF_FONT_SIZE_DATA 7
 
const PDF_FONT_MONOSPACED ‘courier’
 
const PDF_IMAGE_SCALE_RATIO 1.25
 
const HEAD_MAGNIFICATION 1.1
 
const K_CELL_HEIGHT_RATIO 1.25
 
const K_TITLE_MAGNIFICATION 1.3
 
const K_SMALL_RATIO 23
 
const K_THAI_TOPCHARS false
 
const K_TCPDF_CALLS_IN_HTML false
 
const K_TCPDF_THROW_EXCEPTION_ERROR false
 
const K_DIGSIG_ENABLE false
 
const K_DIGSIG_CERTIFICATE ‘file://../../shared/config/tcpdf.crt’
 
const K_DIGSIG_PRIVATE_KEY ‘file://../../shared/config/tcpdf.crt’
 
const K_DIGSIG_PASSWORD ‘tcpdfdemo’
 
const K_DIGSIG_EXTRA_CERTS
 
const K_DIGSIG_CERT_TYPE ‘1’
 
const K_DIGSIG_NAME ‘TCEXAM’
 
const K_DIGSIG_LOCATION ‘Office’
 
const K_DIGSIG_REASON ‘Certification’
 
const K_DIGSIG_CONTACT ‘you@example.com’
 
const K_TCPDF_EXTERNAL_CONFIG true
 

Detailed Description

Configuration file for TCPDF.

Author
Nicola Asuni

Variable Documentation

const HEAD_MAGNIFICATION 1.1

magnification factor for titles

const K_CELL_HEIGHT_RATIO 1.25

height of cell repect font height

const K_DIGSIG_CERT_TYPE ‘1’

The access permissions granted for this document. Valid values shall be: 1 = No changes to the document shall be permitted; any change to the document shall invalidate the signature; 2 = Permitted changes shall be filling in forms, instantiating page templates, and signing; other changes shall invalidate the signature; 3 = Permitted changes shall be the same as for 2, as well as annotation creation, deletion, and modification; other changes shall invalidate the signature.

const K_DIGSIG_CERTIFICATE ‘file://../../shared/config/tcpdf.crt’

Signing certificate (string or filename prefixed with ‘file://’).

const K_DIGSIG_CONTACT ‘you@example.com’

Information provided by the signer to enable a recipient to contact the signer to verify the signature; for example, a phone number or email address.

const K_DIGSIG_ENABLE false

If true digitally sign PDF documents.

const K_DIGSIG_EXTRA_CERTS “

Name of a file containing a bunch of extra certificates to include in the signature which can for example be used to help the recipient to verify the certificate that you used.

const K_DIGSIG_LOCATION ‘Office’

The CPU host name or physical location of the signing.

const K_DIGSIG_NAME ‘TCEXAM’

The name of the person or authority signing the document.

const K_DIGSIG_PASSWORD ‘tcpdfdemo’

Password for private key.

const K_DIGSIG_PRIVATE_KEY ‘file://../../shared/config/tcpdf.crt’

Private key (string or filename prefixed with ‘file://’).

const K_DIGSIG_REASON ‘Certification’

The reason for the signing, such as ( I agree …).

const K_SMALL_RATIO 23

reduction factor for small font

const K_TCPDF_CALLS_IN_HTML false

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

const K_TCPDF_EXTERNAL_CONFIG true

Do not change the value of this define.

const K_TCPDF_THROW_EXCEPTION_ERROR false

if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.

const K_THAI_TOPCHARS false

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

const K_TITLE_MAGNIFICATION 1.3

title magnification respect main font size

const PDF_AUTHOR ‘TCExam 12’

Document author.

const PDF_CREATOR ‘TCExam 12’

Document creator.

const PDF_FONT_MONOSPACED ‘courier’

default monospaced font name

const PDF_FONT_NAME_DATA ‘helvetica’

Data font name.

const PDF_FONT_NAME_MAIN ‘helvetica’

Main font name.

const PDF_FONT_SIZE_DATA 7

Data font size.

const PDF_FONT_SIZE_MAIN 9

Main font size.

const PDF_HEADER_LOGO ‘logo_example.png’

Image logo.

const PDF_HEADER_LOGO_WIDTH 20

Header logo image width [mm].

const PDF_HEADER_STRING "first row\nsecond row\nthird row"

Header description string.

const PDF_HEADER_TITLE "School name"

Header title.

const PDF_IMAGE_SCALE_RATIO 1.25

ratio used to adjust the conversion of pixels to user units

const PDF_MARGIN_BOTTOM 30

Bottom margin.

const PDF_MARGIN_FOOTER 10

Footer margin.

const PDF_MARGIN_HEADER 5

Header margin.

const PDF_MARGIN_LEFT 15

Left margin.

const PDF_MARGIN_RIGHT 15

Right margin.

const PDF_MARGIN_TOP 27

Top margin.

const PDF_PAGE_FORMAT ‘A4’

Page format.

const PDF_PAGE_ORIENTATION ‘P’

Page orientation (P=portrait, L=landscape).

const PDF_TEXTANSWER_HEIGHT 40

Height of area for offline user answer.

const PDF_UNIT ‘mm’

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

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy