Using form schema for PDF export
I'm building an application with a LOT of forms. I also need a full PDF export containing multiple forms.
The form definition is in a Filament form schema, obviously. The PDF export is built separately.
Can I extend the schema or form components to include PDF render functionality? That way I could just throw the same schema at it, and it can return the html needed for PDF print. I'd only need one source of the form schema, which is faster to build and schema changes wouldn't have to be applied twice.
Maybe some plugin does a similar extension?
The form definition is in a Filament form schema, obviously. The PDF export is built separately.
Can I extend the schema or form components to include PDF render functionality? That way I could just throw the same schema at it, and it can return the html needed for PDF print. I'd only need one source of the form schema, which is faster to build and schema changes wouldn't have to be applied twice.
Maybe some plugin does a similar extension?
Solution
I've ultimately created quite a hacky solution for this. Overruling ViewComponent.php via composer. If anyone would like more details, let me know.