[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs:next":3},{"versions":4,"version":13,"nav":16,"path":18,"page":86},[5,10],{"name":6,"label":7,"prefix":8,"channel":9},"0.1","0.1.0 (latest)","","latest",{"name":11,"label":12,"prefix":11,"channel":11},"next","next (main)",{"name":11,"label":12,"prefix":11,"channel":11,"base":14,"ref":15},"\u002Fdocs\u002Fnext","main",[17,21,24,27,30,33,36,39,42,46,49,52,55,58,61,64,68,71,74,77,80,83],{"slug":18,"title":19,"group":20},"index","Overview","Guide",{"slug":22,"title":23,"group":20},"getting-started","Getting started",{"slug":25,"title":26,"group":20},"php","PHP API",{"slug":28,"title":29,"group":20},"laravel","Laravel",{"slug":31,"title":32,"group":20},"resources","Resources",{"slug":34,"title":35,"group":20},"deployment","Deployment",{"slug":37,"title":38,"group":20},"troubleshooting","Troubleshooting",{"slug":40,"title":41,"group":20},"ai-assistants","Docs for AI assistants",{"slug":43,"title":44,"group":45},"css","CSS reference","Reference",{"slug":47,"title":48,"group":45},"paged-media","Paged media",{"slug":50,"title":51,"group":45},"fonts","Fonts",{"slug":53,"title":54,"group":45},"extensions","Extensions",{"slug":56,"title":57,"group":45},"pdf","The PDF",{"slug":59,"title":60,"group":45},"cli","Command line",{"slug":62,"title":63,"group":45},"rust","Rust library",{"slug":65,"title":66,"group":67},"protocol","Worker protocol","Internals",{"slug":69,"title":70,"group":67},"releasing","Releasing",{"slug":72,"title":73,"group":67},"adr","Architecture decisions",{"slug":75,"title":76,"group":67,"parent":73},"adr\u002F0001-record-architecture-decisions","1. Record architecture decisions",{"slug":78,"title":79,"group":67,"parent":73},"adr\u002F0002-rust-and-fragmentation-in-layout","2. Rust core with fragmentation inside layout",{"slug":81,"title":82,"group":67,"parent":73},"adr\u002F0003-css-parsing-and-own-selector-matching","3. lightningcss for parsing, own selector matching and cascade",{"slug":84,"title":85,"group":67,"parent":73},"adr\u002F0004-extensions-only-where-css-has-no-way","4. Extensions only where CSS has no way",{"title":19,"seoTitle":87,"seoDescription":88,"html":89,"headings":90,"editUrl":106,"sourceUrl":107,"markdownUrl":108,"next":109},"Fagus documentation: HTML and CSS to PDF for PHP","Fagus turns HTML and CSS into PDF for PHP and Laravel, the way Chrome prints them, without a browser. Getting started, references and the PDF it writes.","\u003Ch1 id=\"fagus-documentation\">Fagus documentation\u003C\u002Fh1>\n\u003Cp>Fagus turns HTML and CSS into PDF for PHP and Laravel, the way Chrome prints them, without a\nbrowser. Start with \u003Ca href=\"\u002Fdocs\u002Fnext\u002Fgetting-started\">Getting started\u003C\u002Fa>; the other pages are references to look\nthings up in.\u003C\u002Fp>\n\u003Ch2 id=\"using-fagus\">Using Fagus\u003Ca class=\"f-doc-anchor\" href=\"#using-fagus\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fgetting-started\">Getting started\u003C\u002Fa>: requirements, installing the Composer package, the first\nPDF in PHP and in Laravel.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fphp\">PHP API\u003C\u002Fa>: documents, the PDF they render to, the engine, diagnostics and exceptions.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Flaravel\">Laravel\u003C\u002Fa>: the facade, Blade views, responses, disks, queues, Octane and the\nconfiguration.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fresources\">Resources\u003C\u002Fa>: where images, style sheets, fonts and frames come from, and what Fagus\nnever loads.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fdeployment\">Deployment\u003C\u002Fa>: Docker, Alpine, servers without access to GitHub, binaries of your\nown, worker processes, speed and memory.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Ftroubleshooting\">Troubleshooting\u003C\u002Fa>: error messages, diagnostics, differences from Chrome, and\nmoving from Dompdf, mPDF, Browsershot or Snappy.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fai-assistants\">Docs for AI assistants\u003C\u002Fa>: \u003Ccode>llms.txt\u003C\u002Fcode> and an MCP server for coding assistants.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"writing-documents\">Writing documents\u003Ca class=\"f-doc-anchor\" href=\"#writing-documents\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fcss\">CSS reference\u003C\u002Fa>: what Fagus supports, what it does differently from Chrome and what it\ndoes not support.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fpaged-media\">Paged media\u003C\u002Fa>: page sizes and margins, headers and footers, page numbers, page\nbreaks, tables across pages, tables of contents, print shop marks.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Ffonts\">Fonts\u003C\u002Fa>: the built-in font, font directories, \u003Ccode>@font-face\u003C\u002Fcode>, system fonts, fallback,\nOpenType features and languages.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fextensions\">Extensions\u003C\u002Fa>: what Fagus adds where CSS has no way, such as carry-over rows in\ntables that break across pages.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"the-pdf\">The PDF\u003Ca class=\"f-doc-anchor\" href=\"#the-pdf\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fpdf\">The PDF\u003C\u002Fa>: metadata, links and the outline, tagged and accessible PDF (PDF\u002FUA), PDF\u002FA,\nattachments, electronic invoices (ZUGFeRD, Factur-X, XRechnung), reproducible output.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"without-php\">Without PHP\u003Ca class=\"f-doc-anchor\" href=\"#without-php\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fcli\">Command line\u003C\u002Fa>: the \u003Ccode>fagus\u003C\u002Fcode> binary.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Frust\">Rust library\u003C\u002Fa>: the engine as a Rust crate.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fprotocol\">Worker protocol\u003C\u002Fa>: how PHP talks to the binary.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"the-project\">The project\u003Ca class=\"f-doc-anchor\" href=\"#the-project\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Freleasing\">Releasing\u003C\u002Fa>: how a release reaches GitHub and Composer.\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"\u002Fdocs\u002Fnext\u002Fadr\">Architecture decision records\u003C\u002Fa>: why Fagus is built the way it is.\u003C\u002Fli>\n\u003C\u002Ful>\n",[91,95,98,100,103],{"id":92,"text":93,"level":94},"using-fagus","Using Fagus",2,{"id":96,"text":97,"level":94},"writing-documents","Writing documents",{"id":99,"text":57,"level":94},"the-pdf",{"id":101,"text":102,"level":94},"without-php","Without PHP",{"id":104,"text":105,"level":94},"the-project","The project","https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Fedit\u002Fmain\u002Fdocs\u002FREADME.md","https:\u002F\u002Fgithub.com\u002Fnforst\u002Ffagus\u002Fblob\u002Fmain\u002Fdocs\u002FREADME.md","\u002Fdocs\u002Fnext\u002Findex.md",{"slug":22,"title":23}]