PDF DataLoader is currently bound only to entity type via pdfDefs.{entityType}.dataLoaderClassNameList. Since DataLoader receives only Entity and Params, it has no access to the selected template, even though Service::generate already knows template. This makes template-specific PDF data preparation awkward for entity types that have multiple templates.
Please consider adding template-aware loader support, e.g. by passing template into the loader or by supporting template-level loader registration in metadata.
Please consider adding template-aware loader support, e.g. by passing template into the loader or by supporting template-level loader registration in metadata.

Comment