<?php

namespace SoftminalB2B\Services\Pdf;

if (!defined('ABSPATH')) {
    exit;
}

/**
 * Turns an HTML document into PDF bytes.
 *
 * The interface exists so the renderer never touches a specific library: Free
 * bundles dompdf, and Pro's block-editor customizer (Phase 2) renders through
 * the same seam. Everything above this is engine-agnostic.
 */
interface PdfEngine
{
    /**
     * @param string $html Fully-formed, self-contained HTML (inline CSS only).
     * @return string Raw PDF bytes.
     */
    public function render(string $html): string;
}
