pdf_adapter_interface
interface pdf_adapter_interface
| internal |
PDF Adapter Interface.
Provides a generic contract for PDF generation, decoupling the application from specific libraries like TCPDF or DomPDF.
Methods
set_html(string $html)
Set the HTML content for the PDF.
set_metadata(array $metadata)
Set PDF metadata.
set_orientation(string $orientation)
Set page orientation.
string
output(string $filename = 'document.pdf', string $dest = 'I')
Output the PDF to the browser or as a string.
Details
at line 37
pdf_adapter_interface
set_html(string $html)
Set the HTML content for the PDF.
at line 46
pdf_adapter_interface
set_metadata(array $metadata)
Set PDF metadata.
at line 55
pdf_adapter_interface
set_orientation(string $orientation)
Set page orientation.
at line 65
string
output(string $filename = 'document.pdf', string $dest = 'I')
Output the PDF to the browser or as a string.