Bugfix
The command "Export model as PDF" uses the form definition stored for the respective type to create a PDF export of the model element.
Problem
If composition references of the model type are displayed on the form as an inline table, such tables are not exported. Only a comma-separated list of the labels of the row objects appears in the export.
Request
The table should be exported as shown on the form.
Further problems
- If you hide the label of the normal reference table, the format of the table disappears in the export.
- Values from multi-selections are displayed in a different order than in the form.
Solution
- The PDF export is now realized via the nominal rendering of the controls, which also generate the form in the browser.
- Adjustments are possible via:
- Additional CSS in the theme used for PDF export: "PDFExport".
- Exchange of rendering templates in the PDF export theme.
- Annotation of PDFRenderer implementations to primitive types. If such an annotation is present, a simple control is built which writes the attribute value over the annotated PDF renderer.
Test
Export PDF for the "With tables" type in the "Technical Demo:Components:PDF Export" view in tl-demo.