[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-116471":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":35,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":39,"discoverSource":40},116471,"fagus","nforst\u002Ffagus","nforst","HTML and CSS to PDF for PHP and Laravel, without a browser. Renders like Chrome prints, with PDF\u002FA, PDF\u002FUA and ZUGFeRD\u002FFactur-X.","https:\u002F\u002Ffagus.niklasforst.de",null,"Rust",196,2,1,0,13,94,58,90.83,"Apache License 2.0",false,"main",true,[25,26,27,28,29,30,31,32,33,34],"css","factur-x","html-to-pdf","laravel","pdf","pdf-generation","pdfa","php","rust","zugferd","2026-11-20 17:51:22","2026-11-23 19:31:58","\u003Cp align=\"center\">\n  \u003Cimg src=\"art\u002Fbanner.png\" alt=\"Fagus: HTML and CSS to PDF for PHP and Laravel, without a browser\" width=\"1280\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg src=\"https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?branch=main\" alt=\"CI\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fnforst\u002Ffagus\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fv\u002Fnforst\u002Ffagus\" alt=\"Latest version on Packagist\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpackagist.org\u002Fpackages\u002Fnforst\u002Ffagus\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fdependency-v\u002Fnforst\u002Ffagus\u002Fphp\" alt=\"PHP version\">\u003C\u002Fa>\n  \u003Ca href=\"#license\">\u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpackagist\u002Fl\u002Fnforst\u002Ffagus\" alt=\"Licence\">\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\">\u003Cstrong>Documentation\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Fp>\n\n# Fagus\n\nHTML and CSS to PDF for PHP and Laravel, without a browser.\n\n> **Status:** stable since 1.0. It renders real invoices and reports (Quittio's invoice template,\n> Tailwind-style pages) like Chrome prints them, and the CSS coverage keeps growing. Only a major\n> release changes the API; [Stability](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Fstability) says what is\n> covered and how deprecations work. Design decisions are recorded in [docs\u002Fadr](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Fadr).\n\n```sh\ncomposer require nforst\u002Ffagus\n```\n\n```php\nuse Fagus\\Fagus;\n\nFagus::html($html)->save('invoice.pdf');\nFagus::html($html)->inline('invoice.pdf'); \u002F\u002F or show it in the browser\n```\n\nFagus is a Composer package that turns HTML and CSS into PDF the way Chrome prints them. There is\nno Chrome, Puppeteer or Node to install, no Docker image and no system library: the rendering\nhappens in a native engine written in Rust, which Composer downloads for your platform (checked\nagainst its SHA-256) and which PHP keeps running as a worker process between documents.\n\n- **Simple:** `composer require` is all it takes, on Linux (x64 and arm64, glibc or musl, so Alpine\n  too), macOS (Intel and Apple silicon), Windows x64 and FreeBSD x64. Every platform prints the\n  same PDF.\n- **Fast:** a one-page invoice in about 2.5 ms once the worker runs, ten pages in about 17 ms,\n  measured from PHP on an Apple M2 Pro (tagged PDF). The first document of a process takes about\n  9 ms. For one page that is 10 to 30 times faster than mPDF, Dompdf or a Chrome kept running,\n  see the [comparison](#compared-with-other-renderers).\n- **Faithful:** modern CSS (flex, grid, Tailwind v4 included) renders the way it does in Chrome;\n  page breaks, running headers, page counters and repeated table headers work the way print CSS\n  specifies them.\n- **Standards:** PDF\u002FA-3 with ZUGFeRD\u002FFactur-X attachments and accessible PDF (PDF\u002FUA) built in.\n- **Safe:** no network access, no files outside the directory you allow, no scripts; the engine has\n  no `unsafe` code of its own (the command line has one call of glibc's `malloc_trim`).\n\nDompdf and mPDF stop at CSS 2 with some extensions, without flex or grid; Browsershot, Snappy and\nGotenberg need a browser or a service. Fagus sits in between: a PHP package with the CSS of a\nbrowser. The [comparison](#compared-with-other-renderers) below shows speed and features side by\nside.\n\n## Installation\n\nPHP 8.3 or newer. Composer asks whether to trust the plugin of `nforst\u002Ffagus`: it installs the\n`fagus` binary of the package's release after every `composer install` and `composer update`.\n\n```sh\ncomposer require nforst\u002Ffagus\n```\n\nIn Laravel 13 the same package registers itself (facade `Fagus`, Blade views, responses, disks);\npublish the configuration if you want to change it:\n\n```sh\nphp artisan vendor:publish --tag=fagus-config\n```\n\n[Getting started](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Fgetting-started) walks through the first PDF;\n[Deployment](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Fdeployment) covers Docker, Alpine, servers without access to GitHub and\nbinaries of your own.\n\n## Usage\n\n```php\nuse Fagus\\Conformance;\nuse Fagus\\Fagus;\n\n$pdf = Fagus::html($html)\n    ->baseDirectory(__DIR__.'\u002Fresources\u002Fpdf')   \u002F\u002F relative URLs and the files they may read\n    ->resource('logo.png', $logo)                \u002F\u002F data the document refers to\n    ->pdfA(Conformance::PdfA3b)\n    ->facturX($invoiceXml)                       \u002F\u002F ZUGFeRD \u002F Factur-X\n    ->render();\n\n$pdf->save('invoice.pdf');\n$pdf->pages();\n$pdf->diagnostics();  \u002F\u002F CSS that was ignored, resources that are missing, with their position\n\nFagus::html($html)->accessible()->save('letter.pdf'); \u002F\u002F PDF\u002FUA-1\n```\n\nIn Laravel, from a Blade view:\n\n```php\nuse Fagus\\Laravel\\Facades\\Fagus;\n\nreturn Fagus::view('invoices.show', ['invoice' => $invoice])->name('invoice.pdf'); \u002F\u002F inline\nFagus::view('invoices.show', $data)->download('invoice.pdf');\nFagus::view('invoices.show', $data)->pdfA('3b')->store('invoices\u002F2026-0042.pdf', 's3');\n```\n\nThe page size, margins, headers and footers come from `@page` rules in the document, the PDF's\ntitle from `\u003Ctitle>` and its language from `\u003Chtml lang>`, as in a browser. The packages describe\neverything else is in the [documentation](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs).\n\n## Compared with other renderers\n\n### Speed\n\nTime per PDF of an invoice, the median of three runs in new processes on an Apple M2 Pro (macOS 27).\n*First* is the first PDF of a process, as in a PHP-FPM request (for Fagus it includes starting the\nworker, for Chrome kept running it does not include starting the browser); every other column is a further PDF in the same process, as in a queue worker or Octane.\nThe invoice uses only CSS 2.1 (tables, no flex or grid) so that every engine lays it out.\n\n| Engine | 1 page, first | 1 page | 10 pages | 40 pages |\n|---|--:|--:|--:|--:|\n| **Fagus** | **9 ms** | **2.3 ms** | **17 ms** | **63 ms** |\n| Chrome 157, kept running (as in Gotenberg) | 103 ms | 75 ms | 122 ms | 217 ms |\n| mPDF 8.3 | 63 ms | 25 ms | 233 ms¹ | 898 ms¹ |\n| Dompdf 3.1 | 70 ms | 48 ms | 349 ms¹ | 2,550 ms¹ |\n| WeasyPrint 66 | 158 ms | 105 ms | 668 ms | 2,596 ms |\n| Browsershot 5.5 (a new Chrome per PDF) | 611 ms | 601 ms | 650 ms | 751 ms |\n\n¹ Same content, other page breaks: Dompdf sets the 10 pages on 12 and the 40 on 44, mPDF (which\nignores `@font-face` and uses its own font) on 8 and 31.\n\nWith modern CSS (the invoice of `tools\u002Fgen.py`: flex, grid, margin boxes with page numbers), which\nDompdf and mPDF cannot lay out, Fagus takes 2.5 ms for one page and 17.5 ms for ten, Chrome 81 and\n123 ms, WeasyPrint 134 and 715 ms. Chrome is measured from Node with Puppeteer; through Gotenberg\nan HTTP request comes on top. The scripts and documents are in [bench\u002Fcompare](bench\u002Fcompare).\n\nMemory, as the physical footprint of PHP and the worker together: 22 MB for the one-page invoice and\n60 MB for 40 pages; Chrome kept running takes 250 to 400 MB, WeasyPrint 74 to 191 MB. Four Fagus\nworkers side by side render 224 ten-page PDFs a second, one Chrome with four tabs 24. The tables are\nin [bench\u002FREADME.md](bench\u002FREADME.md#memory-and-cpu-time-memory).\n\n### Features\n\n| | Fagus | Chrome (Browsershot, Gotenberg) | WeasyPrint | Dompdf | mPDF |\n|---|:-:|:-:|:-:|:-:|:-:|\n| Installs with | Composer (downloads one binary) | Node, Puppeteer and Chrome, or a service | Python and Pango | Composer | Composer |\n| Licence | MIT or Apache-2.0 | MIT, BSD | BSD-3-Clause | LGPL-2.1 | GPL-2.0 |\n| Flexbox, grid | ✓ | ✓ | ✓² | – | – |\n| Headers and footers in `@page` margin boxes, \"page 2 of 5\" | ✓ | ✓ | ✓ | –³ | –³ |\n| HTML in headers and footers (`position: running()`), `string-set` | ✓ | – | ✓ | – | – |\n| Table of contents with page numbers (`target-counter()`) | ✓ | – | ✓ | – | –³ |\n| Table headers repeated on every page | ✓ | ✓ | ✓ | ✓ | ✓ |\n| Hyphenation (`hyphens: auto`) | ✓ | ✓ | ✓ | – | ✓ |\n| Footnotes (`float: footnote`) | ✓ | – | ✓ | – | – |\n| JavaScript | –⁴ | ✓ | – | – | – |\n| Bookmarks (PDF outline) | ✓ | with an option | ✓ | – | –³ |\n| Tagged PDF, PDF\u002FUA | ✓ | tagged only | with an option | – | – |\n| PDF\u002FA | 1b, 2b, 2u, 2a, 3b, 3u, 3a, 4, 4e, 4f | – | ✓ | – | 1b, 3b |\n| ZUGFeRD \u002F Factur-X | built in | – | by hand | – | by hand |\n| Same PDF on Linux, macOS and Windows | ✓ | depends on the fonts installed | depends on the fonts installed | ✓ | ✓ |\n\n² WeasyPrint passes the simple cases tested here; its documentation calls flex layout partly\nsupported. ³ mPDF has headers, footers, bookmarks and tables of contents through its own tags\n(`\u003Chtmlpageheader>`, `\u003Cbookmark>`, `\u003Ctocpagebreak>`), Dompdf page numbers through a PHP callback,\nnot through CSS. ⁴ Fagus runs no scripts on purpose, so that a template cannot reach the network\nor the server; draw charts on the server instead, as inline SVG or images (with any PHP chart\nlibrary).\n\nThe CSS rows are checked by rendering the documents in\n[bench\u002Fcompare\u002Fprobes](bench\u002Fcompare\u002Fprobes) with every engine (`bench\u002Fcompare\u002Frun.sh`); the other\nrows follow each project's documentation. Snappy and laravel-snappy use wkhtmltopdf, whose\nrepository was archived in 2023 and whose WebKit dates from 2012; it is not measured.\n\n## What it renders\n\n- **CSS:** the cascade with layers, nesting, `:has()`, custom properties, `@property` and `calc()`, and the presentational attributes of HTML (`width`, `align`, `bgcolor`, `cellpadding` …); colors of CSS Color 4 and 5; block, inline, float, flex (with wrapping), grid and multi-column layout (with spanning elements); tables with spans and collapsing borders; positioning and stacking; images and inline SVG, with `object-fit`; backgrounds, gradients (with `in \u003Ccolor space>` interpolation), shadows, transforms; lists and counters; `@font-face` with TTF, OTF, WOFF and WOFF2, variable fonts and `unicode-range`; OpenType features through `font-variant` (with made-up small capitals) and `font-feature-settings`; line breaking as in Chrome, with `overflow-wrap`, `word-break` and hyphenation with the dictionaries and rules of Chrome on Linux (the same on every system); text decorations with their thickness, offset and styles; `text-overflow: ellipsis`.\n- **Pages:** `@page` sizes and margins, `:first`, `:left`, `:right` and named pages, margin boxes with running elements, named strings and page counters; breaks inside paragraphs (with orphans and widows), tables, flex, grid and multi-column containers, headings kept with what follows them, with headers and footers repeated on every page.\n- **PDF:** fonts embedded as subsets, vector gradients, links and the document outline, PDF\u002FA-1b, PDF\u002FA-2, PDF\u002FA-3 and PDF\u002FA-4, attachments, ZUGFeRD\u002FFactur-X invoices with the XMP metadata they need. veraPDF and Mustang check the output (`tools\u002Fvalidate.sh`).\n- **Accessibility:** tagged by default, with the structure of the document (headings, paragraphs, lists, data tables, images with their alternative text, links) in reading order, headers, footers and decoration marked as artifacts; PDF\u002FUA-1, also together with PDF\u002FA-2a, PDF\u002FA-3a or a Factur-X invoice.\n- **Frames:** an `\u003Ciframe>` (its `srcdoc`, else its `src`), and an `\u003Cobject>` or `\u003Cembed>` whose resource is an HTML document, shows that document as Chrome prints it: laid out on a viewport as large as the frame's content box (which its media queries and viewport units see; its media type is still `print`), not paginated, cut off at the frame's edges, on a transparent canvas, with its own style sheets, fonts and images; text files and images show as Chrome's documents for them, and `frame-sizing: content-height` makes a frame as tall as a document that allows it (`\u003Cmeta name=responsive-embedded-sizing>`). A frame's document loads like any other resource (a `data:` URL, the resources handed over, the caller's loader, a file inside the root), its relative URLs resolving against its own URL; scripts do not run. Frames nest at most 8 deep, and one render lays out at most 256 documents in frames with 8 MiB of markup together, so that frames that include themselves end.\n- **Diagnostics:** CSS that is ignored and resources that are missing are reported with their source position.\n- **Extensions** where CSS has no way, prefixed with `-fagus-`: carry-over rows with the running total where a table breaks (*Übertrag*), see [Extensions](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Fextensions).\n\n## Fonts and languages\n\nFonts come from `@font-face` rules and from the font directories you configure. Fagus brings Inter\nin regular and bold for text that no other font covers, so it also renders without fonts of its\nown.\n\nWith `systemFonts: true` (`system_fonts` in Laravel, `--system-fonts` on the command line) the fonts\ninstalled on the machine serve too, found as Chrome finds them: on macOS in `\u002FSystem\u002FLibrary\u002FFonts`,\n`\u002FLibrary\u002FFonts` and `~\u002FLibrary\u002FFonts`, on Linux through fontconfig, on Windows in `%WINDIR%\\Fonts`\nand the user's fonts. Families that documents name then come from the system, the generic families\nare those of Chrome on macOS (Times, Helvetica, Menlo, San Francisco for `system-ui`, Apple Chancery,\nPapyrus; Hiragino, PingFang or Apple SD Gothic Neo by the `lang` of the text), and characters that\nthe document's fonts lack fall back as in Chrome (to PingFang or Songti for Chinese, Hiragino for\nJapanese, Geeza Pro for Arabic, Zapf Dingbats or Apple Symbols for symbols …). Configured fonts and\n`@font-face` still come first for their families. Fonts are only indexed at start and read when a\ndocument uses them. It is off by default, so that a document prints the same on every machine.\n\nForm controls show texts of their own: the labels of submit and reset buttons, \"Choose File\" and \"No\nfile chosen\", the placeholders and formats of date and time fields (`mm\u002Fdd\u002Fyyyy`, 12-hour time),\nthe decimal separator of number fields, the \"Details\" of a `\u003Cdetails>` without summary. Chrome writes\nthese in the language of its user interface; Fagus writes them as Chrome does in the language of the\ncontrol instead, which Chrome itself does not do: its `lang` (inherited, as `\u003Chtml lang=\"de\">`), else\nthe engine's `locale` (`'de-DE'`, `FAGUS_LOCALE` in Laravel), else American English. Fagus has\nChrome's texts and formats for English (`en-US`, `en-GB`), German, French, Spanish, Italian, Dutch,\nPortuguese (`pt-BR`, `pt-PT`) and Polish. Text without `lang` is shaped in that language too, as\nChrome shapes it in the language of its user interface (a font's forms for the language apply: EB\nGaramond sets no `fi` ligature in German).\n\n## How it works\n\nThe PHP package starts the `fagus` binary with the first document and talks to it through pipes\n([worker protocol](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Fprotocol)). The worker keeps running while the engine lives: under\nPHP-FPM it serves the documents of one request; in queue workers, under Octane (the Laravel\nintegration warms the engine, see [Laravel](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs\u002Flaravel)) and in FrankenPHP's worker mode it serves every document. HTML, fonts and PDFs travel through the pipes as they are.\n\nThe binary compresses the PDF on two threads of its own while it draws the pages, which makes large\ndocuments a few percent faster; `RAYON_NUM_THREADS` sets how many there are.\n\n## Without PHP\n\nThe engine also works on its own, as a command line tool and as a Rust library:\n\n```sh\nfagus render invoice.html -o invoice.pdf --font-dir fonts --factur-x invoice.xml\n```\n\n```rust\nlet mut engine = fagus::Engine::new();\nengine.add_font_dir(\"fonts\")?;\nlet output = engine.render(&fagus::Document::html(html).base_directory(\"assets\"))?;\nstd::fs::write(\"invoice.pdf\", output.pdf)?;\n```\n\n`engine.add_system_fonts()` and `engine.set_locale(...)` match the PHP options above. The Cargo\nfeature `parallel` (on by default) brings the compression threads: built without it\n(`--no-default-features`), Fagus writes each document on one thread, and the Rust library\ncompresses on rayon's global pool.\n\n## Layout of the repository\n\n| Path | Contents |\n|---|---|\n| `composer.json`, `php\u002Ffagus` | The Composer package `nforst\u002Ffagus` (`Fagus\\\\`) |\n| `php\u002Flaravel` | Its Laravel integration (`Fagus\\\\Laravel\\\\`) |\n| `crates\u002Ffagus-dom` | Arena DOM, HTML parsing (html5ever) |\n| `crates\u002Ffagus-css` | CSS parsing (lightningcss), selector matching, rule index |\n| `crates\u002Ffagus-style` | Cascade and computed values |\n| `crates\u002Ffagus-text` | Fonts, shaping (harfrust), line breaking |\n| `crates\u002Ffagus-layout` | Box tree, layout, fragmentation, paged media |\n| `crates\u002Ffagus-paint` | Display lists |\n| `crates\u002Ffagus-pdf` | PDF output (krilla) |\n| `crates\u002Ffagus` | Public Rust API |\n| `crates\u002Ffagus-cli` | The `fagus` binary |\n| `crates\u002Ffagus-testkit` | Reference tests, image comparison, benchmarks |\n| `docs` | The [documentation](https:\u002F\u002Ffagus.niklasforst.de\u002Fdocs) |\n| `docs\u002Fadr` | Architecture decision records |\n| `docs\u002Fprotocol.md` | The worker protocol between the binary and PHP |\n| `docs\u002Freleasing.md` | How a release reaches GitHub and Packagist |\n| `tests\u002Fcorpus` | Test documents |\n| `bench` | Benchmarks against other engines |\n| `tools` | Scripts for references and comparisons |\n\nThe Composer package is this repository: `composer.json` is at the root, and the archives Composer\ndownloads hold only the PHP code (see `.gitattributes`).\n\n## Development\n\n```sh\ncargo build --release\ncargo test\ncargo clippy --all-targets\ncargo run -p fagus-cli -- render tests\u002Fcorpus\u002Finvoice\u002Finvoice-3.html -o \u002Ftmp\u002Finvoice.pdf\n\ncomposer install\nvendor\u002Fbin\u002Fphpunit      # PHP and Laravel, against target\u002Frelease\u002Ffagus\n```\n\n## License\n\nLicensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT license](LICENSE-MIT) at your option.\n\nThe built-in font Inter is licensed under the [SIL Open Font License 1.1](crates\u002Ffagus-text\u002Ffonts\u002FInter-LICENSE.txt).\n\nThe predefined counter styles and the algorithms of the complex ones, the marks of form controls,\nthe distribution of the height of cells spanning table rows and the spacing of East Asian punctuation and text follow Chromium and are licensed under its [BSD license](crates\u002Ffagus-layout\u002FCHROMIUM-LICENSE). The\ngeometry of `shape-outside` follows Blink's shapes, licensed under [Adobe's BSD license](crates\u002Ffagus-layout\u002FADOBE-SHAPES-LICENSE). The vertical orientation of\ncharacters and their classes for the spacing of East Asian text are taken from the Unicode Character Database, licensed under the [Unicode License V3](crates\u002Ffagus-layout\u002FUNICODE-LICENSE). The glyph outlines of\nApple's `hvgl` table (PingFang on macOS) are read as HarfBuzz reads them, under its [\"Old MIT\" license](crates\u002Ffagus-text\u002FHARFBUZZ-LICENSE).\nThe hyphenation dictionaries are Chromium's, each under the license listed in\n[crates\u002Ffagus-text\u002Fhyphenation\u002FLICENSE.txt](crates\u002Ffagus-text\u002Fhyphenation\u002FLICENSE.txt). The user\nagent style sheet follows the rendering section of the HTML Standard (WHATWG, BSD 3-Clause for\nportions in source code).\n\n[THIRD-PARTY-NOTICES](THIRD-PARTY-NOTICES) collects all of these with the licenses of the Rust\ncrates the binary is built from (`tools\u002Fnotices.sh`); it comes with every release and with the\nComposer package.\n","Fagus 是一个专为 PHP 和 Laravel 设计的无浏览器 HTML\u002FCSS 转 PDF 工具，基于 Rust 编写的原生渲染引擎，无需 Chrome、Puppeteer 或系统依赖。它精准复现 Chrome 打印行为，支持现代 CSS（Flex、Grid、Tailwind）、分页控制、运行页眉页脚及 PDF\u002FA-3、PDF\u002FUA 和 ZUGFeRD\u002FFactur-X 标准。性能优异，单页生成仅约 2.5 ms（热态），跨平台一致输出。适用于开票系统、财务报表、电子发票（如德国 ZUGFeRD、法国 Factur-X）、合规文档生成等对格式精度、可访问性与标准化要求高的后端场景。","2026-11-24 04:53:36","CREATED_QUERY"]