22 Commits

Author SHA1 Message Date
Paul Holden
e3e2c71901
MDL-80731 core: ensure valid /Lang attribute in generated PDF files.
As with the changes in 4be39296, PDF files have criteria for validity
of language identifiers.
2024-02-22 16:51:39 +00:00
Tomo Tsuyuki
9e725bc168 MDL-45301 assign: Add font options for EditPDF 2023-02-17 15:30:25 +11:00
Russell Smith
1fcf0ca8a5 MDL-35628 performance: Remove dirname() where possible.
dirname() is a slow function compared with __DIR__ and using
'/../'.  Moodle has a large number of legacy files that are included
each time a page loads and is not able to use an autoloader as it is
functional code.  This allows those required includes to perform as
best as possible in this situation.
2016-06-10 08:06:49 +10:00
Petr Skoda
64d1184600 MDL-47333 fix support for custom fonts in tcpdf 2014-09-26 13:58:30 +12:00
Tim Hunt
5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Petr Škoda
fc9cedb321 MDL-44521 import TCPDF 6.0.062 2014-03-14 13:38:37 +08:00
Damyon Wiese
ac2b4ffc8c MDL-43593 Assign editpdf: More robust handling of errors from TCPDF.
This includes a check to see if there are 0 pages in the combined pdf,
catching exceptions and suppressing php warnings and errors from bad pdf files.

Also - Use TCPDF directly to check if pdfs are compatible. The previous check was
letting dodgy PDFs through which then failed at generation time. This way dodgy
pdfs will get run through ghostscript early and cleaned up.
2014-01-24 16:16:38 +08:00
Petr Skoda
585ae3d949 MDL-32447 import latest tcpdf and point cache to tcpdf subdirectory of moodle cache dir 2012-04-15 16:08:46 +02:00
Eloy Lafuente (stronk7)
313e048981 MDL-29283 import TCPDF to 5.9.133 - clean whitespace 2011-11-01 20:09:10 +01:00
Petr Skoda
d0a0db4275 MDL-29283 import TCPDF to 5.9.133
There seem to be some problems with unicode chars unfortunately, hopefully real life documents will not hit them...
2011-10-29 08:56:26 +02:00
Tom Lanyon
365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Petr Skoda
e05fbdd8d8 fixed invalid font substr 2010-09-18 11:21:42 +00:00
Petr Skoda
e372f4c7c1 MDL-22050 removing moodle/langconfig duplicates
AMOS BEGIN
  MOV [thisdirection,core],[thisdirection,core_langconfig]
AMOS END
2010-04-10 18:26:20 +00:00
mudrd8mz
e9618248c3 MDL-19876 upgrade to tcpdf-4.6.020 (php5 version)
See lib/tcpdf/README-MOODLE.TXT for the detailed description about how
the upgrade was done.

MDL-18663 removing all fonts but the selected ones.
2009-07-20 17:31:48 +00:00
samhemelryk
50fcb1d835 lib MDL-19236 Added boilerplates and copyrights 2009-05-26 03:23:32 +00:00
mudrd8mz
884a3e4f35 MDL-15055 Upgrade shipped library TCPDF to version tcpdf_php5 TCPDF 4.0.015
Modified lib/pdflib.php wrapper
2008-07-29 22:22:15 +00:00
moodler
3a61f85c7e Merged pdf php5 fix from MDL-13207 2008-01-28 05:30:32 +00:00
nicolasconnault
b7064779f5 Updated copyright notice in header 2007-10-10 05:25:14 +00:00
vyshane
93b7e8d3a7 Fake constructor for PHP5 2006-09-12 06:58:42 +00:00
vyshane
1795175972 Re-worded comment to make more sense 2006-09-04 08:19:23 +00:00
moodler
dd46fc5daa Just some small doc changes 2006-09-04 08:15:48 +00:00
vyshane
713b20faae Wrapper class with modifications to TCPDF for Moodle usage. 2006-09-04 08:10:08 +00:00