Repository navigation
Releases
v1.1.0
- Short forms in
.ferro:text : Invoice {number} · {customer},{name}for fields,color=,align=,size=. The long forms keep working, and every 1.0 template compiles as before. - OpenDocument export: ODS and ODT, from the CLI, the HTTP API and every binding.
- A visual designer in the browser (first version): https://cristianencarnacion.github.io/ferroreport/designer/
- Right-to-left and complex scripts: Arabic and Hebrew match JasperReports; Devanagari and Thai are shaped.
Details in CHANGELOG.md.
What's Changed
- 1.1.0 by @cristianEncarnacion in #1
New Contributors
- @cristianEncarnacion made their first contribution in #1
Full Changelog: v1.0.2...v1.1.0
v1.0.2
- VS Code extension: an icon, a README with an animation and a screenshot, and section names (
title,detail,row...) now colored by every theme. - No change to the engine: what 1.0.1 renders, 1.0.2 renders the same.
Full Changelog: v1.0.1...v1.0.2
ferroreport 1.0.1
- The VS Code extension for
.ferrois on the Visual Studio Marketplace (cristianencarnacion.ferroreport), published from the release workflow without a token. - npm and PyPI packages are published through trusted publishing, without tokens.
- No change to the engine: what 1.0.0 renders, 1.0.1 renders the same.
The full list of what 1.0 brought is in the 1.0.0 release and in CHANGELOG.md.
Full Changelog: v1.0.0...v1.0.1
Full Changelog: v1.0.0...v1.0.1
ferroreport 1.0.0
The first stable release: the APIs, the command line, the HTTP API and the .ferro format are now kept compatible within 1.x. Since 0.12:
Data from SQL databases
render --db <url>andserve --db <url>run the template's own SQL query, as JasperReports runs it over JDBC:$P{}as a bound parameter,$P!{}pasted into the text,$X{IN},$X{NOTIN},$X{EQUAL},$X{BETWEEN}and the other clause functions. PostgreSQL, MySQL and MariaDB, SQL Server and SQLite; the URL can be the JDBC one the project already has. Rows stream from the database as pages are written.- Subreports run their own queries on
$P{REPORT_CONNECTION}. - TLS follows libpq's
sslmode(disable,prefer,require,verify-ca,verify-full,sslrootcert). - The server gives the connection only to the templates of
--templates, and a request cannot set a parameter that is pasted into the SQL ($P!{}).
Expressions
- JasperReports' function library as Jaspersoft Studio lists it: 78 functions (
IF,SUM,ROUND_HALF_UP,DATEFORMAT,WORKDAY,NETWORKDAYS,WEEKNUM...), checked on 265 cases against JasperReports. DATERANGE, with relative ranges ("MONTH-1") and fixed ones,getStart()/getEnd(), and in$X{}clauses.- Groovy: lists, maps and ranges, closures (
findAll,collect,inject,sort,groupBy...),"${...}"strings,?.,**,<=>,in,as, indexing, string helpers; checked on 128 cases against JasperReports. BigDecimal division keeps Groovy's scale. - An expression that does not parse is reported with its line and column in the template.
PDF signatures
- PAdES baseline B-B signatures:
--sign-keyand--sign-cert(PEM: RSA or ECDSA P-256) or a PKCS#12 file withFERROREPORT_SIGN_PASSWORD;--sign-name,--sign-reason,--sign-location,--sign-contact.servetakes the same options and signs every PDF it returns. - Signed PDF/A-2b passes veraPDF on every fixture, and the signatures are verified with poppler's
pdfsigand with pyHanko on every push.
.ferro templates
import "parts.ferro"shares definitions between templates (only from the template's own folder).if : <expression>prints its parts only when the expression is true, and leaves no gap when it is not.each : <expression>repeats its parts for every item of a list in the row.render --watch(-w) renders again whenever the template or its data change.- A VS Code extension for
.ferro: highlighting, snippets, comments and brackets (editors/vscode, attached to every release as a.vsix).
Barcodes and images
- Every Barbecue type but PostNet: USPS, SCC-14, GTIN, shipment number, UCC-128 with
applicationIdentifierExpression, random-weight UPC-A, Bookland, Code 39 extended and PDF417, matched bar for bar on 115 symbols Barbecue drew. PostNet is skipped with a warning (Barbecue draws it as bars of one height; barcode4j's POSTNET component is drawn). - The default height of Barbecue's Code 128 family now matches Barbecue for long texts too.
scaleImage="RealHeight"and"RealSize": the element takes its height (and width) from the picture, as in JasperReports, and moves to the next page when it does not fit.
Fixes
- A date with no pattern prints in the locale's short date and time, as JasperReports does.
WEEKDAYcounts from Monday unless asked otherwise.- Control characters take no room and draw nothing; in Excel, C1 control characters are written as
?, as JasperReports writes them. - A report without pages exports the XLSX file JasperReports writes for it.
- Fuzzing found and fixed: an overflow in decimal arithmetic, a panic in sorting with an inconsistent comparison, and two inputs that took too long (
BASE,padLeft). - The minimum Rust version of the library is 1.86 (the 1.80 declared before was wrong); the command line needs 1.89.
For contributors
- Fuzz targets for templates, expressions, rows and SQL queries (
fuzz/), run every week in CI, with the files OSS-Fuzz needs. - Fixtures 48 to 51 (SQL, the function library, the other Barbecue types, RealHeight and RealSize): 48 of the 51 render pixel for pixel like JasperReports (2 charts are close, the SQL one is checked from the same rows as JSON), and 49 export the same Excel and CSV.
Known differences
- Charts follow JFreeChart's look closely but are not pixel-identical.
- Text is set left to right without shaping: right-to-left and complex scripts are not right yet, and there is no hyphenation.
- A PNG with a resolution other than 72 dpi in a
RealSizeelement is drawn a point wider than JasperReports 7.1.1 draws it (as JasperReports 6.20.6 draws it). - Not yet: scriptlets and other Java code, maps, ODS/ODT/PPTX, signatures with timestamps.
Full Changelog: v0.12.0...v1.0.0
Full Changelog: v0.12.0...v1.0.0
ferroreport 0.12.0
ferroreport 0.12.0 makes PDFs ready to archive, send and protect (PDF/A-2 and PDF/A-3 with attachments, AES-256 encryption, links and bookmarks), draws Barbecue barcodes, lets .ferro templates leave out coordinates, and adds ferroreport migrate to check a whole project before switching.
PDF/A and attachments
ferroreport render invoice.jrxml -d rows.json -o invoice.pdf --pdfa 3b --attach invoice.xml--pdfa 2b(or2u,2a,3b,3u,3a;pdfain the packages and the HTTP API): every font inside the document, an sRGB output intent, the conformance in the metadata. Level a also tags the document. A text in a PDF standard font is an error, as in JasperReports. The template'snet.sf.jasperreports.export.pdfa.conformanceasks for the same.--attach file[:mime/type]carries a file inside the PDF, such as the XML of an electronic invoice. PDF/A-3 allows any file; PDF/A-2 refuses them.- Every test report is checked with veraPDF on each change as PDF/UA-1, PDF/A-2a and PDF/A-3b with an attachment: all 47 pass all three.
Encryption
ferroreport render payslip.jrxml -d rows.json -o payslip.pdf --user-password 0423 --permissions printAES-256, the security handler of PDF 2.0. --user-password opens the document, --owner-password lifts the permissions, --permissions lists what readers allow without it (print, copy, modify, annotate, fill, accessibility, assemble, all). Passwords can come from FERROREPORT_PDF_USER_PASSWORD and FERROREPORT_PDF_OWNER_PASSWORD, out of the list of processes. Templates ask for it as in JasperReports (net.sf.jasperreports.export.pdf.encrypted, user.password, owner.password, permissions.allowed, permissions.denied); the server and the JavaScript, Python and Java packages take password, owner_password / ownerPassword and permissions. A tagged PDF always lets screen readers in. Objects are encrypted as they are written, so memory stays flat. Every test report, tagged and not, opens with qpdf and pikepdf and decrypts to the same pages and text.
Links, anchors and bookmarks
hyperlinkType Reference, LocalAnchor, LocalPage, RemoteAnchor and RemotePage with their tooltips, anchorNameExpression and bookmarkLevel (the PDF's outline), in PDF, Excel, Word and HTML, written as JasperReports writes them. In tagged PDFs, links are tagged as links.
Barbecue barcodes
The barbecue component (jr:barbecue in JRXML 6, component kind="barbecue" in 7): Code 128 (automatic, A, B, C), EAN-128, SSCC-18, Code 39 (3of9, USD3), Interleaved and Standard 2 of 5, Codabar (2of7, NW7, Monarch, USD4), EAN-13 and UPC-A, with drawText, checksumRequired, barWidth, barHeight and rotation. Bars, quiet zones and default heights match Barbecue bar for bar on 57 barcodes it drew itself, and JasperReports' own Barbecue sample now renders pixel-identical to Jasper 6.20.6 and 7.1.1. Not yet: the PDF417, PostNet, USPS, SCC-14, GTIN, shipment number and random-weight UPC-A types (a warning says so).
.ferro without coordinates, and definitions
report "Employees" lang=en
field name String
field salary Double
def money value
textField pattern=#,##0.00 hTextAlign=Right : {{value}}
title gap=6
h1 height=30 fontSize=18 : Employees
detail
row height=16
textField 3fr : $F{name}
use money 1fr value=$F{salary}
Parts without x,y stack under each other and the band grows to hold them; row puts parts side by side with widths in points, shares (40%) or fractions (2fr); stack stacks inside a row; gap= sets the spacing. Placed parts float and text fields grow, so nothing overlaps. def and use write what repeats once. convert writes the result as JRXML with every coordinate worked out, which Jaspersoft Studio and JasperReports open as any other report. How it reads.
ferroreport migrate
ferroreport migrate reports/ --report migration.md --to ferro --out converted/Checks every template of a folder: whether it loads, what it uses, what is not supported yet, whether it renders with no rows. Writes the result as Markdown or JSON, and the converted templates if you ask; exits with 1 when a template cannot be loaded, so it can stop a build. Over the 171 JRXML 7 samples of JasperReports 7.1.1: 149 load with everything they use supported (74 of them once the rows of their SQL query are passed), 18 use something not supported yet, 4 do not load (Groovy closures, a scriptlet, DATERANGE).
A limit on the size of a row
Rows of JSON stop with an error past 256 MB for one row (--max-row, JsonRows::max_row_bytes), before more of it is read, so one endless value cannot take the server's memory.
Checked against JasperReports 6.20.6 and 7.1.1
- The project's 47 test reports: the 44 compared pixel by pixel are identical, and all 46 that export to spreadsheets give the same XLSX and CSV as JasperReports. New:
46-links,47-barbecue. - JasperReports' own samples: 31 of the 87 comparable 6.20.6 samples come out the same (30 in 0.11.0), and 45 of the 101 comparable 7.1.1 ones (44) (6.20.6, 7.1.1). Most of what still differs is charts.
How it compares
The README now has an honest comparison with Typst, JasperReports, Carbone, Chromium and the commercial designers: what each does better, and where ferroreport fits.
Not yet
A visual designer of its own, digital signatures, chart customizers and themes, maps and other custom components, the remaining Barbecue types, ODS/ODT.
Upgrading
Nothing to change for templates, the CLI, the server or the packages. Java (JitPack): com.github.cristianEncarnacion:ferroreport:v0.12.0. In the Rust library, PdfOptions has the new fields pdfa, attachments and encryption, and PdfSettings has pdfa and encryption (use ..Default::default() when building them); Symbology has a Barbecue variant and PrintItem a Link one.
Full Changelog: v0.11.0...v0.12.0
Full Changelog: v0.11.0...v0.12.0
ferroreport 0.11.0
ferroreport 0.11.0 adds a template format of its own, Word output, PDF417 barcodes and SVG images, converts templates from JRXML 6 to JRXML 7, and its tagged PDFs now pass veraPDF's PDF/UA-1 checks.
Templates of its own: .ferro
The same reports as JRXML, written as an indented outline instead of XML: about half the size, easy to read and to write by hand, and accessible by default.
report "Employees" lang=en
field name String
field salary Double
variable total Double calculation=Sum : $F{salary}
title 40
h1 0,0 555x30 fontSize=18 : Employees
detail 20
textField 0,0 300x20 : $F{name}
textField 300,0 255x20 pattern=#,##0.00 hTextAlign=Right : $F{salary}
summary 20
textField 300,0 255x20 bold hTextAlign=Right : $V{total}
- Each line is one part of the report: what it is, its position and size (
x,yandwidthxheight), its attributes, and after:its text or expression. Bands take their height as a word (detail 20), fields, parameters and variables their name and class. A report is A4 with 20-point margins unless it sayspage=,landscapeormargins=. - Accessible by default: a
.ferroreport gives a tagged PDF (unless it saystagged=false) in the language oflang=;h1toh6are headings,alt="..."describes an image,tag=says what any element is. - Everything JRXML 7 can say,
.ferrocan say. The CLI, the server, the JavaScript, Python and Java packages, subreports and style templates read it like JRXML.
ferroreport convert
ferroreport convert invoice.jrxml -o invoice.ferro # JRXML 6 or 7 -> .ferro
ferroreport convert invoice.ferro -o invoice.jrxml # .ferro -> JRXML 7
ferroreport convert old.jrxml --to jrxml -o new.jrxml # JRXML 6 -> JRXML 7Also convert(template, to) in JavaScript and Python. Checked against JasperReports itself: of the 123 samples JasperReports ships in both JRXML 6 (6.20) and JRXML 7 (7.1.1), 89 convert exactly as JasperReports converted them, and the other 34 were edited between those releases. All 171 JRXML 7 samples go to .ferro and back unchanged (two with their properties reordered). Every test report renders to the same pixels from its JRXML, its JRXML 7 and its .ferro (tools/convert_check.py).
Word (DOCX)
-o report.docx, format="docx", Format::Docx: a Word document laid out like JasperReports' DOCX exporter, a table per page with each element over the cells it covers, keeping fonts, colors, styled text, borders and pictures. Every test report opens in LibreOffice with as many pages as its PDF.
PDF417 and SVG
- PDF417 barcodes, encoded and drawn as barcode4j does (error-correction levels, column and row limits, width-to-height ratio).
- SVG images, drawn as vectors in PDF and HTML and as pictures in Excel and Word, sized and scaled as JasperReports does.
Accessible PDFs: PDF/UA-1
Tagged PDFs now say they follow PDF/UA-1, and every test report is checked with veraPDF on each change: all 45 pass. Every table row has all its columns. A template can ask for a tagged PDF and its language itself (net.sf.jasperreports.export.pdf.tagged, ...pdf.tag.language).
JRXML 7
Read the way JasperReports 7 writes it: conditional styles with their attributes on the condition, rgba(...) colors, crosstab header cells without <cellContents>, the stretch types ElementGroupHeight and ElementGroupBottom, xvalueExpression and the other x/y names of charts, percentageType. JasperReports 7.1.1's own samples: 44 come out the same (41 in 0.10.0) and 16 are not rendered (20).
Checked against JasperReports 6.20.6 and 7.1.1
- The project's 45 test reports: the 42 that are compared pixel by pixel are identical, and all 44 that export to spreadsheets give the same XLSX and CSV as JasperReports. New:
44-pdf417,45-svg-images. - JasperReports' own samples: 30 of the 87 comparable 6.20.6 samples come out the same (29 in 0.10.0), and 44 of the 101 comparable 7.1.1 ones (6.20.6, 7.1.1). Most of what still differs is charts.
Maven Central
The release workflow can now publish the Java library to Maven Central (io.github.cristianencarnacion:ferroreport); it will once the account is set up (RELEASING.md). Until then, Java uses JitPack.
Not yet
Barbecue barcodes, chart customizers and themes, maps and other custom components, ODS/ODT.
Upgrading
Nothing to change for templates, the CLI, the server or the packages. Java (JitPack): com.github.cristianEncarnacion:ferroreport:v0.11.0. In the Rust library, Report::pdf_page_offsets and PrintDocument::pdf_page_offsets are now pdf.page_offsets (with pdf.tagged and pdf.language beside them), and stretchType="RelativeToBandHeight" is read as StretchType::ContainerHeight, which it always meant.
Full Changelog: v0.10.0...v0.11.0
Full Changelog: v0.10.0...v0.11.0
ferroreport 0.10.0
ferroreport 0.10.0 draws every chart type JasperReports has, adds the barcodes, markup and PDF form fields that were missing, writes text without a font the way JasperReports does, and is now checked against JasperReports 7.1.1 too.
Every chart type
Time series, XY bar, bubble, candlestick, high-low, Gantt, meter, thermometer and multi-axis charts join the ones already there, so every chart type of JasperReports is drawn. Charts can take their data from a subdataset, pie charts use their label formats, and JRXML 7 charts (<element kind="chart">) are read. Charts still follow JFreeChart's look closely without being pixel-identical.
Barcodes, markup, forms
- Barcodes: Data Matrix, EAN-128, UPC-E, POSTNET, Royal Mail and USPS Intelligent Mail, all checked module by module against barcode4j (67 cases).
- RTF markup (
markup="rtf") and HTML lists (<ul>,<ol>, nested), drawn with their bullets and numbers as JasperReports draws them. - PDF form fields from the
net.sf.jasperreports.export.pdf.field.*properties: text fields, combo and list boxes, check boxes and radio buttons. - Icon labels (
iconLabelcomponent). - Cutting text that does not fit at a character and with a suffix (
net.sf.jasperreports.text.truncate.at.char,truncate.suffix,print.keep.full.text). Math.log,log10,exp, the trigonometric functions and the rest ofjava.lang.Maththat reports use.
The same as JasperReports in more places
- Text without a font. When a text names a font no one provides, JasperReports writes it in the PDF standard font of its
pdfFontName(Helvetica by default) and lays it out with the JVM's fonts. ferroreport now does the same, so these reports match too. - Page totals with split bands. A record whose band goes on to the next page counts in the totals of the page where it starts, and group headers reprinted during a group footer's page break show the group that is ending. JasperReports' FirstJasper sample now comes out the same.
- Titles over several pages. A title taller than its page (a table in it, a long text) goes on over the next pages, without page headers or footers, as in JasperReports. Before, it was cut at the end of the first page.
- In XLSX and CSV, the part of a text printed before a page break keeps the line break it ends with, as in Jasper's export.
Server
A request answered before its body ends (a wrong template, a row that fails) could reset the connection and lose the answer, because the rest of the body was left unread. The server now reads it first (up to 256 MiB).
Accessible PDFs
Tagged PDFs (--tagged) now have lists (each item with its bullet or number and its body, lists inside items) and table cells that say how many columns and rows they span, for jr:table column groups and crosstab headers alike.
Checked against JasperReports 6.20.6 and 7.1.1
- The project's 43 test reports: the 40 that are compared pixel by pixel are identical, and all 42 that export to spreadsheets give the same XLSX and CSV as JasperReports. New:
42-split-page-totals,43-title-overflow. - JasperReports' own samples: 29 of the 87 comparable 6.20.6 samples come out the same (14 in 0.9.0), and 41 of the 101 comparable samples of JasperReports 7.1.1, rendered by JasperReports 7.1.1 itself (6.20.6, 7.1.1). Most of what still differs is charts.
Not yet
PDF417 and Barbecue barcodes, chart customizers and themes, SVG images, maps and other custom components, and a PDF/UA claim (the tagged output has not been through a validator yet).
Upgrading
Nothing to change. Java (JitPack): com.github.cristianEncarnacion:ferroreport:v0.10.0.
Full Changelog: v0.9.0...v0.10.0
Full Changelog: v0.9.0...v0.10.0
ferroreport 0.9.0
ferroreport 0.9.0 makes large reports work everywhere they are asked for (over HTTP, to Excel), makes PDFs accessible, and closes several differences with JasperReports that only its own sample reports revealed.
Large reports over HTTP
- Rows one per line. Send
Content-Type: application/x-ndjsonwith the request on the first line and a row on each line after it, and the server reads the rows as the report needs them. A million rows render with the server at about 45 MB. - The whole document or an error. A document is kept until it is complete (in memory up to
--spool-memory, then in a file under--spool-disk) and sent with itsContent-Length, so an error is never half a PDF. - Or the document as it renders. With
Prefer: respond-streamingthe first bytes arrive at once, nothing is kept on the server, and a client that leaves stops its render within milliseconds. A render that fails half way ends the response in a way every HTTP client reports as an error. - No more 40 ms wait. Answers on a connection that is kept open no longer wait for the client's acknowledgement:
POST /renderfor an invoice went from 44 ms to 3 ms. - The Java library sends rows to a server one per line as it reads them, so a large
ResultSetis never in memory on either side. - The Docker images have a writable
/tmpfor those files.
tools/http_check.py checks all of this on every change: a million rows, 50 clients at once, a client that leaves, a wrong row in each mode, and the same bytes as the command line for every test report.
Excel as it is made
The sheet of a workbook is compressed and sent on page by page instead of being built in memory. 100,000 rows take 58 MiB instead of 490, in the same 3 seconds; 500,000 take 92 MiB. A report with more rows than a sheet holds (1,048,576) stops with an error that says so. In Rust, Renderer::render_rows_to takes rows that can be read twice.
Accessible PDFs
--tagged ("tagged": true over HTTP, tagged=True in Python, .tagged(true) in Java and Rust, { tagged: true } in JavaScript) writes a tagged PDF: each text is a paragraph and each image, chart and barcode a figure, in reading order; lines, borders and backgrounds are marked as decoration; the document has its title and language. An image's hyperlinkTooltipExpression is its description. The pages look exactly the same. Tables are not tagged as tables yet, and the files make no PDF/UA claim.
Closer to JasperReports
Rendering the 140 templates of JasperReports' own demo/samples with both engines (every result) found these, all fixed:
- A style without a parent inherits from the default style. Before, text in such a style could be dropped for not fitting its box at the wrong font size.
evaluationTime="Auto"for text: each variable is read at the moment its reset type names, so a group's share of the grand total is one expression.incrementTypeon variables, group expressions that read variables, and variables withresetType="None"behave as in JasperReports.msg(pattern, args...),$R{key}andstr("key")with the report'sresourceBundle; the getters ofjava.util.Date.- A static text with
isPrintRepeatedValues="false"only prints where repeated values do (the "(continued)" label); group variables are not started twice on the first row. ferroreport doctorsays when text names no font.
14 of the 87 samples that can be compared come out pixel-identical; the rest are listed with their reason (charts, maps, PDF forms, Java scriptlets, templates that name no font). The project's own 32 test reports are all pixel-identical, and all 34 export the same Excel and CSV as JasperReports.
Under load
With 1 to 100 threads rendering an invoice at once on 2 CPUs, ferroreport makes four to six times the reports per second of JasperReports in a warm JVM, with 95% of them four to eight times sooner, in a ninth to a thirtieth of the memory (tools/bench_concurrent.py).
Upgrading
- Rust:
Renderer::to_xlsxandxlsx::write_xlsxnow return aResult. - Java:
Ferroreport.server(...)needs a server of this version or later. - Java (JitPack):
com.github.cristianEncarnacion:ferroreport:v0.9.0.
Full Changelog: v0.8.0...v0.9.0
0.8.0
HTML previews, a Java library, and a server that is closed by default.
New
- HTML output:
-o report.html(orformat: "html") gives a web page with every page of the report drawn as it is in the PDF. The text is real text, everything from the data is escaped, and the page has no scripts. - Java library (bindings/java): no dependencies, Java 11+. Rows are read from a
ResultSetor anyIterableas the report needs them.com.github.cristianEncarnacion:ferroreport:v0.8.0from JitPack. - Rows from any database: Python takes any iterator (a cursor, a generator); recipes for PostgreSQL, SQLite and MySQL through a pipe.
Server
- Breaking:
ferroreport serverefuses to listen beyond localhost without a token. The Docker image now needsFERROREPORT_TOKEN, orFERROREPORT_ALLOW_ANONYMOUS=1when only your own services can reach the port. --rate-limit: most requests per minute from one client (429).- Fixed: a client that offers HTTP/2 on its first request, as Java's
HttpClientdoes, made the server wait forever.
Output is unchanged: 31 of 31 test reports match JasperReports pixel for pixel, and 33 of 33 export the same Excel and CSV.
Full Changelog: v0.7.0...v0.8.0
0.7.0
A million rows in 11 MB. Rows are read as they are needed and pages are written as they are finished, so memory no longer grows with the report.
Faster and flat in memory
- PDF and CSV are written page by page. A million rows: 12 s and 11 MB (was 32 s and 3.7 GB). Values known only later (page X of Y, totals) are added to pages already written.
- Rows can be a JSON array or one object per line, read as the report needs them.
- Small reports are about 30% faster too (an invoice: 2 ms).
- Rust:
render_to,fill_to,PageSink,JsonRows. Python:render_to_file(..., data_file=).
Safer
- Limits on pages and time for a render (
--max-pages,--timeout,Limits,max_pages=,maxPages). - Hostile templates: nesting depth, image size, symbolic links and subreport counts are bounded; sizes that are not finite are refused.
- Every push now mutates each test template thousands of ways: the engine must answer with a document or an error. This found and fixed an endless loop and three crashes.
- CSV: optional guard against spreadsheet formulas in the data (
--csv-safe). - New SECURITY.md.
Server
- Parsed templates are cached.
GET /metricsfor Prometheus,Server-Timingon each answer,--access-log. - A 60 s time limit per render by default;
GET /healthanswers without the token.
Benchmarks you can check
tools/bench_all.py measures cold starts, a warm JVM and large reports against JasperReports: about 250x faster from a cold start, 3 to 6x faster than a warm JVM.
Output is unchanged: 31 of 31 test reports match JasperReports pixel for pixel, and 33 of 33 export the same Excel and CSV.
Full Changelog: v0.6.0...v0.7.0