final class RadioGroup{ public static function create( string $name, array $options, // list<RadioOption> string $selected = '', bool $required = false, ): self}final class RadioOption{ public static function create( string $value, string $label, ): self}
namespace NextPDF\Core\Form\ValueObjects;final class FieldAppearance{ public static function create(): self public function withBackgroundColor(string $hex): self public function withBorderColor(string $hex): self public function withBorderWidth(float $pt): self public function withFontName(string $name): self public function withFontSize(float $pt): self public function withTextColor(string $hex): self public function withTextAlignment(string $alignment): self // 'left'|'center'|'right'}
namespace NextPDF\Core\Form;final readonly class FlattenResult{ /** 壓平後的 Document(可繼續進行其他操作)*/ public function document(): Document /** 成功壓平的欄位數量 */ public function flattenedCount(): int /** 未找到對應值的欄位名稱列表 */ public function missingFields(): list<string> /** 忽略的未知欄位名稱列表 */ public function unknownFields(): list<string>}