XObject Template documentation
xobject-template compiles a HTML/CSS template into PDF Form XObject output.
Start here
Quick example
<?php
use LibreSign\XObjectTemplate\Dto\CompileRequest;
use LibreSign\XObjectTemplate\XObjectTemplateCompiler;
$compiler = new XObjectTemplateCompiler();
$result = $compiler->compile(new CompileRequest(
html: '<div style="font-size:12;color:#111111">Signed by {{ name }}</div>',
width: 240.0,
height: 84.0,
context: ['name' => 'Alice'],
));
For executable samples, see the examples page.