Commit Graph

7 Commits

Author SHA1 Message Date
Mikhail Golenkov 8d025b449e MDL-70117 dataformat_pdf: Fix content overflow when headers are involved 2020-11-11 10:49:58 +11:00
Mikhail Golenkov 4da24c982e MDL-70093 dataformat_pdf: Fix row height calculation with high cells 2020-11-02 14:46:17 +11:00
Paul Holden 233a51ad21 MDL-67547 dataformat_pdf: method to convert images to supported format.
For Dataformats that support exporting HTML content, provide an API for
converting images within that content to something suitable for the format.

This fixes an issue with the PDF writer when it encountered a pluginfile.php
image, which it tried to request via HTTP without an active session. This
resulted in a 303 header returned by Moodle instead of the actual image,
causing an exception in the underlying TCPDF library.
2020-05-26 00:54:27 +01:00
Paul Holden 118a109499 MDL-67547 dataformat: allow plugins to declare support for HTML. 2020-05-05 19:23:32 +01:00
Paul Holden 1de3b81983 MDL-68500 dataformat: allow instances to export to local file. 2020-05-04 09:32:44 +01:00
Jun Pataleta b3f4d77e00 MDL-65954 dataformat_pdf: Convert object records to array
* count() doesn't work quite as expected when the record being written
to the PDF is an object. So make sure to convert the record to an array.
* In addition, instead of comparing the total vs the current cell
counter, it would be more reliable to determine whether we're at the
last element of the array by getting the key for the last element and
comparing it with the key for the element that's currently being
processed.
2019-07-15 10:29:59 +08:00
Shamim Rezaie 5b7878993d MDL-65142 dataformat_pdf: New dataformat for pdf 2019-04-04 03:15:49 +11:00