You are here

public function ConvertToPdfInterface::convertToString in PDF using mPDF 8

Converts html to PDF and return as a string.

Parameters

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

Return value

string Generated output as string or empty.

1 method overrides ConvertToPdfInterface::convertToString()
ConvertToPdf::convertToString in src/Conversion/ConvertToPdf.php
Converts html to PDF and return as a string.

File

src/ConvertToPdfInterface.php, line 34

Class

ConvertToPdfInterface
Provides an interface defining methods needed for PDF generation.

Namespace

Drupal\pdf_using_mpdf

Code

public function convertToString($html);