Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
1 / 1
n/a
0 / 0
CRAP
n/a
0 / 0
1<?php
2
3declare(strict_types=1);
4
5/** @license For full copyright and license information, please see the LICENSE.md file. */
6
7namespace App\Modules\Pdf\Infrastructure\Driver;
8
9defined('AMMONLY_APP') || exit('Direct script access is forbidden.');
10
11/**
12 * PDF Rendering Engine Driver Contract.
13 *
14 * @package App\Modules\Pdf\Infrastructure\Driver
15 */
16interface PdfRendererDriverInterface
17{
18    /**
19     * Renders HTML content into PDF binary document.
20     *
21     * @param string               $html    Composed HTML markup.
22     * @param array<string, mixed> $options Rendering configuration options (format, orientation, margins).
23     * @return string Binary PDF document string.
24     */
25    public function renderPdf(string $html, array $options = []): string;
26}