CRM_Utils_PDF_Utils
class CRM_Utils_PDF_Utils
Methods
static string|void
html2pdf(array $text, string $fileName = 'civicrm.pdf', bool $output = FALSE, null $pdfFormat = NULL)
No description
static
_html2pdf_tcpdf($paper_size, $orientation, $margins, $html, $output, $fileName, $stationery_path)
Convert html to tcpdf.
static string
_html2pdf_dompdf($paper_size, $orientation, $html, $output, string $fileName)
No description
static
_html2pdf_wkhtmltopdf($paper_size, $orientation, $margins, $html, $output, string $fileName)
No description
static float|int
convertMetric($value, $from, $to, null $precision = NULL)
convert value from one metric to another.
Details
at line 52
static string|void
html2pdf(array $text, string $fileName = 'civicrm.pdf', bool $output = FALSE, null $pdfFormat = NULL)
at line 140
static
_html2pdf_tcpdf($paper_size, $orientation, $margins, $html, $output, $fileName, $stationery_path)
Convert html to tcpdf.
at line 195
static string
_html2pdf_dompdf($paper_size, $orientation, $html, $output, string $fileName)
at line 223
static
_html2pdf_wkhtmltopdf($paper_size, $orientation, $margins, $html, $output, string $fileName)
at line 255
static float|int
convertMetric($value, $from, $to, null $precision = NULL)
convert value from one metric to another.