Keep your templates. Keep your code.
A company with 400 templates will not rewrite them. brevier brings the templates you have and reads the classes you have.
The templates you have
Each importer reads a structured format and writes two files: an HTML template and the JSON Schema of its fields.
| From | Becomes | Status |
|---|---|---|
.jrxmlJasperReports report design | HTML template + JSON Schema | Status: In 1.0 |
.docxWord document with mail-merge fields | HTML template + JSON Schema | Status: In 1.0 |
.pdfPDF form filled by iText | HTML template + JSON Schema | Status: In 1.0 |
Untagged and scanned PDFs are not imported. Rebuilding their layout would be guesswork.
The code you have
from-code reads your compiled Java classes or Python models. It changes nothing in them. It writes the schema, a starting template and sample data next to your code.
The command
brevier from-code com.muster.Rechnung --classpath build/classespublic class Rechnung {
private String nummer;
private LocalDate datum;
private List<Position> positionen;
private BigDecimal summe;
// getters, unchanged
}{
"title": "Rechnung",
"type": "object",
"properties": {
"nummer": { "type": "string" },
"datum": { "type": "string", "format": "date" },
"positionen": { "type": "array",
"items": { "$ref": "#/$defs/Position" } },
"summe": { "type": "number" }
}
}Status: Available
