Skip to content

Releases

1.4.0

Choose a tag to compare

@github-actions github-actions released this 06 Dec 10:46
0a10c3e

Shows the VAT point basis (BT-8) in the PDF and the viewer, writes the buyer description
(BT-X-334) of the Factur-X EXTENDED profiles and titles credit notes correctly in the PDF and the
viewer. The API is unchanged. See the API reference for 1.4.0.

Added

  • The PDF and the viewer show the VAT point basis (BT-8) by its meaning: invoice date, delivery date
    or payment date, labelled "Steuerzeitpunkt", "Tax point basis" and "Exigibilité de la TVA". The
    CII codes of UNTDID 2475 (5, 29, 72) and the UBL codes of UNTDID 2005 (3, 35, 432) give the same
    text. The viewer now also reads the tax point date (BT-7) of a CII document.

Changed

  • Documentation: the README, the CII and UBL guides, the viewer README and the Javadoc of Party
    describe the buyer description (BT-X-334, EXTENDED profiles only), code 81 (written as Invoice),
    and the display of the VAT point basis (BT-8) and of the credit note titles in the PDF.
  • The workflow that updates the OWASP database image now runs once a week (Sunday) instead of every
    night and enables auto-merge on its pull request, so the new digest reaches dev once the build,
    including the owasp scan, is green. Auto-merge is only enabled when dev has a required status
    check; otherwise the pull request stays open for a manual merge. A red build also leaves it
    open, and a new workflow then opens an issue (or comments on the open one) so the failure does
    not go unnoticed.
  • The README now states the versioning policy (Semantic Versioning, patch, minor and major
    releases, no fixed release calendar) in the section "Releases and security".
  • The performance comparison with Mustangproject 2.26.0 is repeated
    with Paniolo 1.3.0 on the same inputs; its raw data and the comparison with the previous release
    (now 1.2.0) are replaced. Eight separate instances with a 512 MiB heap are no longer a limit.

Fixed

  • CI: the step "Extract Maven project version" of the deploy job prints the Maven error when it fails
    (before, the error was swallowed by the command substitution and only "exit code 1" showed up) and
    retries downloads from Maven Central.
  • The CII writer rejected the buyer description (BT-X-334, ram:BuyerTradeParty/ram:Description,
    Party.additionalLegalInformation() of the buyer) in every profile, so a valid Factur-X EXTENDED
    invoice that the reader had accepted could not be written again (Mustang issue #1331). It is now
    written in the profiles EXTENDED and EXTENDED-CTC-FR. Outside them it is still rejected, as is the
    national tax number of the buyer (BR-FXEXT-03) in every profile.
  • The PDF titled the credit note type codes 262, 396, 502 and 503 as an invoice ("Invoice",
    "Rechnung", "Facture") with an invoice number label. They now get a credit note title and number
    label in German, English and French (French: "Avoir"). Only the display changes.
  • The viewer showed a CII document with the type code 502 or 503 as an invoice, although the UBL
    counterpart and the core model treat them as credit notes. It now recognises both as credit notes
    in every language.

Verification

The JARs are published to Maven Central with GPG signatures. This release carries for every
module the SBOM (*-cyclonedx.json), the SHA-256 checksums of all files (SHA256SUMS), the
OWASP Dependency-Check report of the release build, the test evidence of the release run
(*-test-evidence.tar.gz, *-test-evidence.json, SHA256SUMS-test-evidence), and a build
provenance attestation of GitHub. The build is reproducible; see Verifying a release.

1.3.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 17:14
b48415e

Shares the compiled validators of the packaged rules between all Paniolo instances of a class
loader, adds Paniolo.validatorCacheCapacity() and Paniolo.validatorCompilationLimit() and
compiles rule sets faster. See the API reference for 1.3.0.

Fixed

  • Several separately built Paniolo instances with the same configuration each compiled and held
    their own copy of the rules. With eight instances and a 512 MiB heap, the JVM kept reclaiming the
    softly held copies and the instances spent nearly all their time compiling the same rules again:
    about 80 instead of more than 3,500 validations per second, with a 95th percentile of about
    780 ms. The validators of the packaged rules are now shared by all instances of a class loader,
    compiled once and held strongly up to a capacity; the same load reaches about 3,850 validations
    per second, as fast as one shared instance.

Added

  • Paniolo.validatorCacheCapacity() and the system property paniolo.validatorCache.capacity:
    the number of compiled validators of the packaged rules all instances hold together; by default
    one per 64 MiB of maximum heap, at least 4 and at most 32. Validators beyond the capacity are
    dropped least recently used first, referenced softly and taken back while the heap has room.
  • Paniolo.validatorCompilationLimit() and the system property
    paniolo.validatorCache.compilationLimit: the number of different validators compiled at the same
    time, by default 1, so the temporary heap of several compilations does not add up. Requests for
    the same validator wait for one compilation; validation itself is not limited.
  • Tests for the shared cache (SharedCacheTest, SharedValidatorsTest): one compilation per
    validator for eight cold instances, failed compilations, the compilation limit, nested requests,
    eviction, separation of severity modes, rule statistics and configured rules, XRechnung revisions
    validated in parallel, equally named rule directories with different rules, 1,000 discarded
    instances, and that the cache does not keep instances, results or reports reachable.

Changed

  • Validators of rules configured with the builder (rules(Path), facturXRules(Path),
    extendedCtcFrRules(Path), orderXRules(Path), despatchAdviceRules(Path)) are still compiled
    per instance and held softly; only the packaged rules are shared.
  • Compiling a rule set is faster: the unused svrl:fired-rule elements are now removed from a
    Schematron stylesheet in one pass instead of one by one from a live node list, which walked the
    stylesheet again after every removal. For the Factur-X EXTENDED rules (about 1,000 elements) this
    step takes about 2 ms instead of 170 ms, and the whole compilation about 810 ms instead of 940 ms;
    Factur-X EN 16931 about 500 ms instead of 540 ms. The compiled rules are unchanged
    (StreamlineTest compares the prepared stylesheets of every packaged rule set with the earlier
    result).

Verification

The JARs are published to Maven Central with GPG signatures. This release carries for every
module the SBOM (*-cyclonedx.json), the SHA-256 checksums of all files (SHA256SUMS), the
OWASP Dependency-Check report of the release build, the test evidence of the release run
(*-test-evidence.tar.gz, *-test-evidence.json, SHA256SUMS-test-evidence), and a build
provenance attestation of GitHub. The build is reproducible; see Verifying a release.

1.2.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 12:26
2011bdd

Keeps the original severities of the EN 16931 rules for documents that do not state XRechnung,
adds ValidationProfile.withoutSeverityOverrides() and attests the SBOMs of a release. See the
API reference for 1.2.0.

Fixed

  • A document that states only EN 16931 (BT-24 urn:cen.eu:en16931:2017) was checked with the
    severity overrides of the XRechnung scenario, so EN 16931 rules changed their severity: CII-SR-465
    was an error instead of a warning and rejected valid invoices, and BR-CL-21 was weakened and let
    invalid invoices pass. validate(byte[]), validate(String), validate(InputStream) and
    validate(byte[], ValidationProfile.Syntax) now keep the original severities of the EN 16931 rules for
    a document that does not state XRechnung. The XRechnung rules still report their findings as
    information; documents that state XRechnung keep the official scenarios and overrides. The CLI
    command validate is affected the same way.

Added

  • ValidationProfile.withoutSeverityOverrides() returns a profile with the original severities of
    its rules, without the severity overrides of a scenario (for example the customLevel entries of
    XRechnung). The facade uses it for documents that do not state XRechnung; use it with
    InvoiceValidator to run the rules of a CIUS on a document that does not state it.
  • Regression tests (PlainEn16931SeverityTest) with four control invoices for CII-SR-465 and
    BR-CL-21 in CII and UBL.

Changed

  • The SBOMs (*-cyclonedx.json) of a release now carry a build provenance attestation like the
    JARs, and the release dry-run checks that every module and the parent produce a valid CycloneDX
    SBOM before anything is deployed.

Verification

The JARs are published to Maven Central with GPG signatures. This release carries for every
module the SBOM (*-cyclonedx.json), the SHA-256 checksums of all files (SHA256SUMS), the
OWASP Dependency-Check report of the release build, the test evidence of the release run
(*-test-evidence.tar.gz, *-test-evidence.json, SHA256SUMS-test-evidence), and a build
provenance attestation of GitHub. The build is reproducible; see Verifying a release.

1.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 20:28
2134f3c

Reads the structured due date of UBL documents, holds compiled validators softly to avoid
OutOfMemoryError at small heaps, and adds a performance comparison and a heap sizing guide. See the
API reference for 1.1.0.

Added

  • Measured performance comparison of Paniolo 1.0.1 and Mustangproject
    2.26.0 with raw data, linked from the README and the feature comparison; it is also part of the
    web-site.
  • README section memory and heap sizing: what the compiled rules
    cost, the OutOfMemoryError of 1.0.1 and earlier at small heaps, and a recommended configuration.

Fixed

  • Compiled validators are held softly. Each validation profile (for example ZUGFeRD 1, the XRechnung
    scenarios or a Factur-X level) is compiled on first use and occupies 15 to 140 MiB; an instance
    that had validated documents of many different profiles kept all of them and could run out of a
    512 MiB heap with an OutOfMemoryError while compiling the next one. Under heap pressure the JVM now
    reclaims validators that are not in use, and they are compiled again on their next use, which takes
    0.4 to 4 seconds. Results do not change. Reuse one Paniolo instance and size the heap for the
    profiles you use.
  • The UBL reader ignored the structured due date PaymentTerms/PaymentDueDate of invoices and
    credit notes: a valid document (the official rule UBL-CR-463 only warns) was imported with
    dueDate() == null and without any message. The date is now read in all read modes. Stated twice
    with different dates (the header DueDate, the PaymentDueDate, or the date in the payment terms
    text that the writer uses for credit notes), strict reading rejects the document and lenient
    reading keeps the first of them in this order and reports the other one with the new warning code
    READ-DUE-DATE. The writer and the validation rules are unchanged.

Verification

The JARs are published to Maven Central with GPG signatures. This release carries for every
module the SBOM (*-cyclonedx.json), the SHA-256 checksums of all files (SHA256SUMS), the
OWASP Dependency-Check report of the release build, the test evidence of the release run
(*-test-evidence.tar.gz, *-test-evidence.json, SHA256SUMS-test-evidence), and a build
provenance attestation of GitHub. The build is reproducible; see Verifying a release.

1.0.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 16:26
b66392e

Patch release: stricter and more transparent reading of stated amounts, limits for PDF streams and
attachments, and corrections in the UBL, CII and ZUGFeRD 1.0 readers. See the
API reference for 1.0.1.

Fixed

  • The UBL reader recognised the tax scheme VAT of a PartyTaxScheme only in capitals. With vat
    or Vat (valid in EN 16931, whose UBL model rules compare in upper case) the VAT identifier of a
    seller was read as its tax number, a real tax number in a further entry was dropped, and the VAT
    identifier of a buyer was lost, all without a message; a CII export then lacked the VAT
    identifier (BR-CO-26). The scheme is now compared ignoring case, also for the tax category
    check. The values of the identifiers are unchanged.
  • A stated line amount (BT-131) was accepted if it differed from quantity x net price by no more
    than half a cent per unit of quantity, whatever the decimals of the price. A price stated with
    four or five decimals is not rounded to cents, so a document could carry a line amount that no
    rounding of the price explains (for example 20 x 2.7700 stated as 55.46, or a difference of more
    than 4,000 for a quantity of 800,000 at a price of 0.01146) without any message. The tolerance now
    is half a unit of the last stated decimal of the price (at least half a cent) per unit of
    quantity, plus half a cent for the amount. A price in cents explains as much as before; a more
    precise price explains less, and the strict mode rejects the line, while the lenient mode
    recalculates the net price and reports READ-LINE-NET-PRICE as for every other deviating line.
  • A stated line amount that the rounding of the price explains, but that differs from quantity x
    net price, is now listed in ReadResult.deviations() as BT-131 with the line, the stated amount
    and the calculated amount. Before, such a line was accepted without a trace. The amount and the
    price of the line stay as stated; isExact() is unchanged (no warning).
  • The CII and ZUGFeRD 1.0 readers dropped the scheme of a payee identifier (BT-60-1) and of the
    deliver-to location identifier (BT-71-1) written as ram:ID schemeID="…". The scheme is now
    kept. The scheme SEPA, which the model reserves for the creditor identifier, is still not
    kept on a payee, but is now reported as READ-IDENTIFIER.
  • The ZUGFeRD 1.0 reader read the deliver-to location identifier (BT-71) only from ram:ID. It now
    also reads ram:GlobalID with its scheme and reports a second identifier as READ-IDENTIFIER,
    as the CII reader does.
  • The ZUGFeRD 1.0 reader lost the further identifiers of a party (for example a global identifier
    next to ram:ID) when it took the party over into a profile other than EXTENDED.
  • The warning for a dropped VAT identifier or tax number now also covers the EXTENDED line parties
    (manufacturer, item seller, ship-to, ultimate ship-to).
  • The message for an unsupported VAT category, and the JavaDoc of TaxCategory, claimed that
    EN 16931 knows only the categories S, Z, E, AE, K, G, O, L and M. The EN 16931 code list also
    contains B (Italian split payment). The message now says that Paniolo does not implement the
    category; the reader still rejects it and does not map it to another category.
  • The CII reader dropped the scheme of a party identifier written as ram:ID schemeID="…" (seller
    or buyer, BT-29-1 / BT-46-1, also further identifiers), which the CII schema and the XRechnung
    extension (BR-DEX-05) allow. The scheme is now kept in the model; the normal export writes the
    qualified identifier as ram:GlobalID with its scheme.
  • The CII and ZUGFeRD 1.0 readers kept only the last of several different VAT identifiers or tax
    numbers of a party without a message, because the model has one of each. The identifier not kept
    is now reported as READ-IDENTIFIER in both read modes, with the party path and the scheme. The
    kept value is unchanged; the same value stated twice and empty repetitions are not reported.
  • The CLI reported success when standard output could not be written, for example after a closed
    pipe, because a print stream keeps a failed write instead of throwing it. A failed write or flush
    of standard output now ends with exit code 3 and a message on standard error, also where the
    command would have returned 0 or 1.

Added

  • The GitHub release of a version now carries its test evidence:
    paniolo-<version>-test-evidence.tar.gz and .json with the test reports of the release run
    (Java 21 and 25 with the invoice corpus, and the browser tests), the tool versions, the check
    configuration, the commit and the workflow run, and every skipped test case with its reason.
    Test reports are now uploaded for successful runs too, not only for failed ones, and the archive
    carries a build provenance attestation. check-release.sh checks that the workflow does this.
  • PrecedingInvoiceReferenceTest documents why CII outside the Factur-X profiles EXTENDED and
    EXTENDED-CTC-FR writes one preceding invoice reference (BG-3) only: the UN/CEFACT D16B schema of
    the XRechnung, Peppol, and EN 16931 CII validation and the schema of the profile BASIC allow one
    ram:InvoiceReferencedDocument; the schema of the Factur-X profile EN16931 accepts several, but
    its specification identifier is the same as that of plain EN 16931. The error message now names
    the way out (UBL, or one of these profiles); the rule is described at Invoice.
  • Regression tests (VatRoundingTest) for a stated VAT amount that is one cent off the VAT
    calculated once per category on a single line, in both directions (710.79 x 19 % stated as 135.04,
    3986.34 x 19 % stated as 757.41, both from public corpus documents): the amount is kept in every
    read mode without warning or deviation, the original and the normalized export state it, the
    validation of every profile accepts it; two cents are rejected in strict reading. The behaviour
    was already so; the tests and the README now state it.
  • ZUGFeRD 1.0 BASIC: a total of allowances (BT-107) without any allowance element, for example in
    a correction invoice, made the model state other totals than the document (a tax basis of -7.90
    instead of -7.67), and only the VAT total was reported. Paniolo does not invent an allowance for
    it, because amount, sign and reason would be guesses. The new warning READ-ALLOWANCE-CHARGE-TOTAL
    now names the stated and the listed total of allowances (BT-107) or charges (BT-108), in both
    read modes. ReadResult.requireNoDeviations() and the CLI option read --fail-on-deviation
    refuse a result whose invoice states other amounts than the document; read now also prints the
    deviations (deviation BT-107: document states -0.23, invoice has 0.00) next to the warnings.
  • Documented: the CLI commands that write a document read their input strictly; converting a
    document with deviating amounts takes read --lenient and to-xml on the JSON, see the README
    section "Writing after a lenient read".
  • ReadMode.LENIENT_KEEP_LINES and the CLI option read --keep-line-values: read like
    LENIENT, but reject a line whose net price (BT-146) or quantity (BT-129) would have to change to
    fit its stated net amount, instead of recalculating the price (READ-LINE-NET-PRICE) or negating
    the quantity (READ-LINE-QUANTITY). All other deviations stay accepted and reported as in
    LENIENT. The change of a price or quantity in LENIENT is unchanged and, as before, reported
    as warning and as deviation (BT-146, BT-129) of the result, never inside the written XML.
  • Document regressions for the line amount at the half cent (quantity 1, net price 1, price base
    quantity 200.0000001, amount 0.00): LineRoundingDocumentTest (invoice in UBL and CII),
    OrderLineRoundingTest (Order-X), and a test in QuotationJsonTest (quotation, its invoice, and
    the JSON round trip) check the line amount and the document totals in the model, in the written
    XML, and after reading back, against fixed values.
  • CliProcessIT starts the packaged paniolo-cli-*-all.jar with java -jar as a real process
    after package: version, exit codes 0, 1, 2, and 3, byte-exact extract-xml output with
    separate standard error, PDF/A conformance through the merged ServiceLoader entries, the limit
    of attachments, and a failed write to standard output. The child process has only the JAR on its
    class path and a time budget of 60 seconds.

Changed

  • The net amount of an invoice, order, or quotation line is rounded to cents once. It was divided
    to ten decimals first and rounded again, which could move an amount by one cent near a half cent,
    for example quantity 1, net price 1, and price base quantity 200.0000001 (now 0.00, was 0.01).
    Amounts and totals of such edge cases can change by one cent. The check of a stated line amount
    against quantity x price is unchanged. New: ModelChecks.lineNetAmount and
    LineAdjustment.netEffect.
  • The PDF reader of the visualizer limits the bytes that Flate streams inflate to: 64 MiB per
    stream and 256 MiB per document, counted over all streams and all stages of a filter chain and
    checked while inflating. A PDF over a limit ends with the new error code pdfTooLarge (message in
    German, English and French); it is no longer read in part, and a skipped object stream or embedded
    file no longer hides it. The limits are the exported object pdfLimits of the module and can be
    changed before a document is loaded.
  • Paniolo.attachments(byte[]) and the CLI command attachments now limit the attachments of one
    PDF in total: at most 1,000 files and 256 MiB of content together, counted by the bytes actually
    read, in addition to the existing limit of 100 MiB per file. A PDF over a limit is rejected with
    an IllegalArgumentException (exit code 3 in the CLI); several file specifications that share one
    embedded stre...
Read more

1.0.0

Choose a tag to compare

@github-actions github-actions released this 18 Nov 18:25
33e707a

First stable release. See the API reference for 1.0.0.

Added

  • Regression tests for a shared facade under concurrent XML and PDF processing:
    ConcurrentProcessingTest checks cold validation setup, separation of findings and attachments,
    recovery after failed requests, and repeated read/write round trips in a child JVM with a
    128 MiB heap. ConcurrentFacturXTest checks parallel PDF creation and import in the profiles
    EN 16931 and EXTENDED. These are bounded regression checks, not a guarantee for arbitrary
    document sizes or sustained workloads.

  • Quotation (German "Angebot") in the new package model.quotation of paniolo-shared-model:
    the offer of a seller to a buyer with validity date, subject, delivery and payment terms text,
    allowances and charges, and QuotationLines that are standard or optional. A quotation is no
    e-invoice document and has no XML syntax. totals() calculates as for the invoice; optional
    lines count only if accepted. toInvoice(number, issueDate) creates the invoice of the standard
    offer, toInvoice(number, issueDate, acceptedOptionalLineIds) adds the accepted optional lines,
    and toInvoiceBuilder(...) returns the invoice builder to complete payment instruction, due
    date, or the EXTENDED reference() of the quotation before building.

  • Paniolo.toPdf(Quotation) and toPdf(Quotation, PdfLayout) render a quotation as visual PDF/A-3b
    document without embedded XML (paniolo-facturx, German, English, and French): heading
    "Angebot", quotation number and date, validity, the lines of the standard offer with totals that
    end with the total amount with VAT, the optional lines apart from the totals, and delivery and
    payment terms. It shows no payment instruction and no amount due. The SPI PdfLayoutSupport
    has the new default method render(Quotation, PdfLayout).

  • PanioloJson stores and loads a Quotation like the other documents: json.toJson(quotation)
    and json.read(text, Quotation.class). The JSON has the record components of Quotation and
    QuotationLine (with the flag optional); loading applies the checks of the model.

  • The CLI has the command group paniolo quotation: to-pdf FILE renders a quotation as PDF
    (with the layout options of to-pdf), and to-invoice FILE --number NO [--date DATE] [--accept ID]... writes the invoice of the standard offer plus the accepted optional lines as
    JSON, which to-xml, to-facturx, and to-pdf take on.

  • The insurance tax AAM of the Factur-X profile EXTENDED is kept next to VAT. The new record
    OtherTax holds tax type, category, rate, basis amount and tax amount apart from the VAT
    category, rate and breakdown. ExtendedInformation.otherTaxes() holds the document level taxes,
    which count in BT-110, BT-112 and the amount due (1,017.57 EUR net and 26.14 EUR insurance tax
    give 1,043.71 EUR); LineExtension.otherTaxes() describes a line and is never counted again.
    OtherTax.insuranceTax(category, rate, basis) calculates the amount, rounded half up to cents.
    The CII reader reads AAM at the lines and the document in strict and lenient mode, and the CII
    writer writes it, never as VAT. Writing it in another profile than EXTENDED or as UBL fails with
    a message instead of losing it. The calculation check recalculates the totals of such invoices.
    Other tax types stay reported as READ-OTHER-TAX (rejected in strict mode). The official rules of
    EXTENDED treat every header tax block like a VAT breakdown of its category (BR-E-09,
    BR-FXEXT-S-01), so a category must be chosen that they accept.

  • PaymentTermsAdjustment.withComputedAmount() and withComputedAmount(contextBaseAmount) calculate
    a missing cash discount or penalty amount from base amount and percentage, rounded half up to
    cents (1,190.00 EUR at 3 % gives 35.70 EUR). An amount that is set stays unchanged. The base
    amount of the adjustment takes precedence; the base amount of the calling context is used only
    if the adjustment has none. Without any base amount an IllegalStateException reports the
    missing basis; nothing is guessed. PaymentTerm.withComputedDiscount(contextBaseAmount) does the
    same for the discount of a term. The calculation changes neither the due date nor the amount due.
    The amount is written as ActualDiscountAmount and survives the XML and JSON round trip.

  • PdfLayout.withProfile(PdfProfile) selects the kind of PDF that toPdf renders:

    • PDF_A_3B (the default, as before): PDF/A-3b, based on PDF 1.7. PDF/A-3 does not allow PDF 2.0.
    • PDF_A_1B: PDF/A-1b, PDF 1.4, as visual part for toFacturX(invoice, pdfA, profile), which makes
      PDF/A-3 of it. PDF/A-1 has no transparency: the watermark is drawn as opaque light text below the
      content, and PNG logos with transparency are placed on white.
    • PREVIEW: plain PDF 1.7 without PDF/A, e.g. with a watermark.
    • PREVIEW_2_0: the same as PDF 2.0 (header and catalog version).

    The methods that embed XML reject the preview profiles. The CLI selects the profile with
    --pdf-profile (--profile is the Factur-X profile of to-facturx). README and API
    documentation describe the profiles.

  • CreditTransfer keeps the kind of the payment account identifier (BT-84): the new component
    idType (AccountIdType.IBAN or PROPRIETARY) tells an IBAN from another account number.
    CreditTransfer.proprietary(id, name, bic) and CreditTransfer.Builder.proprietaryId(String)
    state a proprietary account number, e.g. EXAMPLE-ACCOUNT; the builder rejects an iban and a
    proprietaryId together. The CII writer writes it as ram:ProprietaryID and an IBAN as
    ram:IBANID, never both; the CII and ZUGFeRD 1.0 readers keep the kind, so import and normalized
    export no longer turn a ProprietaryID into an IBANID. An account with both elements is
    rejected in strict mode; lenient reading keeps the IBAN and reports the other identifier as
    READ-IDENTIFIER. UBL has cbc:ID for both and carries no kind; accounts read from UBL are
    IBAN accounts. The constructor new CreditTransfer(iban, accountName, bic) and Builder.iban
    still create IBAN accounts. JSON stores idType only for a proprietary account; JSON without it
    is read as IBAN, so stored documents are unchanged. The PDF layout labels a proprietary account
    "Account no." (Kontonummer, N° de compte) and does not group it like an IBAN. With payment means
    58 the official rules warn that BT-84 should be an IBAN (BR-DE-19). Reported as Mustang issue
    1348.

  • PdfLayout.withFoldMarks(boolean) shows or hides the fold and hole marks of DIN 5008 form B:
    small gray lines at the left edge of page 1, 105 mm and 210 mm from the top (fold) and at
    148.5 mm (hole). Folded at the marks, the address lies in the window of a DL envelope. They are
    shown by default; hide them for letter paper with preprinted marks. Documents without address
    window, such as validation reports, have none.

  • PdfLayout.withAccentColor(String) takes the accent color as a web color, e.g. "#01244F"
    (six hexadecimal digits, # optional). Anything else, such as a short form or a color name,
    fails with an IllegalArgumentException. withAccentColor(int) is unchanged.

Changed

  • Documentation now distinguishes supported insurance tax (AAM) from unsupported tax types,
    describes payment account kinds and their UBL limitation, and covers quotations, selectable PDF
    profiles, cash discount calculation, and read warnings in strict mode. The CLI guide includes
    PDF input from standard input and unchanged XML output to standard output.

  • Release verification documentation no longer guarantees byte-identical rebuilds. Fixed archive
    timestamps alone do not fix toolchain, manifest, generated JavaDoc, or SBOM differences; an
    independent rc02 rebuild found equal class bytes but different archive bytes. Signatures,
    provenance, downloaded-asset checksums, and rebuild comparison are separate checks.

  • The first page of a credit note (type codes 381 and 261) names its facts "Gutschriftsnummer" and
    "Gutschriftsdatum" (English "Credit note no.", French "N° d'avoir") instead of the invoice
    wording. A debit note (383) does the same with "Belastungsnummer" and
    "Belastungsdatum" (English "Debit note no.", French "N° de note de débit"). Other
    document types keep their labels.

  • The records ExtendedInformation and LineExtension have the new last component otherTaxes;
    the builders and JSON without it are unchanged.

  • The record CreditTransfer has the new last component idType; the canonical constructor takes
    it as last argument, the constructor with three arguments is unchanged.

  • The record PdfLayout has the new components profile and foldMarks; the canonical constructor
    takes them as last arguments. of, defaults, and the with methods are unchanged.

  • The rendered PDFs use IBM Plex Sans Regular and Bold (SIL Open Font License 1.1), packaged with
    paniolo-facturx, instead of Liberation Sans of PDFBox. Bold text uses the real bold face instead
    of emboldening the regular font. Digits are slightly wider, so line and page breaks of existing
    documents can differ. Own fonts of PdfLayout.withFonts are unchanged.

  • PdfLayout.withFonts fonts whose embedding permissions (fsType) forbid embedding or subsetting
    are rejected with a message naming the restriction instead of "no readable TrueType font" or an
    error while saving the PDF. The PDF layout documentation explains the license of own fonts.

  • The heading on the first page of the PDFs of invoices, orders and delivery notes shows only the
    document type (e.g. "Rechnung") instead of type and number. The number was shown twice, because
    the fact block next to the heading already contains it. The continuation header of the following
    pages and the PDF title metadata keep the number. The validat...

Read more

1.0.0-rc02

Choose a tag to compare

@github-actions github-actions released this 15 Nov 10:10
24a9b0b

Second release candidate. See the API reference for 1.0.0-rc02.

Added

  • ImportFidelityTest validates every normalized export of the corpus against the rules of its target
    syntax; a self-check proves that it finds a repeated tax point date and a second VAT total.

  • PdfAttachment.normalizeMimeType turns the MIME type of a file of another producer into one the
    record accepts.

  • The fidelity test of the corpus reads addresses, accounts, VAT, line names, and the SHA-256 of
    every attachment independently with XPath and lists each expected difference with its type and
    message in fidelity-exceptions.tsv.

  • Corpus tests of the fidelity of the import: ImportFidelityTest checks for every readable corpus
    document that the original export is the received XML byte for byte, that independently read
    values (number, party names, number of lines, payable amount, attachments) equal the model, and
    that the normalized export in both syntaxes keeps parties, lines, VAT, payment data, notes,
    attachments, and amounts; expected differences are listed with their reason. PdfaCorpusTest
    checks the corpus PDFs with veraPDF in an additional Maven execution and compares the errors with
    reviewed expectations. ManifestSummaryTest keeps the README numbers of the corpus in line with the
    manifest.

  • Browser test of the visualizer: ViewerBrowserTest (Playwright, profile browser-tests, CI job
    visualizer-browser) runs the parser and the web component with UBL, CII, and PDF documents,
    sub-lines, attachments, validation report, language switch, untrusted text, and error display.

  • Release evidence for audits: every module is published with its SBOM in CycloneDX format
    (<module>-<version>-cyclonedx.json); the build is reproducible (fixed archive timestamp, set
    to the commit time of the release); the release JARs carry a GitHub build provenance
    attestation; the GitHub release lists the JARs, SBOMs, SHA256SUMS, the OWASP
    Dependency-Check report of the release build, and the changes of the version.
    scripts/release/collect-release-files.sh collects these files, also to rebuild and compare a
    release. SECURITY.md describes how releases are built and how to verify them. The CI builds
    include the public invoice corpus.

  • PDF/A check: control over the JavaScript rules veraPDF compiles and caches per thread (Mustang
    issue 1158, veraPDF issue 1616). Paniolo.builder().pdfaScriptCache(PdfaScriptCache) selects
    REUSE (default, unchanged behavior: kept for later checks on the same thread) or
    CLEAR_AFTER_CHECK (released on the validating thread after every PDF/A check, in a finally
    also when the check fails). Paniolo.releasePdfaScriptCache() releases the caches of the calling
    thread on demand, e.g. at the end of a batch. Both act on the validating thread only, need no
    lock and never change findings. The SPI PdfaSupport gains check(pdf, statistics, cache) and
    releaseThreadCaches() with defaults. The load test PdfaScriptCacheLoad in
    paniolo-benchmark measures time, Metaspace and classes of the strategies; see
    paniolo-pdfa/README.md.

  • ValidationProfile.xrechnung(bundle, syntax, XrechnungScenario) loads the standard, extension or
    CVD scenario of a KoSIT bundle; ValidationProfile.xrechnungSpecifications(bundle) returns the
    specification identifiers its XRechnung scenarios accept, as XrechnungSpecification with
    scenario and document type.

  • Paniolo.isEInvoice(byte[]) and Paniolo.probe(byte[]): cheap check whether XML or a PDF is an
    EN 16931 electronic invoice (UBL Invoice, UBL CreditNote, CII, or a Factur-X / ZUGFeRD 2.x PDF
    with such XML embedded). Only the start of the XML is read, the root element and for CII the
    specification identifier (BT-24); for a PDF only the embedded files and the start of the invoice
    XML, without XMP metadata, page content or PDF/A checks. The profiles MINIMUM and BASIC WL, which
    are no electronic invoices in Germany, and unsuitable content, including ZUGFeRD 1.0, yield
    false / an empty result instead of an exception. A PDF needs paniolo-facturx.

Changed

  • paniolo-json and paniolo-cli use Jackson 3 (tools.jackson.core:jackson-databind 3.1, managed
    with tools.jackson:jackson-bom) instead of Jackson 2.
    PanioloJson.configure takes and returns the Jackson 3 tools.jackson.databind.json.JsonMapper.Builder,
    and PanioloJsonModule is a Jackson 3 module; code using them changes its imports from
    com.fasterxml.jackson.databind / com.fasterxml.jackson.core to tools.jackson.databind /
    tools.jackson.core. The JSON format is unchanged: JSON stored with 1.0.0-rc01 loads and is
    written again byte for byte. PanioloJson.read still throws IllegalArgumentException with
    property path or line and column. The Jackson 3 defaults that would change the format are set
    explicitly; see docs/jackson.md and the migration notes in paniolo-json/README.md.
  • paniolo-pdfa excludes veraPDF's jackson-databind 2.x, which veraPDF uses only for its own
    report output; Paniolo and the executable CLI JAR carry Jackson 3 only. Applications that use the
    veraPDF processor themselves add Jackson 2 on their own.
  • Fewer modules, so fewer artifacts per release (nine instead of fifteen). Packages and class names
    are unchanged; only the Maven coordinates change:
    • paniolo-xml, paniolo-xml-ubl, paniolo-xml-cii, and paniolo-validation are part of
      paniolo. Applications that depended on one of them depend on paniolo instead.
    • paniolo-xrechnung-rules and paniolo-facturx-rules are merged into paniolo-rules, which
      paniolo brings along. META-INF/NOTICE of paniolo-rules lists all packaged releases.
    • paniolo-pdf-layout is part of paniolo-facturx: rendering the pages (toPdf,
      toReportPdf, toFacturX(invoice, profile), toOrderXPdf(order),
      toDespatchAdvicePdf(advice)) needs no further dependency. Without paniolo-facturx these
      methods name paniolo-facturx as the missing dependency.
  • Validation report PDF (toReportPdf, paniolo validate -f pdf) laid out as conformance report:
    a verdict at the top in the color of the result (conform, conform with warnings, not conform –
    rejection recommended), the number of findings per severity, the validation stages with their
    findings and result, Schematron and PDF/A statistics when the validation collected them, and
    every finding as a block with severity, rule, message and location. Findings are now grouped by
    stage like the XML report. A report without findings shows the conform verdict.
  • BR-27 and BR-28 (item net and gross price not negative) are checked by Invoice instead of
    InvoiceLine, as they depend on the profile: an InvoiceLine with a negative price can be
    built, and Invoice.build() rejects it outside the Factur-X profiles EXTENDED and
    EXTENDED-CTC-FR, with the rule in the message.

Fixed

  • inventory reads the specification identifier and the type code from their place in the document
    (direct children of a UBL root in the basic components namespace; the context and document element
    of CII, ZUGFeRD 1.0, Order-X, and CIDA), so extensions and nested documents with equal names no
    longer replace them or change the profile count.
  • The specification identifier and the profile are read with the encoding of the document (byte
    order mark, UTF-16, XML declaration), like its content: an XRechnung without buyer reference is no
    longer reported as valid in UTF-16, and Order-X BASIC validates in UTF-16.
  • inventory recognizes Order-X (PDF/ORDER_X) and despatch advice (PDF/CIDA) PDFs and validates
    Order-X PDFs; it counts a known format only for the full namespace and root name, so equal local
    names in a foreign namespace are UNKNOWN.
  • visualize --validate chooses the validator by the root element of the XML or the main document of
    the PDF instead of by words in the first bytes, so comments no longer redirect it and UTF-16 and
    PDF documents reach the right validator. New: Paniolo.extractOrderXml and
    Paniolo.extractDespatchAdviceXml.
  • The optional calculation check judges every line on its own: a line whose net price was
    recalculated no longer hides the price finding (PANIOLO-CALC-NET-PRICE) of another line with the
    same identifier, and the official counterpart is matched by the position of the line.
  • The PDF layout breaks a long word without spaces by doubling and halving the length instead of
    measuring nearly the whole rest for every cut; a text of 12000 characters takes well under a
    second, and the whole text stays in order.
  • A report of load(input, {report}) that a newer report choice has replaced is not read any more
    and can neither fail the document nor show an error; a network or HTTP failure of report-src is
    an error of the report and ends with a correct report like any other report error.
  • attachments --extract also keeps names apart that a file system folds in more than one
    character (ß and ss, ς and σ, ligatures); the comparison is the same on every system.
  • A file selection of the viewer (drop or file picker) counts from the selection, not from the end of
    reading: an older, slower file no longer replaces a newer file, a document chosen by the API, or
    clear().
  • A correct report, or removing the report, ends the error view of a failed report and shows the
    document again; an error of the document itself stays.
  • The viewer orders document requests by the choice of the document, not by the arrival of the
    answer: a slower answer or failure of an older src, or one that arrives after clear(), is
    ignored.
  • A validation report belongs to the document and the request it was started for; a document change,
    clear(), removing the report, or a newer report request make a late answer or error ineffective.
  • The ...
Read more

1.0.0-rc01

Choose a tag to compare

@github-actions github-actions released this 01 Nov 13:38

Release of version 1.0.0-rc01