[{"data":1,"prerenderedAt":888},["ShallowReactive",2],{"navigation_docs":3,"-guide-options-frontmatter":73,"-guide-options-frontmatter-surround":883},[4,26,57],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":25},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Usage","\u002Fgetting-started\u002Fusage","1.getting-started\u002F3.usage","i-lucide-play",false,{"title":27,"icon":28,"path":29,"stem":30,"children":31,"page":25},"Guide","i-lucide-book-marked","\u002Fguide","2.guide",[32,37,42,47,52],{"title":33,"path":34,"stem":35,"icon":36},"Options and frontmatter","\u002Fguide\u002Foptions-frontmatter","2.guide\u002F1.options-frontmatter","i-lucide-sliders-horizontal",{"title":38,"path":39,"stem":40,"icon":41},"Locale files","\u002Fguide\u002Flocale-files","2.guide\u002F2.locale-files","i-lucide-languages",{"title":43,"path":44,"stem":45,"icon":46},"Plugins","\u002Fguide\u002Fplugins","2.guide\u002F3.plugins","i-lucide-puzzle",{"title":48,"path":49,"stem":50,"icon":51},"Custom components","\u002Fguide\u002Fcustom-components","2.guide\u002F4.custom-components","i-lucide-component",{"title":53,"path":54,"stem":55,"icon":56},"Browser preview","\u002Fguide\u002Fbrowser-preview","2.guide\u002F5.browser-preview","i-lucide-monitor",{"title":58,"icon":59,"path":60,"stem":61,"children":62,"page":25},"Reference","i-lucide-book-open","\u002Freference","3.reference",[63,68],{"title":64,"path":65,"stem":66,"icon":67},"Syntax matrix","\u002Freference\u002Fsyntax-matrix","3.reference\u002F1.syntax-matrix","i-lucide-table",{"title":69,"path":70,"stem":71,"icon":72},"Host options","\u002Freference\u002Fhost-options","3.reference\u002F2.host-options","i-lucide-settings",{"id":74,"title":33,"body":75,"description":876,"extension":877,"links":878,"meta":879,"navigation":880,"path":34,"seo":881,"stem":35,"__hash__":882},"docs\u002F2.guide\u002F1.options-frontmatter.md",{"type":76,"value":77,"toc":871},"minimark",[78,94,263,281,286,296,302,312,698,722,741,850,867],[79,80,81,85,86,89,90,93],"p",{},[82,83,84],"code",{},"renderPdf()",", ",[82,87,88],{},"createPdfRenderer()",", and the Node helpers accept ",[82,91,92],{},"PdfRendererOptions",":",[95,96,97,113],"table",{},[98,99,100],"thead",{},[101,102,103,107,110],"tr",{},[104,105,106],"th",{},"Option",[104,108,109],{},"Type",[104,111,112],{},"Description",[114,115,116,140,155,170,185,200,218,245],"tbody",{},[101,117,118,124,129],{},[119,120,121],"td",{},[82,122,123],{},"pdf",[119,125,126],{},[82,127,128],{},"PdfPageConfig",[119,130,131,132,135,136,139],{},"Page size, margins, typography, metadata. String ",[82,133,134],{},"header"," \u002F ",[82,137,138],{},"footer"," compile into chrome.",[101,141,142,147,152],{},[119,143,144],{},[82,145,146],{},"chrome",[119,148,149],{},[82,150,151],{},"PdfChrome",[119,153,154],{},"Page header, footer, and watermark elements. Replaces compiled string templates.",[101,156,157,162,167],{},[119,158,159],{},[82,160,161],{},"visuals",[119,163,164],{},[82,165,166],{},"PdfVisuals",[119,168,169],{},"Print faces and table \u002F quote \u002F image map",[101,171,172,177,182],{},[119,173,174],{},[82,175,176],{},"plugins",[119,178,179],{},[82,180,181],{},"ComarkPlugin[]",[119,183,184],{},"Parser plugins (math, mermaid, binding, …)",[101,186,187,192,197],{},[119,188,189],{},[82,190,191],{},"components",[119,193,194],{},[82,195,196],{},"Record\u003Cstring, JasyComponentFn>",[119,198,199],{},"Custom jasy component factories by tag name",[101,201,202,207,212],{},[119,203,204],{},[82,205,206],{},"fonts",[119,208,209],{},[82,210,211],{},"Record\u003Cstring, Uint8Array | FontFaces>",[119,213,214,215],{},"Font paths or bytes; registered with ",[82,216,217],{},"addFont",[101,219,220,225,230],{},[119,221,222],{},[82,223,224],{},"data",[119,226,227],{},[82,228,229],{},"Record\u003Cstring, unknown>",[119,231,232,233,85,236,85,239,85,242],{},"Binding data for ",[82,234,235],{},"{{ }}",[82,237,238],{},":attr",[82,240,241],{},"::if",[82,243,244],{},"::for",[101,246,247,252,257],{},[119,248,249],{},[82,250,251],{},"each",[119,253,254],{},[82,255,256],{},"Record\u003Cstring, unknown>[]",[119,258,259,260,262],{},"Render the body once per entry, with a page break between entries. Each entry is merged over ",[82,261,224],{},".",[79,264,265,266,269,270,85,273,276,277,280],{},"Also accepts Comark ",[82,267,268],{},"ParserOptions"," (",[82,271,272],{},"autoClose",[82,274,275],{},"registerDefaultPlugins",", …). Autolinks come from the default ",[82,278,279],{},"linkify"," plugin.",[282,283,285],"h2",{"id":284},"merge-order","Merge order",[79,287,288,289,292,293,262],{},"Last write wins: ",[82,290,291],{},"frontmatter.pdf"," → ",[82,294,295],{},"options.pdf",[282,297,299,301],{"id":298},"pdf-frontmatter",[82,300,123],{}," \u002F frontmatter",[79,303,304,305,307,308,311],{},"Set defaults in code via ",[82,306,295],{},", or per document under a ",[82,309,310],{},"pdf:"," frontmatter block (same keys):",[313,314,319],"pre",{"className":315,"code":316,"language":317,"meta":318,"style":318},"language-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","---\npdf:\n  format: A4          # page size (A4, Letter, A3, A5, …); ignored when width + height are set\n  width: 50mm         # custom page width (pair with height)\n  height: 65mm        # custom page height (pair with width)\n  orientation: portrait  # portrait | landscape\n  margin: 20mm        # length string, points number, or { top, right, bottom, left }\n  gap: 10             # space between block children (points)\n  justify: start      # page main-axis alignment\n  align: start        # page cross-axis alignment\n  font: Helvetica     # document default font\n  fontSize: 11        # document default text size (points)\n  color: \"#1b2433\"    # document default text color\n  lineHeight: 1.5     # document default line-height\n  textAlign: left     # document default text align\n  title: \"My Report\"  # PDF metadata + accessibility title\n  author: \"Acme\"\n  lang: en-US\n  accessible: false\n  onOverflow: error   # error | warn | ignore\n  header: \"My Report\" # compiles to chrome.header; tokens: {{ page }}, {{ totalPages }}\n  headerLeft: \"Draft\"\n  headerRight: \"Confidential\"\n  footer: \"Page {{ page }} of {{ totalPages }}\"\n  footerLeft: \"Company Name\"\n  footerRight: \"2026\"\n---\n","yaml","",[82,320,321,330,340,356,370,384,398,412,427,441,454,468,482,502,516,530,548,564,575,587,601,618,633,648,663,678,693],{"__ignoreMap":318},[322,323,326],"span",{"class":324,"line":325},"line",1,[322,327,329],{"class":328},"sBMFI","---\n",[322,331,333,336],{"class":324,"line":332},2,[322,334,123],{"class":335},"swJcz",[322,337,339],{"class":338},"sMK4o",":\n",[322,341,343,346,348,352],{"class":324,"line":342},3,[322,344,345],{"class":335},"  format",[322,347,93],{"class":338},[322,349,351],{"class":350},"sfazB"," A4",[322,353,355],{"class":354},"sHwdD","          # page size (A4, Letter, A3, A5, …); ignored when width + height are set\n",[322,357,359,362,364,367],{"class":324,"line":358},4,[322,360,361],{"class":335},"  width",[322,363,93],{"class":338},[322,365,366],{"class":350}," 50mm",[322,368,369],{"class":354},"         # custom page width (pair with height)\n",[322,371,373,376,378,381],{"class":324,"line":372},5,[322,374,375],{"class":335},"  height",[322,377,93],{"class":338},[322,379,380],{"class":350}," 65mm",[322,382,383],{"class":354},"        # custom page height (pair with width)\n",[322,385,387,390,392,395],{"class":324,"line":386},6,[322,388,389],{"class":335},"  orientation",[322,391,93],{"class":338},[322,393,394],{"class":350}," portrait",[322,396,397],{"class":354},"  # portrait | landscape\n",[322,399,401,404,406,409],{"class":324,"line":400},7,[322,402,403],{"class":335},"  margin",[322,405,93],{"class":338},[322,407,408],{"class":350}," 20mm",[322,410,411],{"class":354},"        # length string, points number, or { top, right, bottom, left }\n",[322,413,415,418,420,424],{"class":324,"line":414},8,[322,416,417],{"class":335},"  gap",[322,419,93],{"class":338},[322,421,423],{"class":422},"sbssI"," 10",[322,425,426],{"class":354},"             # space between block children (points)\n",[322,428,430,433,435,438],{"class":324,"line":429},9,[322,431,432],{"class":335},"  justify",[322,434,93],{"class":338},[322,436,437],{"class":350}," start",[322,439,440],{"class":354},"      # page main-axis alignment\n",[322,442,444,447,449,451],{"class":324,"line":443},10,[322,445,446],{"class":335},"  align",[322,448,93],{"class":338},[322,450,437],{"class":350},[322,452,453],{"class":354},"        # page cross-axis alignment\n",[322,455,457,460,462,465],{"class":324,"line":456},11,[322,458,459],{"class":335},"  font",[322,461,93],{"class":338},[322,463,464],{"class":350}," Helvetica",[322,466,467],{"class":354},"     # document default font\n",[322,469,471,474,476,479],{"class":324,"line":470},12,[322,472,473],{"class":335},"  fontSize",[322,475,93],{"class":338},[322,477,478],{"class":422}," 11",[322,480,481],{"class":354},"        # document default text size (points)\n",[322,483,485,488,490,493,496,499],{"class":324,"line":484},13,[322,486,487],{"class":335},"  color",[322,489,93],{"class":338},[322,491,492],{"class":338}," \"",[322,494,495],{"class":350},"#1b2433",[322,497,498],{"class":338},"\"",[322,500,501],{"class":354},"    # document default text color\n",[322,503,505,508,510,513],{"class":324,"line":504},14,[322,506,507],{"class":335},"  lineHeight",[322,509,93],{"class":338},[322,511,512],{"class":422}," 1.5",[322,514,515],{"class":354},"     # document default line-height\n",[322,517,519,522,524,527],{"class":324,"line":518},15,[322,520,521],{"class":335},"  textAlign",[322,523,93],{"class":338},[322,525,526],{"class":350}," left",[322,528,529],{"class":354},"     # document default text align\n",[322,531,533,536,538,540,543,545],{"class":324,"line":532},16,[322,534,535],{"class":335},"  title",[322,537,93],{"class":338},[322,539,492],{"class":338},[322,541,542],{"class":350},"My Report",[322,544,498],{"class":338},[322,546,547],{"class":354},"  # PDF metadata + accessibility title\n",[322,549,551,554,556,558,561],{"class":324,"line":550},17,[322,552,553],{"class":335},"  author",[322,555,93],{"class":338},[322,557,492],{"class":338},[322,559,560],{"class":350},"Acme",[322,562,563],{"class":338},"\"\n",[322,565,567,570,572],{"class":324,"line":566},18,[322,568,569],{"class":335},"  lang",[322,571,93],{"class":338},[322,573,574],{"class":350}," en-US\n",[322,576,578,581,583],{"class":324,"line":577},19,[322,579,580],{"class":335},"  accessible",[322,582,93],{"class":338},[322,584,586],{"class":585},"sfNiH"," false\n",[322,588,590,593,595,598],{"class":324,"line":589},20,[322,591,592],{"class":335},"  onOverflow",[322,594,93],{"class":338},[322,596,597],{"class":350}," error",[322,599,600],{"class":354},"   # error | warn | ignore\n",[322,602,604,607,609,611,613,615],{"class":324,"line":603},21,[322,605,606],{"class":335},"  header",[322,608,93],{"class":338},[322,610,492],{"class":338},[322,612,542],{"class":350},[322,614,498],{"class":338},[322,616,617],{"class":354}," # compiles to chrome.header; tokens: {{ page }}, {{ totalPages }}\n",[322,619,621,624,626,628,631],{"class":324,"line":620},22,[322,622,623],{"class":335},"  headerLeft",[322,625,93],{"class":338},[322,627,492],{"class":338},[322,629,630],{"class":350},"Draft",[322,632,563],{"class":338},[322,634,636,639,641,643,646],{"class":324,"line":635},23,[322,637,638],{"class":335},"  headerRight",[322,640,93],{"class":338},[322,642,492],{"class":338},[322,644,645],{"class":350},"Confidential",[322,647,563],{"class":338},[322,649,651,654,656,658,661],{"class":324,"line":650},24,[322,652,653],{"class":335},"  footer",[322,655,93],{"class":338},[322,657,492],{"class":338},[322,659,660],{"class":350},"Page {{ page }} of {{ totalPages }}",[322,662,563],{"class":338},[322,664,666,669,671,673,676],{"class":324,"line":665},25,[322,667,668],{"class":335},"  footerLeft",[322,670,93],{"class":338},[322,672,492],{"class":338},[322,674,675],{"class":350},"Company Name",[322,677,563],{"class":338},[322,679,681,684,686,688,691],{"class":324,"line":680},26,[322,682,683],{"class":335},"  footerRight",[322,685,93],{"class":338},[322,687,492],{"class":338},[322,689,690],{"class":350},"2026",[322,692,563],{"class":338},[322,694,696],{"class":324,"line":695},27,[322,697,329],{"class":328},[79,699,700,703,704,706,707,135,710,713,714,717,718,721],{},[82,701,702],{},"margin"," is the paper inset only. Header and footer sit inside that box and take their own height. Do not add chrome height into ",[82,705,702],{},". Pass ",[82,708,709],{},"chrome.header",[82,711,712],{},"chrome.footer"," to replace the compiled strings. Pass ",[82,715,716],{},"chrome.watermark"," as a ",[82,719,720],{},"Positioned"," overlay; it is not part of the header band.",[79,723,724,725,85,728,85,731,85,734,85,737,740],{},"Length values accept ",[82,726,727],{},"mm",[82,729,730],{},"cm",[82,732,733],{},"in",[82,735,736],{},"pt",[82,738,739],{},"px",", or a bare number (treated as points).",[313,742,746],{"className":743,"code":744,"language":745,"meta":318,"style":318},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const bytes = await renderPdf(markdown, {\n  pdf: {\n    format: 'Letter',\n    margin: '25mm',\n    footer: 'Page {{ page }} of {{ totalPages }}',\n  },\n})\n","ts",[82,747,748,778,787,806,822,837,842],{"__ignoreMap":318},[322,749,750,754,758,761,765,769,772,775],{"class":324,"line":325},[322,751,753],{"class":752},"spNyl","const",[322,755,757],{"class":756},"sTEyZ"," bytes ",[322,759,760],{"class":338},"=",[322,762,764],{"class":763},"s7zQu"," await",[322,766,768],{"class":767},"s2Zo4"," renderPdf",[322,770,771],{"class":756},"(markdown",[322,773,774],{"class":338},",",[322,776,777],{"class":338}," {\n",[322,779,780,783,785],{"class":324,"line":332},[322,781,782],{"class":335},"  pdf",[322,784,93],{"class":338},[322,786,777],{"class":338},[322,788,789,792,794,797,800,803],{"class":324,"line":342},[322,790,791],{"class":335},"    format",[322,793,93],{"class":338},[322,795,796],{"class":338}," '",[322,798,799],{"class":350},"Letter",[322,801,802],{"class":338},"'",[322,804,805],{"class":338},",\n",[322,807,808,811,813,815,818,820],{"class":324,"line":358},[322,809,810],{"class":335},"    margin",[322,812,93],{"class":338},[322,814,796],{"class":338},[322,816,817],{"class":350},"25mm",[322,819,802],{"class":338},[322,821,805],{"class":338},[322,823,824,827,829,831,833,835],{"class":324,"line":372},[322,825,826],{"class":335},"    footer",[322,828,93],{"class":338},[322,830,796],{"class":338},[322,832,660],{"class":350},[322,834,802],{"class":338},[322,836,805],{"class":338},[322,838,839],{"class":324,"line":386},[322,840,841],{"class":338},"  },\n",[322,843,844,847],{"class":324,"line":400},[322,845,846],{"class":338},"}",[322,848,849],{"class":756},")\n",[851,852,853,854,857,858,861,862,135,864,866],"note",{},"Header and footer strings support ",[82,855,856],{},"{{ page }}"," and ",[82,859,860],{},"{{ totalPages }}"," tokens. Pass ",[82,863,709],{},[82,865,712],{}," to replace the compiled strings with jasy elements.",[868,869,870],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sfNiH, html code.shiki .sfNiH{--shiki-light:#FF5370;--shiki-default:#FF9CAC;--shiki-dark:#FF9CAC}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}",{"title":318,"searchDepth":332,"depth":332,"links":872},[873,874],{"id":284,"depth":332,"text":285},{"id":298,"depth":332,"text":875},"pdf \u002F frontmatter","PdfRendererOptions, pdf frontmatter keys, merge order, and page chrome.","md",null,{},{"icon":36},{"title":33,"description":876},"xdl_iEvUvtqd_GIl_fOMosmWDgk_t65Bx6szdprQG8E",[884,886],{"title":21,"path":22,"stem":23,"description":885,"icon":24,"children":-1},"Render PDF bytes with renderPdf, export files on Node, and preview in the browser.",{"title":38,"path":39,"stem":40,"description":887,"icon":41,"children":-1},"One markdown file per locale, locale-specific bindings, and what to avoid.",1794911899847]