[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"docs:api\u002FQuittio\u002FCore\u002FPdf\u002FRenderers\u002FFagusRenderer":3},{"versions":4,"version":32,"nav":34,"path":115,"kind":116,"page":117},[5,10,13,16,18,20,22,24,26,28,30],{"name":6,"label":7,"prefix":8,"channel":9},"1.1","1.1 (latest)","","latest",{"name":11,"label":12,"prefix":11,"channel":11},"next","next (unreleased)",{"name":14,"label":14,"prefix":14,"channel":15},"1.0","old",{"name":17,"label":17,"prefix":17,"channel":15},"0.8",{"name":19,"label":19,"prefix":19,"channel":15},"0.7",{"name":21,"label":21,"prefix":21,"channel":15},"0.6",{"name":23,"label":23,"prefix":23,"channel":15},"0.5",{"name":25,"label":25,"prefix":25,"channel":15},"0.4",{"name":27,"label":27,"prefix":27,"channel":15},"0.3",{"name":29,"label":29,"prefix":29,"channel":15},"0.2",{"name":31,"label":31,"prefix":31,"channel":15},"0.1",{"name":6,"label":7,"prefix":8,"channel":9,"base":33},"\u002Fdocs",[35,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,97,100,103,106,109,112],{"slug":36,"title":37,"preview":38},"index","Home",false,{"slug":40,"title":41,"preview":38},"getting-started","Getting started",{"slug":43,"title":44,"preview":38},"concepts","E-invoicing basics",{"slug":46,"title":47,"preview":38},"examples","Examples",{"slug":49,"title":50,"preview":38},"building-invoices","Building invoices",{"slug":52,"title":53,"preview":38},"formats","Formats and profiles",{"slug":55,"title":56,"preview":38},"validation","Validation",{"slug":58,"title":59,"preview":38},"templates","Templates and design",{"slug":61,"title":62,"preview":38},"documents","Quotes and other documents",{"slug":64,"title":65,"preview":38},"reading","Reading incoming invoices",{"slug":67,"title":68,"preview":38},"laravel","Laravel integration",{"slug":70,"title":71,"preview":38},"configuration","Configuration",{"slug":73,"title":74,"preview":38},"commands","Artisan commands",{"slug":76,"title":77,"preview":38},"testing","Testing",{"slug":79,"title":80,"preview":38},"country-packs","Country packs",{"slug":82,"title":83,"parent":80,"preview":38},"country-at","Austria",{"slug":85,"title":86,"parent":80,"preview":38},"country-be","Belgium",{"slug":88,"title":89,"parent":80,"preview":38},"country-ch","Switzerland",{"slug":91,"title":92,"parent":80,"preview":38},"country-fr","France",{"slug":94,"title":95,"preview":96},"managed","Managed layer (preview)",true,{"slug":98,"title":99,"preview":38},"troubleshooting","Troubleshooting",{"slug":101,"title":102,"preview":38},"faq","FAQ",{"slug":104,"title":105,"preview":38},"compatibility","Versioning and compatibility",{"slug":107,"title":108,"preview":38},"upgrading","Upgrading to 1.0",{"slug":110,"title":111,"preview":38},"field-reference","Field reference",{"slug":113,"title":114,"preview":38},"ai","AI assistants","api\u002FQuittio\u002FCore\u002FPdf\u002FRenderers\u002FFagusRenderer","api",{"title":118,"description":119,"html":120,"headings":121},"FagusRenderer","Optional renderer: HTML\u002FCSS to PDF\u002FA-3b with Fagus (package nforst\u002Ffagus), an engine for CSS Paged Media that runs as a binary next to PHP.","\u003Cp class=\"q-api-crumbs\">\u003Ca href=\"\u002Fdocs\u002Fapi\">API reference\u003C\u002Fa> \u002F \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\">Quittio\u003C\u002Fa> \\ \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\">Core\u003C\u002Fa> \\ \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FPdf\">Pdf\u003C\u002Fa> \\ \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FPdf\u002FRenderers\">Renderers\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch1>FagusRenderer\u003C\u002Fh1>\n\u003Cp class=\"q-api-facts\">\u003Cspan class=\"q-api-badge q-api-badge-kind\">final class\u003C\u002Fspan> in \u003Cspan class=\"q-api-badge\">quittio\u002Fcore\u003C\u002Fspan> · implements \u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FPdf\u002FPdfRenderer\">\u003Ccode>PdfRenderer\u003C\u002Fcode>\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp class=\"q-api-name\">\u003Ccode>Quittio\\Core\\Pdf\\Renderers\\FagusRenderer\u003C\u002Fcode> · \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FQuittio\u002Fquittio\u002Fblob\u002Fv1.1.0\u002Fpackages\u002Fcore\u002Fsrc\u002FPdf\u002FRenderers\u002FFagusRenderer.php#L32\">Source\u003C\u002Fa>\u003C\u002Fp>\n\n\u003Cp class=\"q-doc-lead\">Optional renderer: HTML\u002FCSS to PDF\u002FA-3b with Fagus (package nforst\u002Ffagus), an engine for CSS Paged Media that runs as a binary next to PHP.\u003C\u002Fp>\n\u003Cp>Templates stay written for mPDF: their mPDF markup (page headers and footers, page breaks,\nnamed pages, positioned elements, watermark, carry-over rows) is translated into standard CSS\nbefore rendering (\u003Ccode>MpdfMarkupConverter\u003C\u002Fcode>). The fonts are the same as for \u003Ccode>MpdfRenderer\u003C\u002Fcode>:\nthe mPDF family names (geist, geistmedium, inter, liberationsans and those of $fonts) map to\nthe font files. PDF\u002FA, the embedded XML and its Factur-X metadata are written by Fagus.\u003C\u002Fp>\n\u003Cp>Like mPDF, Fagus never loads anything over the network. It reads no files by itself either:\nonly images that the HTML names by a local path (the logo prepared by LogoCache) are handed\nover, and only if they are images.\u003C\u002Fp>\n\n\u003Ch2 id=\"methods\">Methods\u003Ca class=\"q-doc-anchor\" href=\"#methods\" aria-label=\"Link to this section\">#\u003C\u002Fa>\u003C\u002Fh2>\n\u003Ctable class=\"q-doc-table q-stack-table q-api-summary\">\u003Cthead>\u003Ctr>\u003Cth>Method\u003C\u002Fth>\u003Cth>Description\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\u003Ctd>\u003Ca href=\"#method-__construct\">\u003Ccode>->__construct()\u003C\u002Fcode>\u003C\u002Fa>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ca href=\"#method-render\">\u003Ccode>->render()\u003C\u002Fcode>\u003C\u002Fa>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">Renders the HTML with Fagus and returns the PDF; with $request-&gt;pdfa as PDF\u002FA-3b, with the embedded XML as ZUGFeRD\u002FFactur-X (PDF\u002FA-3b, the profile from the conformance level). Throws a PdfException when Fagus fails.\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ca href=\"#method-supportsEmbedding\">\u003Ccode>->supportsEmbedding()\u003C\u002Fcode>\u003C\u002Fa>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Csection class=\"q-api-member\" id=\"method-__construct\">\n\u003Ch3>\u003Ccode>__construct()\u003C\u002Fcode>\u003Ca class=\"q-doc-anchor\" href=\"#method-__construct\" aria-label=\"Link to this method\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cdiv class=\"q-doc-code q-doc-code-plain\">\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">public\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> function\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> __construct\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#E6EDF3\">    array&#x3C;string, array&#x3C;string, string>> $fonts \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> [],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#E6EDF3\">    list&#x3C;string> $fontDirectories \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> [],\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $defaultFont \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#A5D6FF\"> 'geist'\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    ?string\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $binary \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> null\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:6ch;text-indent:-6ch\">\u003Cspan style=\"color:#FF7B72\">    float\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $timeout \u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">=\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\"> 60.0\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#E6EDF3\">)\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\n\n\u003Ctable class=\"q-doc-table q-stack-table\">\u003Cthead>\u003Ctr>\u003Cth>Parameter\u003C\u002Fth>\u003Cth>Type\u003C\u002Fth>\u003Cth>Description\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\u003Ctd>\u003Ccode>$fonts\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>array&lt;string, array&lt;string, string&gt;&gt;\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>[]\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">additional fonts: family =&gt; [R =&gt; file, B =&gt; file, I =&gt; file, BI =&gt; file]\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$fontDirectories\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>list&lt;string&gt;\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>[]\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">searched first, before the bundled Geist, Inter and Liberation Sans; directories that do not exist are skipped\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$defaultFont\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>string\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>'geist'\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$binary\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>?string\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>null\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">path of the fagus binary; null = FAGUS_BINARY, the binary installed with the package or fagus on the PATH\u003C\u002Ftd>\u003C\u002Ftr>\n\u003Ctr>\u003Ctd>\u003Ccode>$timeout\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>float\u003C\u002Fcode>\u003Cspan class=\"q-api-default\"> = \u003Ccode>60.0\u003C\u002Fcode>\u003C\u002Fspan>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">seconds to wait for each answer of the Fagus worker\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003C\u002Fsection>\n\u003Csection class=\"q-api-member\" id=\"method-render\">\n\u003Ch3>\u003Ccode>render()\u003C\u002Fcode>\u003Ca class=\"q-doc-anchor\" href=\"#method-render\" aria-label=\"Link to this method\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cdiv class=\"q-doc-code q-doc-code-plain\">\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">public\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> function\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\"> render\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">(\u003C\u002Fspan>\u003Cspan style=\"color:#79C0FF\">RenderRequest\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\"> $request)\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">:\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> string\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\n\u003Cp>Renders the HTML with Fagus and returns the PDF; with $request-&gt;pdfa as PDF\u002FA-3b, with the embedded XML as ZUGFeRD\u002FFactur-X (PDF\u002FA-3b, the profile from the conformance level). Throws a PdfException when Fagus fails.\u003C\u002Fp>\n\n\u003Ctable class=\"q-doc-table q-stack-table\">\u003Cthead>\u003Ctr>\u003Cth>Parameter\u003C\u002Fth>\u003Cth>Type\u003C\u002Fth>\u003Cth>Description\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\n\u003Ctr>\u003Ctd>\u003Ccode>$request\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Type\">\u003Ccode>\u003Ca href=\"\u002Fdocs\u002Fapi\u002FQuittio\u002FCore\u002FPdf\u002FRenderRequest\">RenderRequest\u003C\u002Fa>\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd data-label=\"Description\">\u003C\u002Ftd>\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Cdl class=\"q-api-dl\">\n\u003Cdt>Returns\u003C\u002Fdt>\u003Cdd>\u003Ccode>string\u003C\u002Fcode>\u003C\u002Fdd>\n\u003C\u002Fdl>\n\u003C\u002Fsection>\n\u003Csection class=\"q-api-member\" id=\"method-supportsEmbedding\">\n\u003Ch3>\u003Ccode>supportsEmbedding()\u003C\u002Fcode>\u003Ca class=\"q-doc-anchor\" href=\"#method-supportsEmbedding\" aria-label=\"Link to this method\">#\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cdiv class=\"q-doc-code q-doc-code-plain\">\u003Cpre class=\"shiki github-dark-default\" style=\"background-color:#0d1117;color:#e6edf3\" tabindex=\"0\">\u003Ccode>\u003Cspan class=\"line\" style=\"padding-left:2ch;text-indent:-2ch\">\u003Cspan style=\"color:#FF7B72\">public\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> function\u003C\u002Fspan>\u003Cspan style=\"color:#D2A8FF\"> supportsEmbedding\u003C\u002Fspan>\u003Cspan style=\"color:#E6EDF3\">()\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\">:\u003C\u002Fspan>\u003Cspan style=\"color:#FF7B72\"> bool\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\u003C\u002Fdiv>\n\n\n\u003Cdl class=\"q-api-dl\">\n\u003Cdt>Returns\u003C\u002Fdt>\u003Cdd>\u003Ccode>bool\u003C\u002Fcode>\u003C\u002Fdd>\n\u003C\u002Fdl>\n\u003C\u002Fsection>",[122],{"id":123,"text":124,"level":125},"methods","Methods",2]