...
For a PDF you store a JasperReports template (.jrxml) in the print profile – directly as a file or as a resource (handy for reuse). For dependent records (e.g. order positions) use a subreport passed as a Jasper parameter to the main template. Additional text parameters allow variants (e.g. a quote with/without summary).
...