tce_pdf.php

tce_pdf.php source file reference

Package: com\tecnick\tcexam\shared\cfg

Tags

  • file: Configuration file for PDF documents (tc-lib-pdf).
  • author: Nicola Asuni
  • since: 2004-06-11

Constants

K_DIGSIG_CERT_TYPE

File: tce_pdf.php line 160

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

File: tce_pdf.php line 136

public mixed K_DIGSIG_CERTIFICATE = 'file://../../shared/config/tcpdf.crt'

K_DIGSIG_CONTACT

File: tce_pdf.php line 180

public mixed K_DIGSIG_CONTACT = 'you@example.com'

K_DIGSIG_ENABLE

File: tce_pdf.php line 131

public mixed K_DIGSIG_ENABLE = \false

K_DIGSIG_EXTRA_CERTS

File: tce_pdf.php line 151

public mixed K_DIGSIG_EXTRA_CERTS = ''

K_DIGSIG_LOCATION

File: tce_pdf.php line 170

public mixed K_DIGSIG_LOCATION = 'Office'

K_DIGSIG_NAME

File: tce_pdf.php line 165

public mixed K_DIGSIG_NAME = 'TCEXAM'

K_DIGSIG_PASSWORD

File: tce_pdf.php line 146

public mixed K_DIGSIG_PASSWORD = 'tcpdfdemo'

K_DIGSIG_PRIVATE_KEY

File: tce_pdf.php line 141

public mixed K_DIGSIG_PRIVATE_KEY = 'file://../../shared/config/tcpdf.crt'

K_DIGSIG_REASON

File: tce_pdf.php line 175

public mixed K_DIGSIG_REASON = 'Certification'

K_PDF_ALLOWED_HOSTS

File: tce_pdf.php line 231

public mixed K_PDF_ALLOWED_HOSTS = \serialize([])

Remote URL loading is DISABLED by default (empty list) to prevent SSRF; add hosts (e.g. [‘cdn.example.com’]) only if your templates must load remote resources.

K_PDF_ALLOWED_PATHS

File: tce_pdf.php line 215

public mixed K_PDF_ALLOWED_PATHS = \serialize(\array_values(\array_filter([\realpath(\K_PATH_MAIN . 'images'), \realpath(\K_PATH_MAIN . 'cache'), \realpath(\K_PATH_MAIN . 'vendor/tecnickcom/tc-lib-pdf-font/target/fonts'), \defined('K_PATH_FONTS') ? \realpath(\K_PATH_FONTS) : \false, \realpath(\sys_get_temp_dir())])))

K_PDF_COMPRESS

File: tce_pdf.php line 199

public mixed K_PDF_COMPRESS = \true

K_PDF_MAX_REMOTE_SIZE

File: tce_pdf.php line 236

public mixed K_PDF_MAX_REMOTE_SIZE = 52428800

K_PDF_MODE

File: tce_pdf.php line 204

public mixed K_PDF_MODE = ''

K_PDF_SUBSET_FONT

File: tce_pdf.php line 194

public mixed K_PDF_SUBSET_FONT = \false

K_PDF_UNICODE

File: tce_pdf.php line 189

public mixed K_PDF_UNICODE = \true

PDF_AUTHOR

File: tce_pdf.php line 63

public mixed PDF_AUTHOR = 'TCExam 12'

PDF_FONT_NAME_DATA

File: tce_pdf.php line 119

public mixed PDF_FONT_NAME_DATA = 'dejavusans'

See PDF_FONT_NAME_MAIN: DejaVu Sans is used so the test/answer content (which may be in any of the supported languages) renders with the correct glyphs.

PDF_FONT_NAME_MAIN

File: tce_pdf.php line 107

public mixed PDF_FONT_NAME_MAIN = 'dejavusans'

DejaVu Sans is used by default because it carries a broad Unicode glyph set (Latin with diacritics, Cyrillic, Greek, …) so exported PDFs render the non-Latin languages TCExam supports. The 14 standard PDF fonts (e.g. helvetica) only cover Latin-1. For CJK content set a cid0* font here.

PDF_FONT_SIZE_DATA

File: tce_pdf.php line 124

public mixed PDF_FONT_SIZE_DATA = 7

PDF_FONT_SIZE_MAIN

File: tce_pdf.php line 112

public mixed PDF_FONT_SIZE_MAIN = 9

File: tce_pdf.php line 38

public mixed PDF_HEADER_LOGO = 'logo_example.png'

PDF_HEADER_LOGO_WIDTH

File: tce_pdf.php line 43

public mixed PDF_HEADER_LOGO_WIDTH = 20

PDF_HEADER_STRING

File: tce_pdf.php line 33

public mixed PDF_HEADER_STRING = "first row\nsecond row\nthird row"

PDF_HEADER_TITLE

File: tce_pdf.php line 28

public mixed PDF_HEADER_TITLE = 'School name'

PDF_MARGIN_BOTTOM

File: tce_pdf.php line 88

public mixed PDF_MARGIN_BOTTOM = 30

File: tce_pdf.php line 78

public mixed PDF_MARGIN_FOOTER = 10

PDF_MARGIN_HEADER

File: tce_pdf.php line 73

public mixed PDF_MARGIN_HEADER = 5

PDF_MARGIN_LEFT

File: tce_pdf.php line 93

public mixed PDF_MARGIN_LEFT = 15

PDF_MARGIN_RIGHT

File: tce_pdf.php line 98

public mixed PDF_MARGIN_RIGHT = 15

PDF_MARGIN_TOP

File: tce_pdf.php line 83

public mixed PDF_MARGIN_TOP = 27

PDF_PAGE_FORMAT

File: tce_pdf.php line 53

public mixed PDF_PAGE_FORMAT = 'A4'

PDF_PAGE_ORIENTATION

File: tce_pdf.php line 58

public mixed PDF_PAGE_ORIENTATION = 'P'

PDF_TEXTANSWER_HEIGHT

File: tce_pdf.php line 48

public mixed PDF_TEXTANSWER_HEIGHT = 40

PDF_UNIT

File: tce_pdf.php line 68

public mixed PDF_UNIT = 'mm'