You are here

public function ConvertToPdfInterface::convert in PDF using mPDF 8

Same name and namespace in other branches
  1. 8.2 src/ConvertToPdfInterface.php \Drupal\pdf_using_mpdf\ConvertToPdfInterface::convert()

Converts HTML to PDF.

Point of call to instantiate the mPDF library and call the generator functions for creating a PDF file.

Parameters

string $html: The html that will be converted into PDF content.

Return value

mixed Generated output or empty.

1 method overrides ConvertToPdfInterface::convert()
ConvertToPdf::convert in src/Conversion/ConvertToPdf.php
Converts HTML to PDF.

File

src/ConvertToPdfInterface.php, line 23

Class

ConvertToPdfInterface
Provides an interface defining methods needed for PDF generation.

Namespace

Drupal\pdf_using_mpdf

Code

public function convert($html);