class ServicePdf implements ServicePdfInterface

Services related to ServicePdfInterface

Properties

private ServiceToolsInterface $serviceTools Stores ServiceToolsInterface
private TranslatorInterface $translator Stores TranslatorInterface

Methods

__construct(ServiceToolsInterface $serviceTools, TranslatorInterface $translator)

No description

array
getPdfFile(string $filename, string $url)

Returns an array($content, $filename, 'application/pdf') for a pdf file

array
getPdfFilePath(string $filename, string $url)

Returns an array($filepath, $filename, 'application/pdf') for a pdf file

array
html2Pdf(string $filename, string $html)

Converts html code to pdf and returns an array($content, $filename, 'application/pdf') of the converted pdf file

Details

at line 37
__construct(ServiceToolsInterface $serviceTools, TranslatorInterface $translator)

Parameters

ServiceToolsInterface $serviceTools
TranslatorInterface $translator

at line 49
array getPdfFile(string $filename, string $url)

Returns an array($content, $filename, 'application/pdf') for a pdf file

Parameters

string $filename
string $url

Return Value

array

at line 60
array getPdfFilePath(string $filename, string $url)

Returns an array($filepath, $filename, 'application/pdf') for a pdf file

Parameters

string $filename
string $url

Return Value

array

at line 71
array html2Pdf(string $filename, string $html)

Converts html code to pdf and returns an array($content, $filename, 'application/pdf') of the converted pdf file

Parameters

string $filename
string $html

Return Value

array