Skip to content
Corex

PdfExportWriter

Corex\Config\Export\PdfExportWriter · class · Config layer

Writes an export as a PDF (spec 103, US8), with mPDF: the library that shapes and reorders Arabic, which a document of people’s answers has to do. What the document says and how it is set out is {@see PdfExportLayout}‘s. This hands that to the library a piece at a time and saves the file.

__construct(PdfExportLayout $layout, ExportDirectory $directory, PdfFonts $fonts)

Section titled “__construct(PdfExportLayout $layout, ExportDirectory $directory, PdfFonts $fonts)”

Whether a PDF can be written here: the library is installed, and PHP has the two extensions it draws and measures with.

write(ExportDocument $document, string $pathWithoutExtension): ExportFile

Section titled “write(ExportDocument $document, string $pathWithoutExtension): ExportFile”