ServicePdf
class ServicePdf implements ServicePdfInterface
Services related to ServicePdfInterface
Properties
private ServiceToolsInterface | $serviceTools | Stores ServiceToolsInterface | |
private TranslatorInterface | $translator | Stores TranslatorInterface |
Methods
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)
at line 49
array
getPdfFile(string $filename, string $url)
Returns an array($content, $filename, 'application/pdf') for a pdf file
at line 60
array
getPdfFilePath(string $filename, string $url)
Returns an array($filepath, $filename, 'application/pdf') for a pdf file
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