Repository navigation
0.2.1 — Preserve standalone Form rendering
Directly referenced Form XObjects now retain their exact clipping and transparency during isolated graphics export. Version 0.2.0 flattened a standalone Form into page instructions, which could paint outside a sheared /BBox and lose its /Group behavior. The exporter now retains the Form as a real XObject, including /BBox, /Group and optional-content membership.
The composed Form transformation is applied exactly once. Explicit viewports remain in default page coordinates and use the immutable PageTransform independently of the Form matrix, including page rotation and UserUnit. Native reading supplies the page context; manually constructed standalone Form models must provide it when requesting an explicit page-space viewport.
Validation: 432 tests / 5,904 assertions, PHPStan, formatting and Composer checks on PHP 8.3–8.5. Fourteen independent pypdf/Poppler context comparisons include standalone OBJR clipping, CMYK transparency, hidden optional content, transformed viewports and direct/indirect null UserUnit. Exact candidate CI: 522414cfe06cd071efce5843bdbdae59802a8388.
composer require "pdftoolkit/pdf-to-html:^0.2.1"