插件本地插件稳定版

Dompdf library

local_dompdfDarko Miletić

  • Moodle 1.9–5.1
  • 更新 2024-07-18

Dompdf is an HTML to PDF converter. It is intended to be used as a library by other plugins.
Dompdf is an HTML to PDF converter
At its heart, dompdf is (mostly) a CSS 2.1 compliant
HTML layout and rendering engine written in PHP. It is a style-driven renderer:
it will download and read external stylesheets, inline style tags, and the style
attributes of individual HTML elements. It also supports most presentational
HTML attributes.
Requirements
Moodle 2.9+
MBString extension
Recommendations
OPcache (OPcache, XCache, APC, etc.): improves performance
IMagick or GMagick extension: improves image processing performance
Visit the wiki for more information:
https://github.com/dompdf/dompdf/wiki/Requirements
Internal settings
By default whenever a PDF is generated systems uses $CFG->localcachedir/dompdf to store temporary data.
Usage
To create new instance of the PDF class use following code:
$pdf = local_dompdfapipdf::createnew();

返回插件目录