Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions library/Icinga/Application/Hook/PdfexportHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

namespace Icinga\Application\Hook;

use Icinga\Module\Pdfexport\PrintableHtmlDocument;

/**
* Base class for the PDF Export Hook
*/
Expand All @@ -18,8 +20,8 @@ abstract public function isSupported();
/**
* Render the specified HTML to PDF and stream it to the client
*
* @param string $html The HTML to render to PDF
* @param string $filename The filename for the generated PDF
* @param string|PrintableHtmlDocument $html The HTML to render to PDF
* @param string $filename The filename for the generated PDF
*/
abstract public function streamPdfFromHtml($html, $filename);
abstract public function streamPdfFromHtml($html, string $filename);
}