tce_pdf.php
Tags
Table of Contents
Constants
- HEAD_MAGNIFICATION = 1.1
- magnification factor for titles
- K_ALLOWED_TCPDF_TAGS = ''
- List of TCPDF methods that are allowed to be called using HTML syntax.
- K_CELL_HEIGHT_RATIO = 1.25
- height of cell repect font height
- K_DIGSIG_CERT_TYPE = '1'
- The access permissions granted for this document.
- K_DIGSIG_CERTIFICATE = 'file://../../shared/config/tcpdf.crt'
- Signing certificate (string or filename prefixed with 'file://').
- 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.
- K_DIGSIG_ENABLE = \false
- If true digitally sign PDF documents.
- 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.
- K_DIGSIG_LOCATION = 'Office'
- The CPU host name or physical location of the signing.
- K_DIGSIG_NAME = 'TCEXAM'
- The name of the person or authority signing the document.
- K_DIGSIG_PASSWORD = 'tcpdfdemo'
- Password for private key.
- K_DIGSIG_PRIVATE_KEY = 'file://../../shared/config/tcpdf.crt'
- Private key (string or filename prefixed with 'file://').
- K_DIGSIG_REASON = 'Certification'
- The reason for the signing, such as ( I agree ...).
- K_SMALL_RATIO = 2 / 3
- reduction factor for small font
- 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.
- K_TCPDF_EXTERNAL_CONFIG = \true
- Do not change the value of this define.
- 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.
- K_THAI_TOPCHARS = \false
- set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
- K_TITLE_MAGNIFICATION = 1.3
- title magnification respect main font size
- PDF_AUTHOR = 'TCExam 12'
- Document author.
- PDF_CREATOR = 'TCExam 12'
- Document creator.
- PDF_FONT_MONOSPACED = 'courier'
- default monospaced font name
- PDF_FONT_NAME_DATA = 'helvetica'
- Data font name.
- PDF_FONT_NAME_MAIN = 'helvetica'
- Main font name.
- PDF_FONT_SIZE_DATA = 7
- Data font size.
- PDF_FONT_SIZE_MAIN = 9
- Main font size.
- PDF_HEADER_LOGO = 'logo_example.png'
- Image logo.
- PDF_HEADER_LOGO_WIDTH = 20
- Header logo image width [mm].
- PDF_HEADER_STRING = "first row\nsecond row\nthird row"
- Header description string.
- PDF_HEADER_TITLE = "School name"
- Header title.
- PDF_IMAGE_SCALE_RATIO = 1.25
- ratio used to adjust the conversion of pixels to user units
- PDF_MARGIN_BOTTOM = 30
- Bottom margin.
- PDF_MARGIN_FOOTER = 10
- Footer margin.
- PDF_MARGIN_HEADER = 5
- Header margin.
- PDF_MARGIN_LEFT = 15
- Left margin.
- PDF_MARGIN_RIGHT = 15
- Right margin.
- PDF_MARGIN_TOP = 27
- Top margin.
- PDF_PAGE_FORMAT = 'A4'
- Page format.
- PDF_PAGE_ORIENTATION = 'P'
- Page orientation (P=portrait, L=landscape).
- PDF_TEXTANSWER_HEIGHT = 40
- Height of area for offline user answer.
- PDF_UNIT = 'mm'
- Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
Constants
HEAD_MAGNIFICATION
magnification factor for titles
public mixed HEAD_MAGNIFICATION =
1.1
K_ALLOWED_TCPDF_TAGS
List of TCPDF methods that are allowed to be called using HTML syntax.
public mixed K_ALLOWED_TCPDF_TAGS =
''
Note: each method name must end with surrounded with | (pipe) character. The constant K_TCPDF_CALLS_IN_HTML must be set to true. IMPORTANT: For security reason, disable this feature if you are allowing user HTML content.
K_CELL_HEIGHT_RATIO
height of cell repect font height
public mixed K_CELL_HEIGHT_RATIO =
1.25
K_DIGSIG_CERT_TYPE
The access permissions granted for this document.
public mixed K_DIGSIG_CERT_TYPE =
'1'
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.
K_DIGSIG_CERTIFICATE
Signing certificate (string or filename prefixed with 'file://').
public mixed K_DIGSIG_CERTIFICATE =
'file://../../shared/config/tcpdf.crt'
K_DIGSIG_CONTACT
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.
public mixed K_DIGSIG_CONTACT =
'you@example.com'
K_DIGSIG_ENABLE
If true digitally sign PDF documents.
public mixed K_DIGSIG_ENABLE =
\false
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.
public mixed K_DIGSIG_EXTRA_CERTS =
''
K_DIGSIG_LOCATION
The CPU host name or physical location of the signing.
public mixed K_DIGSIG_LOCATION =
'Office'
K_DIGSIG_NAME
The name of the person or authority signing the document.
public mixed K_DIGSIG_NAME = 'TCEXAM'
K_DIGSIG_PASSWORD
Password for private key.
public mixed K_DIGSIG_PASSWORD =
'tcpdfdemo'
K_DIGSIG_PRIVATE_KEY
Private key (string or filename prefixed with 'file://').
public mixed K_DIGSIG_PRIVATE_KEY =
'file://../../shared/config/tcpdf.crt'
K_DIGSIG_REASON
The reason for the signing, such as ( I agree ...).
public mixed K_DIGSIG_REASON =
'Certification'
K_SMALL_RATIO
reduction factor for small font
public mixed K_SMALL_RATIO = 2 /
3
K_TCPDF_CALLS_IN_HTML
if true allows to call TCPDF methods using HTML syntax IMPORTANT: For security reason, disable this feature if you are printing user HTML content.
public mixed K_TCPDF_CALLS_IN_HTML =
\false
K_TCPDF_EXTERNAL_CONFIG
Do not change the value of this define.
public mixed K_TCPDF_EXTERNAL_CONFIG =
\true
K_TCPDF_THROW_EXCEPTION_ERROR
if true adn PHP version is greater than 5, then the Error() method throw new exception instead of terminating the execution.
public mixed K_TCPDF_THROW_EXCEPTION_ERROR
= \false
K_THAI_TOPCHARS
set to true to enable the special procedure used to avoid the overlappind of symbols on Thai language
public mixed K_THAI_TOPCHARS =
\false
K_TITLE_MAGNIFICATION
title magnification respect main font size
public mixed K_TITLE_MAGNIFICATION =
1.3
PDF_AUTHOR
Document author.
public mixed PDF_AUTHOR = 'TCExam
12'
PDF_CREATOR
Document creator.
public mixed PDF_CREATOR = 'TCExam
12'
PDF_FONT_MONOSPACED
default monospaced font name
public mixed PDF_FONT_MONOSPACED =
'courier'
PDF_FONT_NAME_DATA
Data font name.
public mixed PDF_FONT_NAME_DATA =
'helvetica'
PDF_FONT_NAME_MAIN
Main font name.
public mixed PDF_FONT_NAME_MAIN =
'helvetica'
PDF_FONT_SIZE_DATA
Data font size.
public mixed PDF_FONT_SIZE_DATA =
7
PDF_FONT_SIZE_MAIN
Main font size.
public mixed PDF_FONT_SIZE_MAIN =
9
PDF_HEADER_LOGO
Image logo.
public mixed PDF_HEADER_LOGO =
'logo_example.png'
PDF_HEADER_LOGO_WIDTH
Header logo image width [mm].
public mixed PDF_HEADER_LOGO_WIDTH =
20
PDF_HEADER_STRING
Header description string.
public mixed PDF_HEADER_STRING =
"first
row\nsecond row\nthird row"
PDF_HEADER_TITLE
Header title.
public mixed PDF_HEADER_TITLE =
"School
name"
PDF_IMAGE_SCALE_RATIO
ratio used to adjust the conversion of pixels to user units
public mixed PDF_IMAGE_SCALE_RATIO =
1.25
PDF_MARGIN_BOTTOM
Bottom margin.
public mixed PDF_MARGIN_BOTTOM =
30
PDF_MARGIN_FOOTER
Footer margin.
public mixed PDF_MARGIN_FOOTER =
10
PDF_MARGIN_HEADER
Header margin.
public mixed PDF_MARGIN_HEADER =
5
PDF_MARGIN_LEFT
Left margin.
public mixed PDF_MARGIN_LEFT =
15
PDF_MARGIN_RIGHT
Right margin.
public mixed PDF_MARGIN_RIGHT =
15
PDF_MARGIN_TOP
Top margin.
public mixed PDF_MARGIN_TOP =
27
PDF_PAGE_FORMAT
Page format.
public mixed PDF_PAGE_FORMAT =
'A4'
PDF_PAGE_ORIENTATION
Page orientation (P=portrait, L=landscape).
public mixed PDF_PAGE_ORIENTATION =
'P'
PDF_TEXTANSWER_HEIGHT
Height of area for offline user answer.
public mixed PDF_TEXTANSWER_HEIGHT =
40
PDF_UNIT
Document unit of measure [pt=point, mm=millimeter, cm=centimeter, in=inch].
public mixed PDF_UNIT = 'mm'