{
  "id": "task_libraries:html-to-pdf/javascript",
  "path": "/exapedia/javascript-html-to-pdf-libraries",
  "template": {
    "id": "task_libraries",
    "version": 4
  },
  "title": "JavaScript HTML to PDF libraries",
  "answer": [
    {
      "t": "text",
      "text": "JavaScript HTML to PDF libraries turn a web page or an HTML element into a PDF file. A headless browser prints the page with its print CSS, while an in-page converter draws the element onto a canvas or a PDF document. These libraries produce the receipts, statements, certificates, and archived web pages that apps save or send as PDFs."
    }
  ],
  "breadcrumb": [
    {
      "label": "Tools"
    },
    {
      "label": "JavaScript HTML to PDF libraries"
    }
  ],
  "sections": [
    {
      "id": "libraries_popularity",
      "anchor": "popularity",
      "heading": "Popularity",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Monthly downloads",
            "Stars",
            "Last release",
            "License"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#playwright-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F138"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#puppeteer-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F157"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jspdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F176"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#electron",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F194"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#webdriverio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F213"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#chrome-remote-interface",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F228"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#selenium-webdriver",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F247"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#html-pdf-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F262"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            ]
          ],
          "variant": "pop",
          "caption": [
            {
              "t": "text",
              "text": "Downloads: "
            },
            {
              "t": "text",
              "text": "npm"
            },
            {
              "t": "text",
              "text": ", last thirty days. Stars and releases: GitHub. Amber: no release in over a year."
            }
          ]
        }
      ],
      "note": [
        {
          "t": "link",
          "href": "#playwright",
          "label": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ]
        },
        {
          "t": "text",
          "text": " has the most monthly downloads in this comparison, at "
        },
        {
          "t": "fact",
          "fact": "F135"
        },
        {
          "t": "text",
          "text": "."
        }
      ]
    },
    {
      "id": "libraries_capabilities",
      "anchor": "capabilities",
      "heading": "Capabilities",
      "blocks": [
        {
          "b": "table",
          "columns": [
            "Library",
            "Accepts a DOM element",
            "HTML header/footer templates",
            "Page-range selection"
          ],
          "rows": [
            [
              [
                {
                  "t": "link",
                  "href": "#playwright-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F134"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F144"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F145"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F146"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#puppeteer-core",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F153"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F163"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F164"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F165"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#jspdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F172"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F180"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F181"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F182"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#electron",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F190"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F200"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F201"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F202"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#webdriverio",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F209"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F219"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F220"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F221"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#chrome-remote-interface",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F224"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F234"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F235"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F236"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#selenium-webdriver",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F243"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F253"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F254"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F255"
                }
              ]
            ],
            [
              [
                {
                  "t": "link",
                  "href": "#html-pdf-js",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F258"
                    }
                  ]
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F266"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F267"
                }
              ],
              [
                {
                  "t": "fact",
                  "fact": "F268"
                }
              ]
            ]
          ],
          "variant": "cap"
        }
      ]
    },
    {
      "id": "libraries_entries",
      "anchor": "libraries",
      "heading": "Libraries",
      "blocks": [
        {
          "b": "entry",
          "anchor": "playwright-core",
          "name": [
            {
              "t": "fact",
              "fact": "F134"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/microsoft/playwright"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/playwright-core"
            },
            {
              "label": "Docs",
              "href": "https://playwright.dev/docs/api/class-page#page-pdf"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F276"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F135"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F143"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F137"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F136"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://playwright.dev/docs/api/class-page#page-pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F277"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F278"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F279"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F280"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F281"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F282"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F151"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F152"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/executeautomation/mcp-playwright",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F151"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async execute(args: any, context: ToolContext): Promise<ToolResponse> {\n  return this.safeExecute(context, async (page) => {\n    const filename = args.filename || 'page.pdf';\n    const options = {\n      path: path.resolve(args.outputPath || '.', filename),\n      format: args.format || 'A4',\n      printBackground: args.printBackground !== false,\n      margin: args.margin || {\n        top: '1cm',\n        right: '1cm',\n        bottom: '1cm',\n        left: '1cm'\n      }\n    };\n\n    await page.pdf(options);\n    return createSuccessResponse(`Saved page as PDF: ${options.path}`);\n  });\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/executeautomation/mcp-playwright/blob/2349c2891e7c499c8c07b7d78c7f3fb4c797a1da/src/tools/browser/output.ts#L12-L30",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F150"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=playwright-core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F134"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { chromium } from 'playwright-core';\n\nconst browser = await chromium.launch({ channel: 'chrome', headless: true });\nconst page = await browser.newPage();\nawait page.setContent('<h1>Hello</h1>');\nawait page.pdf({ path: 'output.pdf' });\nawait browser.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://playwright.dev/docs/api/class-page#page-pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "class-page"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F139"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "puppeteer-core",
          "name": [
            {
              "t": "fact",
              "fact": "F153"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/puppeteer/puppeteer"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/puppeteer-core"
            },
            {
              "label": "Docs",
              "href": "https://pptr.dev/api/puppeteer.page.pdf"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F283"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F154"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F162"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F156"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F155"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://pptr.dev/api/puppeteer.page.pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F153"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F284"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F285"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F286"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F287"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F288"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F289"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F290"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F291"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F170"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F171"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/marp-team/marp-cli",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F170"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "private async convertFileToPDF(\n  tpl: TemplateResult,\n  file: File,\n  { postprocess = true }: ConvertPDFOption = {}\n): Promise<File> {\n  const html = new File(file.absolutePath)\n  html.buffer = Buffer.from(tpl.result)\n\n  const ret = file.convert(this.options.output, { extension: 'pdf' })\n\n  // Generate PDF\n  let outlineData: OutlineData | undefined\n\n  ret.buffer = Buffer.from(\n    await this.usePuppeteer(html, async (page, { render }) => {\n      await render()\n\n      if (tpl.rendered.outline) {\n        outlineData = await page.evaluate(\n          pptrOutlinePositionResolver,\n          tpl.rendered.outline.flatMap((o) => o.headings),\n          pdfOutlineAttr\n        )\n      }\n\n      return await page.pdf({\n        printBackground: true,\n        preferCSSPageSize: true, // This option is not working in WebDriver BiDi\n        width: tpl.rendered.size.width,\n        height: tpl.rendered.size.height,\n      })\n    })\n  )\n\n  if (postprocess) {\n    // Apply PDF metadata and annotations\n    const creationDate = new Date()\n    const { PDFDocument, PDFHexString, PDFString } = await import('pdf-lib')\n    const pdfDoc = await PDFDocument.load(ret.buffer)\n\n    pdfDoc.setCreator(CREATED_BY_MARP)\n    pdfDoc.setProducer(CREATED_BY_MARP)\n    pdfDoc.setCreationDate(creationDate)\n    pdfDoc.setModificationDate(creationDate)\n\n    if (tpl.rendered.title) pdfDoc.setTitle(tpl.rendered.title)\n    if (tpl.rendered.description) pdfDoc.setSubject(tpl.rendered.description)\n    if (tpl.rendered.author) pdfDoc.setAuthor(tpl.rendered.author)\n    if (tpl.rendered.keywords)\n      pdfDoc.setKeywords([tpl.rendered.keywords.join('; ')])\n\n    if (this.options.pdfOutlines && tpl.rendered.outline) {\n      await setOutline(\n        pdfDoc,\n        generatePDFOutlines(tpl.rendered.outline, {\n          ...this.options.pdfOutlines,\n          data: outlineData,\n          size: tpl.rendered.size,\n        })\n      )\n    }\n\n    if (this.options.pdfNotes) {\n      const pages = pdfDoc.getPages()\n\n      for (let i = 0, len = pages.length; i < len; i += 1) {\n        const notes = tpl.rendered.comments[i].join('\\n\\n')\n\n        if (notes) {\n          const noteAnnot = pdfDoc.context.obj({\n            Type: 'Annot',\n            Subtype: 'Text',\n            Rect: [0, 20, 20, 20],\n            Contents: PDFHexString.fromText(notes),\n            T: tpl.rendered.author\n              ? PDFHexString.fromText(tpl.rendered.author)\n              : undefined,\n            Name: 'Note',\n            Subj: PDFString.of('Note'),\n            C: [1, 0.92, 0.42], // RGB\n            CA: 0.25, // Alpha\n          })\n\n          pages[i].node.addAnnot(pdfDoc.context.register(noteAnnot))\n        }\n      }\n    }\n\n    // Apply modified PDF to buffer\n    ret.buffer = Buffer.from(await pdfDoc.save())\n  }\n\n  return ret\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/marp-team/marp-cli/blob/ffc4128626cbc64965fe1cc805717c6d4438c384/src/converter.ts#L333-L426",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F169"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=puppeteer-core%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F153"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import puppeteer from 'puppeteer-core';\n\nconst browser = await puppeteer.launch({ channel: 'chrome' });\nconst page = await browser.newPage();\nawait page.setContent('<h1>Hello</h1>');\nawait page.pdf({ path: 'output.pdf' });\nawait browser.close();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://pptr.dev/api/puppeteer.page.pdf",
                  "label": [
                    {
                      "t": "text",
                      "text": "puppeteer.page.pdf"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F158"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "jspdf",
          "name": [
            {
              "t": "fact",
              "fact": "F172"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/parallax/jsPDF"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/jspdf"
            },
            {
              "label": "Docs",
              "href": "https://github.com/parallax/jsPDF/blob/master/src/modules/html.js"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F39"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F173"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F179"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F175"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F174"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/parallax/jsPDF/blob/master/src/modules/html.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F40"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F41"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F42"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F43"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F44"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F45"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F46"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F47"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F188"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F189"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/anurag3407/career-pilot",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F188"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "export async function exportAtsSafePdf(node, filename = 'resume.pdf', opts = {}) {\n  const {\n    orientation = 'portrait',\n    format = 'a4',\n    marginMm = 10,\n  } = opts\n\n  if (!node) throw new Error('exportAtsSafePdf: node is required')\n\n  // Try text-layer path first\n  try {\n    const pdf = new jsPDF({\n      orientation,\n      unit: 'mm',\n      format,\n    })\n    await pdf.html(node, {\n      autoPaging: 'text',\n      html2canvas: {\n        scale: 2,\n        useCORS: true,\n        backgroundColor: '#ffffff',\n        windowWidth: node.scrollWidth,\n      },\n      margin: [marginMm, marginMm, marginMm, marginMm],\n      width: format === 'letter' ? 195.9 : 190,\n      windowWidth: node.scrollWidth,\n    })\n    pdf.save(filename)\n    return { ok: true, method: 'text', filename }\n  } catch (err) {\n    // Fall through to canvas fallback\n    console.warn('ATS PDF (text) failed, falling back to canvas raster:', err)\n  }\n\n  // Fallback: rasterize the whole node and slice into pages\n  const canvas = await html2canvas(node, {\n    scale: 2,\n    useCORS: true,\n    backgroundColor: '#ffffff',\n    windowWidth: node.scrollWidth,\n    windowHeight: node.scrollHeight,\n  })\n\n  const pdf = new jsPDF({ orientation, unit: 'mm', format })\n  const pageWidth = pdf.internal.pageSize.getWidth()\n  const pageHeight = pdf.internal.pageSize.getHeight()\n  const imgWidth = pageWidth\n  const imgHeight = (canvas.height * imgWidth) / canvas.width\n  const pageHeightInCanvas = (pageHeight * canvas.width) / pageWidth\n\n  if (imgHeight <= pageHeight) {\n    pdf.addImage(canvas.toDataURL('image/jpeg', 0.92), 'JPEG', 0, 0, imgWidth, imgHeight)\n  } else {\n    let yOffset = 0\n    let pageIdx = 0\n    while (yOffset < canvas.height) {\n      const sliceHeight = Math.min(pageHeightInCanvas, canvas.height - yOffset)\n      const pageCanvas = document.createElement('canvas')\n      pageCanvas.width = canvas.width\n      pageCanvas.height = sliceHeight\n      const ctx = pageCanvas.getContext('2d')\n      ctx.fillStyle = '#ffffff'\n      ctx.fillRect(0, 0, pageCanvas.width, pageCanvas.height)\n      ctx.drawImage(canvas, 0, yOffset, canvas.width, sliceHeight, 0, 0, canvas.width, sliceHeight)\n      const imgData = pageCanvas.toDataURL('image/jpeg', 0.92)\n      if (pageIdx > 0) pdf.addPage()\n      pdf.addImage(\n        imgData, 'JPEG', 0, 0,\n        imgWidth,\n        (sliceHeight * imgWidth) / canvas.width,\n      )\n      yOffset += sliceHeight\n      pageIdx += 1\n    }\n  }\n  pdf.save(filename)\n  return { ok: true, method: 'canvas', filename }\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/anurag3407/career-pilot/blob/5959e42012dd19e2d074db1399e21b24ba123cd4/frontend/src/services/atsPdfExport.js#L20-L98",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F187"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20using%20jspdf%20for%20HTML%20page%20PDF%20export%20with%20layout%20and%20pagination&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F172"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { jsPDF } from 'jspdf';\n\nconst pdf = new jsPDF();\nawait pdf.html('<h1>Hello</h1>');\npdf.save('output.pdf');\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/parallax/jsPDF/blob/master/src/modules/html.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "module-html.html"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F177"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "electron",
          "name": [
            {
              "t": "fact",
              "fact": "F190"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/electron/electron"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/electron"
            },
            {
              "label": "Docs",
              "href": "https://github.com/electron/electron/blob/main/docs/api/web-contents.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F292"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F191"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F199"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F193"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F192"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/electron/electron/blob/main/docs/api/web-contents.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F190"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F293"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F294"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F295"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F296"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F207"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F208"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/TriliumNext/Trilium",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F207"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function print() {\n    const filePath = electron.dialog.showSaveDialogSync(browserWindow, {\n        defaultPath: coreUtils.formatDownloadTitle(title, \"file\", \"application/pdf\"),\n        filters: [\n            {\n                name: t(\"pdf.export_filter\"),\n                extensions: [\"pdf\"]\n            }\n        ]\n    });\n    if (!filePath) return;\n\n    let buffer: Buffer;\n    try {\n        buffer = await browserWindow.webContents.printToPDF({\n            landscape,\n            pageSize,\n            scale,\n            margins: parseMargins(margins),\n            pageRanges: pageRanges || undefined,\n            preferCSSPageSize: false,\n            generateDocumentOutline: true,\n            generateTaggedPDF: true,\n            printBackground: true,\n            displayHeaderFooter: true,\n            headerTemplate: `<div></div>`,\n            footerTemplate: `\n                <div class=\"pageNumber\" style=\"width: 100%; text-align: center; font-size: 10pt;\">\n                </div>\n            `\n        });\n    } catch (_e) {\n        electron.dialog.showErrorBox(t(\"pdf.unable-to-export-title\"), t(\"pdf.unable-to-export-message\"));\n        return;\n    }\n\n    try {\n        await fs.writeFile(filePath, buffer);\n    } catch (_e) {\n        electron.dialog.showErrorBox(t(\"pdf.unable-to-export-title\"), t(\"pdf.unable-to-save-message\"));\n        return;\n    }\n\n    electron.shell.openPath(filePath);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/TriliumNext/Trilium/blob/3c60eac13f66161492334efefa2613923ebe541f/apps/desktop/src/services/printing.ts#L280-L324",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F206"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=electron%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F190"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { app, BrowserWindow } = require('electron');\nconst fs = require('node:fs/promises');\n\napp.whenReady().then(async () => {\n  const win = new BrowserWindow({ show: false });\n  try {\n    await win.loadURL('data:text/html,<h1>Hello</h1>');\n    const pdf = await win.webContents.printToPDF({});\n    await fs.writeFile('output.pdf', pdf);\n  } finally {\n    win.destroy();\n    app.quit();\n  }\n});\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/electron/electron/blob/main/docs/api/app.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "app.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F195"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "webdriverio",
          "name": [
            {
              "t": "fact",
              "fact": "F209"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/webdriverio/webdriverio"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/webdriverio"
            },
            {
              "label": "Docs",
              "href": "https://webdriver.io/docs/api/browser/savePDF/"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F297"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F210"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F218"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F212"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F211"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://webdriver.io/docs/api/browser/savePDF/",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F298"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F299"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F300"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F301"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F302"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F303"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import { remote } from 'webdriverio';\n\nconst browser = await remote({\n  capabilities: { browserName: 'chrome', 'goog:chromeOptions': { args: ['--headless=new'] } }\n});\ntry {\n  await browser.url('data:text/html,<h1>Hello</h1>');\n  await browser.savePDF('output.pdf');\n} finally {\n  await browser.deleteSession();\n}\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/webdriverio/webdriverio/blob/main/packages/webdriverio/src/index.ts",
                  "label": [
                    {
                      "t": "text",
                      "text": "index.ts"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=webdriverio%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F209"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F214"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "chrome-remote-interface",
          "name": [
            {
              "t": "fact",
              "fact": "F224"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/cyrus-and/chrome-remote-interface"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/chrome-remote-interface"
            },
            {
              "label": "Docs",
              "href": "https://github.com/cyrus-and/chrome-remote-interface/blob/master/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F304"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F225"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F233"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F227"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F226"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/cyrus-and/chrome-remote-interface/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F305"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F306"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F307"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F308"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F241"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F242"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/westy92/html-pdf-chrome",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F241"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async function generate(html: string, options: CreateOptions, tab: CDP.Target): Promise<CreateResult> {\n  await throwIfExitCondition(options);\n  const client = await CDP({ ...options, target: tab });\n  const connectionLostOrTimeout = new Promise<never>((_, reject) => {\n    client.on('disconnect', () => {\n      const error = new ConnectionLostError();\n      options._exitCondition = error;\n      reject(error);\n    });\n    if (options.timeout != null && options.timeout >= 0) {\n      setTimeout(() => {\n        const error = new Error('HtmlPdf.create() timed out.');\n        options._exitCondition = error;\n        reject(error);\n      }, options.timeout);\n    }\n  });\n\n  async function generateInternal() {\n    try {\n      await beforeNavigate(options, client);\n      const {Page} = client;\n      if (/^(https?|file|data):/i.test(html)) {\n        await Promise.all([\n          Page.navigate({url: html}),\n          Page.loadEventFired(),\n        ]); // Resolve order varies\n      } else {\n        const {frameTree} = await Page.getResourceTree();\n        await Promise.all([\n          Page.setDocumentContent({html, frameId: frameTree.frame.id}),\n          Page.loadEventFired(),\n        ]); // Resolve order varies\n      }\n      await afterNavigate(options, client);\n      let base64Result: string;\n      if (options.screenshotOptions) {\n        // https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-captureScreenshot\n        const screenshot = await Page.captureScreenshot(options.screenshotOptions);\n        base64Result = screenshot.data;\n      } else {\n        // https://chromedevtools.github.io/debugger-protocol-viewer/tot/Page/#method-printToPDF\n        const pdf = await Page.printToPDF(options.printOptions);\n        base64Result = pdf.data;\n      }\n      await throwIfExitCondition(options);\n      return new CreateResult(base64Result, options._mainRequestResponse);\n    } catch (error) {\n      if (options._exitCondition) {\n        throw options._exitCondition;\n      }\n      if (hasErrorCode(error, ['ECONNABORTED', 'ECONNRESET', 'EPIPE'])) {\n        const connectionLostError = new ConnectionLostError();\n        options._exitCondition = connectionLostError;\n        throw connectionLostError;\n      }\n      throw error;\n    } finally {\n      client.close();\n    }\n  }\n\n  return Promise.race([\n    connectionLostOrTimeout,\n    generateInternal(),\n  ]);\n}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/westy92/html-pdf-chrome/blob/e238d1b7e2841f47856ac5e6422d71d08ee82124/src/index.ts#L60-L126",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F240"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=chrome-remote-interface%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F224"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const CDP = require('chrome-remote-interface');\nconst fs = require('node:fs/promises');\n\n(async () => {\n  const client = await CDP();\n  try {\n    await client.Page.enable();\n    const loaded = client.Page.loadEventFired();\n    await client.Page.navigate({ url: 'data:text/html,<h1>Hello</h1>' });\n    await loaded;\n    const { data } = await client.Page.printToPDF({});\n    await fs.writeFile('output.pdf', Buffer.from(data, 'base64'));\n  } finally {\n    await client.close();\n  }\n})();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/cyrus-and/chrome-remote-interface/blob/master/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F229"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "selenium-webdriver",
          "name": [
            {
              "t": "fact",
              "fact": "F243"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/SeleniumHQ/selenium"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/selenium-webdriver"
            },
            {
              "label": "Docs",
              "href": "https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/selenium-webdriver/chromium.js"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F309"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F244"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F252"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F246"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F245"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/selenium-webdriver/chromium.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F243"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F310"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F311"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F312"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F313"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "const { Builder } = require('selenium-webdriver');\nconst chrome = require('selenium-webdriver/chrome');\nconst fs = require('node:fs/promises');\n\n(async () => {\n  const options = new chrome.Options().addArguments('--headless=new');\n  const driver = await new Builder().forBrowser('chrome').setChromeOptions(options).build();\n  try {\n    await driver.get('data:text/html,<h1>Hello</h1>');\n    await fs.writeFile('output.pdf', await driver.printPage({}), 'base64');\n  } finally {\n    await driver.quit();\n  }\n})();\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/SeleniumHQ/selenium/blob/trunk/javascript/selenium-webdriver/lib/webdriver.js",
                  "label": [
                    {
                      "t": "text",
                      "text": "webdriver.js"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=selenium-webdriver%20GitHub%20projects",
                  "label": [
                    {
                      "t": "text",
                      "text": "Find projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F243"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F248"
            }
          ]
        },
        {
          "b": "entry",
          "anchor": "html-pdf-js",
          "name": [
            {
              "t": "fact",
              "fact": "F258"
            }
          ],
          "links": [
            {
              "label": "GitHub",
              "href": "https://github.com/eKoopmans/html2pdf.js"
            },
            {
              "label": "npm",
              "href": "https://www.npmjs.com/package/html2pdf.js"
            },
            {
              "label": "Docs",
              "href": "https://github.com/eKoopmans/html2pdf.js/blob/main/README.md"
            }
          ],
          "what": [
            {
              "t": "fact",
              "fact": "F87"
            }
          ],
          "facts": [
            {
              "label": "Downloads / mo",
              "value": [
                {
                  "t": "fact",
                  "fact": "F259"
                }
              ]
            },
            {
              "label": "Stars",
              "value": [
                {
                  "t": "fact",
                  "fact": "F265"
                }
              ]
            },
            {
              "label": "Last release",
              "value": [
                {
                  "t": "fact",
                  "fact": "F261"
                }
              ]
            },
            {
              "label": "License",
              "value": [
                {
                  "t": "fact",
                  "fact": "F260"
                }
              ]
            },
            {
              "label": "Capabilities",
              "value": [
                {
                  "t": "link",
                  "href": "https://github.com/eKoopmans/html2pdf.js/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "From the "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " docs"
                    }
                  ]
                }
              ]
            }
          ],
          "pros": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F88"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F89"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F90"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F91"
                }
              ]
            }
          ],
          "cons": [
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F92"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F93"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F94"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F95"
                }
              ]
            },
            {
              "lead": [
                {
                  "t": "fact",
                  "fact": "F96"
                }
              ],
              "body": [
                {
                  "t": "fact",
                  "fact": "F97"
                }
              ]
            }
          ],
          "tabs": [
            {
              "label": [
                {
                  "t": "fact",
                  "fact": "F274"
                }
              ],
              "stars": [
                {
                  "t": "fact",
                  "fact": "F275"
                }
              ],
              "usedBy": [
                {
                  "t": "link",
                  "href": "https://github.com/kempsteven/vue-html2pdf",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F274"
                    }
                  ]
                },
                {
                  "t": "text",
                  "text": " "
                }
              ],
              "language": "javascript",
              "code": "async downloadPdf () {\n\t\t\t// Set Element and Html2pdf.js Options\n\t\t\tconst pdfContent = this.$refs.pdfContent\n\t\t\tlet options = this.setOptions()\n\n\t\t\tthis.$emit('beforeDownload', { html2pdf, options, pdfContent })\n\n\t\t\tconst html2PdfSetup = html2pdf().set(options).from(pdfContent)\n\t\t\tlet pdfBlobUrl = null\n\n\t\t\tif (this.previewModal) {\n\t\t\t\tthis.pdfFile = await html2PdfSetup.output('bloburl')\n\t\t\t\tpdfBlobUrl = this.pdfFile\n\t\t\t}\n\n\t\t\tif (this.enableDownload) {\n\t\t\t\tpdfBlobUrl = await html2PdfSetup.save().output('bloburl')\n\t\t\t}\n\n\t\t\tif (pdfBlobUrl) {\n\t\t\t\tconst res = await fetch(pdfBlobUrl)\n\t\t\t\tconst blobFile = await res.blob()\n\t\t\t\tthis.$emit('hasDownloaded', blobFile)\n\t\t\t}\n\n\t\t\tthis.progress = 100\n\t\t}\n",
              "prov": [
                {
                  "t": "link",
                  "href": "https://github.com/kempsteven/vue-html2pdf/blob/d608228f525477ed076a38f3a1ab3dd79cc9e420/src/vue-html2pdf.vue#L227-L253",
                  "label": [
                    {
                      "t": "fact",
                      "fact": "F273"
                    }
                  ]
                }
              ],
              "more": [
                {
                  "t": "link",
                  "href": "https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20using%20html2pdf.js%20for%20HTML%20page%20PDF%20export%20with%20layout%20and%20pagination&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D",
                  "label": [
                    {
                      "t": "text",
                      "text": "More projects using "
                    },
                    {
                      "t": "fact",
                      "fact": "F258"
                    },
                    {
                      "t": "text",
                      "text": " →"
                    }
                  ]
                }
              ]
            },
            {
              "label": [
                {
                  "t": "text",
                  "text": "Quickstart"
                }
              ],
              "language": "javascript",
              "code": "import html2pdf from 'html2pdf.js';\n\nconst element = document.getElementById('element-to-print');\nhtml2pdf(element);\n",
              "prov": [
                {
                  "t": "text",
                  "text": "From "
                },
                {
                  "t": "link",
                  "href": "https://github.com/eKoopmans/html2pdf.js/blob/main/README.md",
                  "label": [
                    {
                      "t": "text",
                      "text": "README.md"
                    }
                  ]
                }
              ]
            }
          ],
          "install": [
            {
              "t": "fact",
              "fact": "F263"
            }
          ]
        }
      ]
    }
  ],
  "questions": [
    {
      "q": "Which JavaScript HTML to PDF library should I use?",
      "a": [
        {
          "t": "text",
          "text": "A headless browser library such as puppeteer-core or playwright-core prints the page with its print CSS through page.pdf. Inside the browser, "
        },
        {
          "t": "fact",
          "fact": "F76"
        },
        {
          "t": "text",
          "text": " and jsPDF convert an element on the page into a PDF."
        }
      ]
    },
    {
      "q": "What is jsPDF?",
      "a": [
        {
          "t": "text",
          "text": "jsPDF creates PDF documents from JavaScript, and its html method renders HTML into a document. Rendering HTML strings needs a canvas renderer and DOMPurify loaded alongside it."
        }
      ]
    },
    {
      "q": "Puppeteer vs Playwright: which should I use for PDFs?",
      "a": [
        {
          "t": "text",
          "text": "Both print a page to PDF through page.pdf with print CSS media, and both accept HTML header and footer templates. Playwright generates PDFs only in headless Chromium. puppeteer-core skips the browser download and connects to an installed Chrome."
        }
      ]
    },
    {
      "q": "What is html2pdf.js?",
      "a": [
        {
          "t": "fact",
          "fact": "F76"
        },
        {
          "t": "text",
          "text": " converts an element on a web page into a PDF through a canvas renderer and jsPDF. Its PDFs hold an image of the content, and their text cannot be selected or searched. It runs only in a browser, not in Node.js."
        }
      ]
    },
    {
      "q": "How do I make a PDF with Puppeteer?",
      "a": [
        {
          "t": "text",
          "text": "Load the page, then call page.pdf to print it with print CSS media. Set printBackground to true to keep background graphics, and call emulateMediaType('screen') first to use screen styles."
        }
      ]
    },
    {
      "q": "Can Playwright generate PDFs in every browser?",
      "a": [
        {
          "t": "text",
          "text": "No. Playwright generates PDFs only in headless Chromium, and other browser engines reject page.pdf."
        }
      ]
    }
  ],
  "facts": {
    "F1": {
      "label": "Library name, playwright",
      "display": "Playwright",
      "asOf": "2026-11-17"
    },
    "F2": {
      "label": "Monthly downloads, playwright",
      "display": "626.4M",
      "asOf": "2026-11-15"
    },
    "F3": {
      "label": "License, playwright",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F4": {
      "label": "Package release, playwright",
      "display": "1.65.1",
      "asOf": "2026-11-17"
    },
    "F5": {
      "label": "Undated package release, playwright",
      "display": "v1.65.1",
      "asOf": "2026-11-17"
    },
    "F6": {
      "label": "Repository stars, playwright",
      "display": "100.4K",
      "asOf": "2026-11-17"
    },
    "F7": {
      "label": "HTML input, playwright",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F8": {
      "label": "Paper size, playwright",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F9": {
      "label": "Page margins, playwright",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F10": {
      "label": "Print CSS, playwright",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F11": {
      "label": "Output formats, playwright",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F12": {
      "label": "Install, playwright",
      "display": "npm install playwright",
      "asOf": "2026-11-17"
    },
    "F13": {
      "label": "What it does, playwright",
      "display": "Returns PDF bytes from browser pages with print-media and layout options.",
      "asOf": "2026-11-17"
    },
    "F14": {
      "label": "strengths lead, playwright",
      "display": "Controls print media",
      "asOf": "2026-11-17"
    },
    "F15": {
      "label": "strengths, playwright",
      "display": "Choose print or screen media before generating the PDF.",
      "asOf": "2026-11-17"
    },
    "F16": {
      "label": "strengths lead, playwright",
      "display": "Adds header and footer templates",
      "asOf": "2026-11-17"
    },
    "F17": {
      "label": "strengths, playwright",
      "display": "Insert page numbers, dates, and titles through print-template classes.",
      "asOf": "2026-11-17"
    },
    "F18": {
      "label": "limitations lead, playwright",
      "display": "PDF output requires headless Chromium",
      "asOf": "2026-11-17"
    },
    "F19": {
      "label": "limitations, playwright",
      "display": "Use a headless Chromium page for PDF generation.",
      "asOf": "2026-11-17"
    },
    "F20": {
      "label": "limitations lead, playwright",
      "display": "Headers need their own styles",
      "asOf": "2026-11-17"
    },
    "F21": {
      "label": "limitations, playwright",
      "display": "Repeat required styles inside header and footer templates.",
      "asOf": "2026-11-17"
    },
    "F22": {
      "label": "Quickstart, playwright",
      "display": "const { chromium } = require('playwright');\n\n(async () => {\n  const browser = await chromium.launch();\n\n  const page = await browser.newPage();\n  await page.goto('https://playwright.dev/');\n\n// Generates a PDF with 'screen' media type.\nawait page.emulateMedia({ media: 'screen' });\nawait page.pdf({ path: 'page.pdf' });\n\n  // Create pages, interact with UI elements, assert values\n  await browser.close();\n})();\n",
      "asOf": "2026-11-17"
    },
    "F23": {
      "label": "Project function, playwright",
      "display": "async execute(args: any, context: ToolContext): Promise<ToolResponse> {\n    return this.safeExecute(context, async (page) => {\n      const filename = args.filename || 'page.pdf';\n      const options = {\n        path: path.resolve(args.outputPath || '.', filename),\n        format: args.format || 'A4',\n        printBackground: args.printBackground !== false,\n        margin: args.margin || {\n          top: '1cm',\n          right: '1cm',\n          bottom: '1cm',\n          left: '1cm'\n        }\n      };\n\n      await page.pdf(options);\n      return createSuccessResponse(`Saved page as PDF: ${options.path}`);\n    });\n  }\n",
      "asOf": "2026-11-17"
    },
    "F24": {
      "label": "Project function reference, playwright",
      "display": "output.ts · execute()",
      "asOf": "2026-11-17"
    },
    "F25": {
      "label": "Project repository, playwright",
      "display": "executeautomation/mcp-playwright",
      "asOf": "2026-11-17"
    },
    "F26": {
      "label": "Project stars, executeautomation/mcp-playwright",
      "display": "5.7K",
      "asOf": "2026-11-17"
    },
    "F27": {
      "label": "Project push date, executeautomation/mcp-playwright",
      "display": "Dec 2025",
      "asOf": "2025-12-13"
    },
    "F28": {
      "label": "Library name, jspdf",
      "display": "jsPDF",
      "asOf": "2026-11-17"
    },
    "F29": {
      "label": "Monthly downloads, jspdf",
      "display": "81.4M",
      "asOf": "2026-11-15"
    },
    "F30": {
      "label": "License, jspdf",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F31": {
      "label": "Package release, jspdf",
      "display": "4.2.1",
      "asOf": "2026-11-17"
    },
    "F32": {
      "label": "Undated package release, jspdf",
      "display": "v4.2.1",
      "asOf": "2026-11-17"
    },
    "F33": {
      "label": "Repository stars, jspdf",
      "display": "31.3K",
      "asOf": "2026-11-17"
    },
    "F34": {
      "label": "HTML input, jspdf",
      "display": "Via plugin",
      "asOf": "2026-11-17"
    },
    "F35": {
      "label": "Paper size, jspdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F36": {
      "label": "Page margins, jspdf",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F37": {
      "label": "Output formats, jspdf",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F38": {
      "label": "Install, jspdf",
      "display": "npm install jspdf",
      "asOf": "2026-11-17"
    },
    "F39": {
      "label": "What it does, jspdf",
      "display": "Provides an HTML-to-PDF method alongside programmable PDF document APIs.",
      "asOf": "2026-11-17"
    },
    "F40": {
      "label": "strengths lead, jspdf",
      "display": "Matches supplied font faces",
      "asOf": "2026-11-17"
    },
    "F41": {
      "label": "strengths, jspdf",
      "display": "Pass fontFaces with font URLs when rendering HTML.",
      "asOf": "2026-11-17"
    },
    "F42": {
      "label": "strengths lead, jspdf",
      "display": "Fits HTML to target width",
      "asOf": "2026-11-17"
    },
    "F43": {
      "label": "strengths, jspdf",
      "display": "Set width and windowWidth together to fit the rendered element.",
      "asOf": "2026-11-17"
    },
    "F44": {
      "label": "limitations lead, jspdf",
      "display": "HTML rendering adds dependencies",
      "asOf": "2026-11-17"
    },
    "F45": {
      "label": "limitations, jspdf",
      "display": "Load html2canvas and DOMPurify when rendering HTML strings.",
      "asOf": "2026-11-17"
    },
    "F46": {
      "label": "limitations lead, jspdf",
      "display": "Default paging can split text",
      "asOf": "2026-11-17"
    },
    "F47": {
      "label": "limitations, jspdf",
      "display": "Use text auto-paging for mostly single-column documents.",
      "asOf": "2026-11-17"
    },
    "F48": {
      "label": "Quickstart, jspdf",
      "display": "import { jsPDF } from \"jspdf\";\n\nvar doc = new jsPDF();\n\ndoc.html(document.body, {\n   callback: function (doc) {\n     doc.save();\n   },\n   x: 10,\n   y: 10\n});\n",
      "asOf": "2026-11-17"
    },
    "F49": {
      "label": "Library name, puppeteer",
      "display": "Puppeteer",
      "asOf": "2026-11-17"
    },
    "F50": {
      "label": "Monthly downloads, puppeteer",
      "display": "58.3M",
      "asOf": "2026-11-15"
    },
    "F51": {
      "label": "License, puppeteer",
      "display": "Apache-2.0",
      "asOf": "2026-11-17"
    },
    "F52": {
      "label": "Package release, puppeteer",
      "display": "25.12.0",
      "asOf": "2026-11-17"
    },
    "F53": {
      "label": "Undated package release, puppeteer",
      "display": "v25.12.0",
      "asOf": "2026-11-17"
    },
    "F54": {
      "label": "Repository stars, puppeteer",
      "display": "95.8K",
      "asOf": "2026-11-17"
    },
    "F55": {
      "label": "HTML input, puppeteer",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F56": {
      "label": "Paper size, puppeteer",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F57": {
      "label": "Page margins, puppeteer",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F58": {
      "label": "Print CSS, puppeteer",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F59": {
      "label": "Output formats, puppeteer",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F60": {
      "label": "Install, puppeteer",
      "display": "npm install puppeteer",
      "asOf": "2026-11-17"
    },
    "F61": {
      "label": "What it does, puppeteer",
      "display": "Prints browser pages to PDF with configurable media, paper, and margins.",
      "asOf": "2026-11-17"
    },
    "F62": {
      "label": "strengths lead, puppeteer",
      "display": "Uses browser print styles",
      "asOf": "2026-11-17"
    },
    "F63": {
      "label": "strengths, puppeteer",
      "display": "Print pages with the print CSS media type.",
      "asOf": "2026-11-17"
    },
    "F64": {
      "label": "strengths lead, puppeteer",
      "display": "Can honor CSS paper size",
      "asOf": "2026-11-17"
    },
    "F65": {
      "label": "strengths, puppeteer",
      "display": "Set preferCSSPageSize to prioritize a page’s declared paper size.",
      "asOf": "2026-11-17"
    },
    "F66": {
      "label": "limitations lead, puppeteer",
      "display": "Background graphics start disabled",
      "asOf": "2026-11-17"
    },
    "F67": {
      "label": "limitations, puppeteer",
      "display": "Enable printBackground when background graphics must appear in the PDF.",
      "asOf": "2026-11-17"
    },
    "F68": {
      "label": "limitations lead, puppeteer",
      "display": "Screen media disables print styles",
      "asOf": "2026-11-17"
    },
    "F69": {
      "label": "limitations, puppeteer",
      "display": "Retain print media when pagination depends on print-specific stylesheets.",
      "asOf": "2026-11-17"
    },
    "F70": {
      "label": "Quickstart, puppeteer",
      "display": "import puppeteer from 'puppeteer';\n\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\nawait page.goto('https://news.ycombinator.com', {\n  waitUntil: 'networkidle2',\n});\n// Saves the PDF to hn.pdf.\nawait page.pdf({\n  path: 'hn.pdf',\n});\n\nawait browser.close();\n",
      "asOf": "2026-11-17"
    },
    "F71": {
      "label": "Project function, puppeteer",
      "display": "export async function generateOutput(\n\thtml: string,\n\trelativePath: string,\n\tconfig: Config,\n\tbrowserRef?: Browser,\n): Promise<Output> {\n\tasync function getBrowser() {\n\t\tif (browserRef) {\n\t\t\treturn browserRef;\n\t\t}\n\n\t\tif (!browserPromise) {\n\t\t\tbrowserPromise = puppeteer.launch({ devtools: config.devtools, ...config.launch_options });\n\t\t}\n\n\t\treturn browserPromise;\n\t}\n\n\tconst browser = await getBrowser();\n\n\tconst page = await browser.newPage();\n\n\tconst urlPathname = join(relativePath, 'index.html').split(sep).join(posix.sep);\n\n\t// eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n\tawait page.goto(`http://localhost:${config.port!}/${urlPathname}`); // make sure relative paths work as expected\n\tawait page.setContent(html); // overwrite the page content with what was generated from the markdown\n\n\tfor (const stylesheet of config.stylesheet) {\n\t\tawait page.addStyleTag(isHttpUrl(stylesheet) ? { url: stylesheet } : { path: stylesheet });\n\t}\n\n\tif (config.css) {\n\t\tawait page.addStyleTag({ content: config.css });\n\t}\n\n\tfor (const scriptTagOptions of config.script) {\n\t\tawait page.addScriptTag(scriptTagOptions);\n\t}\n\n\t/**\n\t * Trick to wait for network to be idle.\n\t *\n\t * @todo replace with page.waitForNetworkIdle once exposed\n\t * @see https://github.com/GoogleChrome/puppeteer/issues/3083\n\t */\n\tawait Promise.all([\n\t\tpage.waitForNavigation({ waitUntil: 'networkidle0' }),\n\t\tpage.evaluate(() => history.pushState(undefined, '', '#')) /* eslint no-undef: off */,\n\t]);\n\n\tlet outputFileContent: string | Buffer = '';\n\n\tif (config.devtools) {\n\t\tawait new Promise((resolve) => page.on('close', resolve));\n\t} else if (config.as_html) {\n\t\toutputFileContent = await page.content();\n\t} else {\n\t\tawait page.emulateMediaType(config.page_media_type);\n\t\toutputFileContent = await page.pdf(config.pdf_options);\n\t}\n\n\tawait page.close();\n\n\treturn config.devtools ? (undefined as any) : { filename: config.dest, content: outputFileContent };\n}\n",
      "asOf": "2026-11-17"
    },
    "F72": {
      "label": "Project function reference, puppeteer",
      "display": "generate-output.ts · generateOutput()",
      "asOf": "2026-11-17"
    },
    "F73": {
      "label": "Project repository, puppeteer",
      "display": "simonhaenisch/md-to-pdf",
      "asOf": "2026-11-17"
    },
    "F74": {
      "label": "Project stars, simonhaenisch/md-to-pdf",
      "display": "2.0K",
      "asOf": "2026-11-17"
    },
    "F75": {
      "label": "Project push date, simonhaenisch/md-to-pdf",
      "display": "Dec 2025",
      "asOf": "2025-12-03"
    },
    "F76": {
      "label": "Library name, html2pdf.js",
      "display": "html2pdf.js",
      "asOf": "2026-11-17"
    },
    "F77": {
      "label": "Monthly downloads, html2pdf.js",
      "display": "6.2M",
      "asOf": "2026-11-15"
    },
    "F78": {
      "label": "License, html2pdf.js",
      "display": "MIT",
      "asOf": "2026-11-17"
    },
    "F79": {
      "label": "Package release, html2pdf.js",
      "display": "0.14.0",
      "asOf": "2026-11-17"
    },
    "F80": {
      "label": "Undated package release, html2pdf.js",
      "display": "v0.14.0",
      "asOf": "2026-11-17"
    },
    "F81": {
      "label": "Repository stars, html2pdf.js",
      "display": "4.9K",
      "asOf": "2026-11-17"
    },
    "F82": {
      "label": "HTML input, html2pdf.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F83": {
      "label": "Paper size, html2pdf.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F84": {
      "label": "Page margins, html2pdf.js",
      "display": "Built-in",
      "asOf": "2026-11-17"
    },
    "F85": {
      "label": "Output formats, html2pdf.js",
      "display": "PDF",
      "asOf": "2026-11-17"
    },
    "F86": {
      "label": "Install, html2pdf.js",
      "display": "npm install html2pdf.js",
      "asOf": "2026-11-17"
    },
    "F87": {
      "label": "What it does, html2pdf.js",
      "display": "Converts browser HTML elements into PDFs through html2canvas and jsPDF.",
      "asOf": "2026-11-17"
    },
    "F88": {
      "label": "strengths lead, html2pdf.js",
      "display": "Converts existing browser elements",
      "asOf": "2026-11-17"
    },
    "F89": {
      "label": "strengths, html2pdf.js",
      "display": "Pass an existing page element into the conversion worker.",
      "asOf": "2026-11-17"
    },
    "F90": {
      "label": "strengths lead, html2pdf.js",
      "display": "Controls element page breaks",
      "asOf": "2026-11-17"
    },
    "F91": {
      "label": "strengths, html2pdf.js",
      "display": "Select page-break modes and selectors for splitting content.",
      "asOf": "2026-11-17"
    },
    "F92": {
      "label": "limitations lead, html2pdf.js",
      "display": "PDF text becomes an image",
      "asOf": "2026-11-17"
    },
    "F93": {
      "label": "limitations, html2pdf.js",
      "display": "The resulting text cannot be selected or searched.",
      "asOf": "2026-11-17"
    },
    "F94": {
      "label": "limitations lead, html2pdf.js",
      "display": "Large canvases can fail rendering",
      "asOf": "2026-11-17"
    },
    "F95": {
      "label": "limitations, html2pdf.js",
      "display": "Keep rendered content within the browser’s canvas size limits.",
      "asOf": "2026-11-17"
    },
    "F96": {
      "label": "limitations lead, html2pdf.js",
      "display": "Requires a browser",
      "asOf": "2026-11-17"
    },
    "F97": {
      "label": "limitations, html2pdf.js",
      "display": "Run conversion in a browser rather than a Node-only process.",
      "asOf": "2026-11-17"
    },
    "F98": {
      "label": "Quickstart, html2pdf.js",
      "display": "var element = document.getElementById('element-to-print');\nvar opt = {\n  margin:       1,\n  filename:     'myfile.pdf',\n  image:        { type: 'jpeg', quality: 0.98 },\n  html2canvas:  { scale: 2 },\n  jsPDF:        { unit: 'in', format: 'letter', orientation: 'portrait' }\n};\n\n// New Promise-based usage:\nhtml2pdf().set(opt).from(element).save();\n\n",
      "asOf": "2026-11-17"
    },
    "F99": {
      "label": "Project function, html2pdf.js",
      "display": "async downloadPdf () {\n\t\t\t// Set Element and Html2pdf.js Options\n\t\t\tconst pdfContent = this.$refs.pdfContent\n\t\t\tlet options = this.setOptions()\n\n\t\t\tthis.$emit('beforeDownload', { html2pdf, options, pdfContent })\n\n\t\t\tconst html2PdfSetup = html2pdf().set(options).from(pdfContent)\n\t\t\tlet pdfBlobUrl = null\n\n\t\t\tif (this.previewModal) {\n\t\t\t\tthis.pdfFile = await html2PdfSetup.output('bloburl')\n\t\t\t\tpdfBlobUrl = this.pdfFile\n\t\t\t}\n\n\t\t\tif (this.enableDownload) {\n\t\t\t\tpdfBlobUrl = await html2PdfSetup.save().output('bloburl')\n\t\t\t}\n\n\t\t\tif (pdfBlobUrl) {\n\t\t\t\tconst res = await fetch(pdfBlobUrl)\n\t\t\t\tconst blobFile = await res.blob()\n\t\t\t\tthis.$emit('hasDownloaded', blobFile)\n\t\t\t}\n\n\t\t\tthis.progress = 100\n\t\t}\n",
      "asOf": "2026-11-17"
    },
    "F100": {
      "label": "Project function reference, html2pdf.js",
      "display": "vue-html2pdf.vue · downloadPdf()",
      "asOf": "2026-11-17"
    },
    "F101": {
      "label": "Project repository, html2pdf.js",
      "display": "kempsteven/vue-html2pdf",
      "asOf": "2026-11-17"
    },
    "F102": {
      "label": "Project stars, kempsteven/vue-html2pdf",
      "display": "452",
      "asOf": "2026-11-17"
    },
    "F103": {
      "label": "Project push date, kempsteven/vue-html2pdf",
      "display": "Sep 2024",
      "asOf": "2024-09-26"
    },
    "F104": {
      "label": "Developer need",
      "display": "Printing with CSS paper sizes",
      "asOf": "2026-11-17"
    },
    "F105": {
      "label": "Why choose puppeteer",
      "display": "prioritizing the CSS page size",
      "asOf": "2026-11-17"
    },
    "F106": {
      "label": "Developer need in introduction",
      "display": "printing with CSS paper sizes",
      "asOf": "2026-11-17"
    },
    "F107": {
      "label": "Developer need",
      "display": "Adding print headers and footers",
      "asOf": "2026-11-17"
    },
    "F108": {
      "label": "Why choose playwright",
      "display": "print templates with injected document values",
      "asOf": "2026-11-17"
    },
    "F109": {
      "label": "Developer need in introduction",
      "display": "adding print headers and footers",
      "asOf": "2026-11-17"
    },
    "F110": {
      "label": "When to consider puppeteer",
      "display": "CSS page sizing is the primary configuration",
      "asOf": "2026-11-17"
    },
    "F111": {
      "label": "Developer need",
      "display": "Converting an existing browser element",
      "asOf": "2026-11-17"
    },
    "F112": {
      "label": "Why choose html2pdf.js",
      "display": "the existing-element worker workflow",
      "asOf": "2026-11-17"
    },
    "F113": {
      "label": "Developer need in introduction",
      "display": "converting an existing browser element",
      "asOf": "2026-11-17"
    },
    "F114": {
      "label": "Developer need",
      "display": "Fitting HTML to a target PDF width",
      "asOf": "2026-11-17"
    },
    "F115": {
      "label": "Why choose jspdf",
      "display": "width and windowWidth configuration",
      "asOf": "2026-11-17"
    },
    "F116": {
      "label": "Developer need in introduction",
      "display": "fitting HTML to a target PDF width",
      "asOf": "2026-11-17"
    },
    "F117": {
      "label": "When to consider html2pdf.js",
      "display": "a packaged browser-element conversion workflow is sufficient",
      "asOf": "2026-11-17"
    },
    "F118": {
      "label": "Page introduction",
      "display": "JavaScript HTML to PDF libraries let application developers render HTML content as PDF documents.",
      "asOf": "2026-11-17"
    },
    "F119": {
      "label": "FAQ: What is the main difference between browser printing and html2pdf.js?",
      "display": "Puppeteer generates a page PDF using print CSS media.",
      "asOf": "2026-11-17"
    },
    "F120": {
      "label": "FAQ: What is the main difference between browser printing and html2pdf.js?",
      "display": "html2pdf.js renders content into an image and places that image into a PDF.",
      "asOf": "2026-11-17"
    },
    "F121": {
      "label": "FAQ: Is text in an html2pdf.js PDF searchable?",
      "display": "Its image-based rendering makes resulting text unselectable and unsearchable.",
      "asOf": "2026-11-17"
    },
    "F122": {
      "label": "FAQ: Can html2pdf.js run in a Node-only process?",
      "display": "The package explicitly requires a browser and does not run in Node.js.",
      "asOf": "2026-11-17"
    },
    "F123": {
      "label": "FAQ: Can every Playwright browser engine generate PDFs?",
      "display": "Playwright rejects PDF generation outside headless Chromium.",
      "asOf": "2026-11-17"
    },
    "F124": {
      "label": "FAQ: How do I choose screen styles instead of print styles?",
      "display": "Puppeteer uses emulateMediaType before generating the PDF.",
      "asOf": "2026-11-17"
    },
    "F125": {
      "label": "FAQ: How do I choose screen styles instead of print styles?",
      "display": "Playwright uses emulateMedia with screen media before its PDF call.",
      "asOf": "2026-11-17"
    },
    "F126": {
      "label": "FAQ: Why are background graphics missing from a Puppeteer PDF?",
      "display": "The printBackground option is false by default; enable it to include background graphics.",
      "asOf": "2026-11-17"
    },
    "F127": {
      "label": "FAQ: Can Puppeteer honor a CSS page size?",
      "display": "preferCSSPageSize gives the page’s declared CSS size priority over supplied paper options.",
      "asOf": "2026-11-17"
    },
    "F128": {
      "label": "FAQ: Do Playwright header and footer templates inherit page styles?",
      "display": "Page styles are not visible inside those templates, and their script tags are not evaluated.",
      "asOf": "2026-11-17"
    },
    "F129": {
      "label": "FAQ: Why can very long html2pdf.js conversions fail?",
      "display": "Browser canvases have maximum dimensions; content beyond them fails to render.",
      "asOf": "2026-11-17"
    },
    "F130": {
      "label": "FAQ: What dependencies does the jsPDF HTML method need?",
      "display": "Its HTML method depends on html2canvas and adds DOMPurify for string HTML documents.",
      "asOf": "2026-11-17"
    },
    "F131": {
      "label": "FAQ: How does jsPDF avoid cutting text at page boundaries?",
      "display": "Default auto-paging can slice text; text mode tries to preserve it and suits mostly single-column documents.",
      "asOf": "2026-11-17"
    },
    "F132": {
      "label": "FAQ: Does jsPDF windowWidth change CSS media-query behavior?",
      "display": "The HTML plugin’s windowWidth changes the render container size but does not affect CSS media queries.",
      "asOf": "2026-11-17"
    },
    "F133": {
      "label": "FAQ: Does jsPDF windowWidth change CSS media-query behavior?",
      "display": "Its target width also requires windowWidth and is overridden by an explicit html2canvas scale.",
      "asOf": "2026-11-17"
    },
    "F134": {
      "label": "Library name, playwright-core",
      "display": "playwright-core",
      "asOf": "2026-11-20"
    },
    "F135": {
      "label": "Monthly downloads, playwright-core",
      "display": "712.5M",
      "asOf": "2026-11-20"
    },
    "F136": {
      "label": "License, playwright-core",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F137": {
      "label": "Package release, playwright-core",
      "display": "1.65.1",
      "asOf": "2026-11-20"
    },
    "F138": {
      "label": "Package release date, playwright-core",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F139": {
      "label": "Install, playwright-core",
      "display": "npm install playwright-core",
      "asOf": "2026-11-20"
    },
    "F140": {
      "label": "Quickstart, playwright-core",
      "display": "import { chromium } from 'playwright-core';\n\nconst browser = await chromium.launch({ channel: 'chrome', headless: true });\nconst page = await browser.newPage();\nawait page.setContent('<h1>Hello</h1>');\nawait page.pdf({ path: 'output.pdf' });\nawait browser.close();\n",
      "asOf": "2026-11-20"
    },
    "F141": {
      "label": "Official description, playwright-core",
      "display": "A high-level API to automate web browsers",
      "asOf": "2026-11-20"
    },
    "F142": {
      "label": "Quickstart source file, playwright-core",
      "display": "class-page",
      "asOf": "2026-11-20"
    },
    "F143": {
      "label": "Repository stars, playwright-core",
      "display": "100.4K",
      "asOf": "2026-11-20"
    },
    "F144": {
      "label": "Accepts a DOM element, playwright-core",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F145": {
      "label": "HTML header/footer templates, playwright-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F146": {
      "label": "Page-range selection, playwright-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F147": {
      "label": "Native rendering role, playwright-core",
      "display": "Browser automation page printing, with explicit Chromium host setup.",
      "asOf": "2026-11-20"
    },
    "F148": {
      "label": "Starter host requirements, playwright-core",
      "display": "Node ES module and installed Google Chrome discoverable by channel=chrome; the core package does not supply browser binaries. Uses headless Chromium, a writable output path, and an owned temporary page.",
      "asOf": "2026-11-20"
    },
    "F149": {
      "label": "Project function, playwright-core",
      "display": "async execute(args: any, context: ToolContext): Promise<ToolResponse> {\n  return this.safeExecute(context, async (page) => {\n    const filename = args.filename || 'page.pdf';\n    const options = {\n      path: path.resolve(args.outputPath || '.', filename),\n      format: args.format || 'A4',\n      printBackground: args.printBackground !== false,\n      margin: args.margin || {\n        top: '1cm',\n        right: '1cm',\n        bottom: '1cm',\n        left: '1cm'\n      }\n    };\n\n    await page.pdf(options);\n    return createSuccessResponse(`Saved page as PDF: ${options.path}`);\n  });\n}\n",
      "asOf": "2026-11-20"
    },
    "F150": {
      "label": "Project source file, playwright-core",
      "display": "src/tools/browser/output.ts",
      "asOf": "2026-11-20"
    },
    "F151": {
      "label": "Project full_name, playwright-core",
      "display": "executeautomation/mcp-playwright",
      "asOf": "2026-11-20"
    },
    "F152": {
      "label": "Project stargazers_count, playwright-core",
      "display": "5.7K",
      "asOf": "2026-11-20"
    },
    "F153": {
      "label": "Library name, puppeteer-core",
      "display": "puppeteer-core",
      "asOf": "2026-11-20"
    },
    "F154": {
      "label": "Monthly downloads, puppeteer-core",
      "display": "127.0M",
      "asOf": "2026-11-20"
    },
    "F155": {
      "label": "License, puppeteer-core",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F156": {
      "label": "Package release, puppeteer-core",
      "display": "25.18.1",
      "asOf": "2026-11-20"
    },
    "F157": {
      "label": "Package release date, puppeteer-core",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F158": {
      "label": "Install, puppeteer-core",
      "display": "npm install puppeteer-core",
      "asOf": "2026-11-20"
    },
    "F159": {
      "label": "Quickstart, puppeteer-core",
      "display": "import puppeteer from 'puppeteer-core';\n\nconst browser = await puppeteer.launch({ channel: 'chrome' });\nconst page = await browser.newPage();\nawait page.setContent('<h1>Hello</h1>');\nawait page.pdf({ path: 'output.pdf' });\nawait browser.close();\n",
      "asOf": "2026-11-20"
    },
    "F160": {
      "label": "Official description, puppeteer-core",
      "display": "A high-level API to control headless Chrome over the DevTools Protocol",
      "asOf": "2026-11-20"
    },
    "F161": {
      "label": "Quickstart source file, puppeteer-core",
      "display": "puppeteer.page.pdf",
      "asOf": "2026-11-20"
    },
    "F162": {
      "label": "Repository stars, puppeteer-core",
      "display": "95.8K",
      "asOf": "2026-11-20"
    },
    "F163": {
      "label": "Accepts a DOM element, puppeteer-core",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F164": {
      "label": "HTML header/footer templates, puppeteer-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F165": {
      "label": "Page-range selection, puppeteer-core",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F166": {
      "label": "Native rendering role, puppeteer-core",
      "display": "Puppeteer browser/Page implementation with explicit browser/channel setup.",
      "asOf": "2026-11-20"
    },
    "F167": {
      "label": "Starter host requirements, puppeteer-core",
      "display": "Node ES module and installed Google Chrome discoverable by channel=chrome; bare core requires an explicit installed browser/channel or connection. PDF result is Uint8Array; path option also writes the file.",
      "asOf": "2026-11-20"
    },
    "F168": {
      "label": "Project function, puppeteer-core",
      "display": "private async convertFileToPDF(\n  tpl: TemplateResult,\n  file: File,\n  { postprocess = true }: ConvertPDFOption = {}\n): Promise<File> {\n  const html = new File(file.absolutePath)\n  html.buffer = Buffer.from(tpl.result)\n\n  const ret = file.convert(this.options.output, { extension: 'pdf' })\n\n  // Generate PDF\n  let outlineData: OutlineData | undefined\n\n  ret.buffer = Buffer.from(\n    await this.usePuppeteer(html, async (page, { render }) => {\n      await render()\n\n      if (tpl.rendered.outline) {\n        outlineData = await page.evaluate(\n          pptrOutlinePositionResolver,\n          tpl.rendered.outline.flatMap((o) => o.headings),\n          pdfOutlineAttr\n        )\n      }\n\n      return await page.pdf({\n        printBackground: true,\n        preferCSSPageSize: true, // This option is not working in WebDriver BiDi\n        width: tpl.rendered.size.width,\n        height: tpl.rendered.size.height,\n      })\n    })\n  )\n\n  if (postprocess) {\n    // Apply PDF metadata and annotations\n    const creationDate = new Date()\n    const { PDFDocument, PDFHexString, PDFString } = await import('pdf-lib')\n    const pdfDoc = await PDFDocument.load(ret.buffer)\n\n    pdfDoc.setCreator(CREATED_BY_MARP)\n    pdfDoc.setProducer(CREATED_BY_MARP)\n    pdfDoc.setCreationDate(creationDate)\n    pdfDoc.setModificationDate(creationDate)\n\n    if (tpl.rendered.title) pdfDoc.setTitle(tpl.rendered.title)\n    if (tpl.rendered.description) pdfDoc.setSubject(tpl.rendered.description)\n    if (tpl.rendered.author) pdfDoc.setAuthor(tpl.rendered.author)\n    if (tpl.rendered.keywords)\n      pdfDoc.setKeywords([tpl.rendered.keywords.join('; ')])\n\n    if (this.options.pdfOutlines && tpl.rendered.outline) {\n      await setOutline(\n        pdfDoc,\n        generatePDFOutlines(tpl.rendered.outline, {\n          ...this.options.pdfOutlines,\n          data: outlineData,\n          size: tpl.rendered.size,\n        })\n      )\n    }\n\n    if (this.options.pdfNotes) {\n      const pages = pdfDoc.getPages()\n\n      for (let i = 0, len = pages.length; i < len; i += 1) {\n        const notes = tpl.rendered.comments[i].join('\\n\\n')\n\n        if (notes) {\n          const noteAnnot = pdfDoc.context.obj({\n            Type: 'Annot',\n            Subtype: 'Text',\n            Rect: [0, 20, 20, 20],\n            Contents: PDFHexString.fromText(notes),\n            T: tpl.rendered.author\n              ? PDFHexString.fromText(tpl.rendered.author)\n              : undefined,\n            Name: 'Note',\n            Subj: PDFString.of('Note'),\n            C: [1, 0.92, 0.42], // RGB\n            CA: 0.25, // Alpha\n          })\n\n          pages[i].node.addAnnot(pdfDoc.context.register(noteAnnot))\n        }\n      }\n    }\n\n    // Apply modified PDF to buffer\n    ret.buffer = Buffer.from(await pdfDoc.save())\n  }\n\n  return ret\n}\n",
      "asOf": "2026-11-20"
    },
    "F169": {
      "label": "Project source file, puppeteer-core",
      "display": "src/converter.ts",
      "asOf": "2026-11-20"
    },
    "F170": {
      "label": "Project full_name, puppeteer-core",
      "display": "marp-team/marp-cli",
      "asOf": "2026-11-20"
    },
    "F171": {
      "label": "Project stargazers_count, puppeteer-core",
      "display": "3.9K",
      "asOf": "2026-11-20"
    },
    "F172": {
      "label": "Library name, jspdf",
      "display": "jspdf",
      "asOf": "2026-11-20"
    },
    "F173": {
      "label": "Monthly downloads, jspdf",
      "display": "83.5M",
      "asOf": "2026-11-20"
    },
    "F174": {
      "label": "License, jspdf",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F175": {
      "label": "Package release, jspdf",
      "display": "4.2.1",
      "asOf": "2026-11-20"
    },
    "F176": {
      "label": "Package release date, jspdf",
      "display": "Mar 2026",
      "asOf": "2026-11-20"
    },
    "F177": {
      "label": "Install, jspdf",
      "display": "npm install jspdf html2canvas dompurify",
      "asOf": "2026-11-20"
    },
    "F178": {
      "label": "Quickstart, jspdf",
      "display": "import { jsPDF } from 'jspdf';\n\nconst pdf = new jsPDF();\nawait pdf.html('<h1>Hello</h1>');\npdf.save('output.pdf');\n",
      "asOf": "2026-11-20"
    },
    "F179": {
      "label": "Repository stars, jspdf",
      "display": "31.3K",
      "asOf": "2026-11-20"
    },
    "F180": {
      "label": "Accepts a DOM element, jspdf",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F181": {
      "label": "HTML header/footer templates, jspdf",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F182": {
      "label": "Page-range selection, jspdf",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F183": {
      "label": "Native rendering role, jspdf",
      "display": "In-page HTML-to-PDF through jsPDF HTML/Context2D rendering; optional HTML dependencies required.",
      "asOf": "2026-11-20"
    },
    "F184": {
      "label": "Starter host requirements, jspdf",
      "display": "Browser bundler/DOM and installed optional HTML dependencies html2canvas and DOMPurify. The HTML method is asynchronous and the save call follows completion; no Node-only rendering is implied.",
      "asOf": "2026-11-20"
    },
    "F185": {
      "label": "HTML rendering path, jspdf",
      "display": "jsPDF Canvas/Context2D rendering with text drawing and optional raster images; browser CSS fidelity is not guaranteed.",
      "asOf": "2026-11-20"
    },
    "F186": {
      "label": "Project function, jspdf",
      "display": "export async function exportAtsSafePdf(node, filename = 'resume.pdf', opts = {}) {\n  const {\n    orientation = 'portrait',\n    format = 'a4',\n    marginMm = 10,\n  } = opts\n\n  if (!node) throw new Error('exportAtsSafePdf: node is required')\n\n  // Try text-layer path first\n  try {\n    const pdf = new jsPDF({\n      orientation,\n      unit: 'mm',\n      format,\n    })\n    await pdf.html(node, {\n      autoPaging: 'text',\n      html2canvas: {\n        scale: 2,\n        useCORS: true,\n        backgroundColor: '#ffffff',\n        windowWidth: node.scrollWidth,\n      },\n      margin: [marginMm, marginMm, marginMm, marginMm],\n      width: format === 'letter' ? 195.9 : 190,\n      windowWidth: node.scrollWidth,\n    })\n    pdf.save(filename)\n    return { ok: true, method: 'text', filename }\n  } catch (err) {\n    // Fall through to canvas fallback\n    console.warn('ATS PDF (text) failed, falling back to canvas raster:', err)\n  }\n\n  // Fallback: rasterize the whole node and slice into pages\n  const canvas = await html2canvas(node, {\n    scale: 2,\n    useCORS: true,\n    backgroundColor: '#ffffff',\n    windowWidth: node.scrollWidth,\n    windowHeight: node.scrollHeight,\n  })\n\n  const pdf = new jsPDF({ orientation, unit: 'mm', format })\n  const pageWidth = pdf.internal.pageSize.getWidth()\n  const pageHeight = pdf.internal.pageSize.getHeight()\n  const imgWidth = pageWidth\n  const imgHeight = (canvas.height * imgWidth) / canvas.width\n  const pageHeightInCanvas = (pageHeight * canvas.width) / pageWidth\n\n  if (imgHeight <= pageHeight) {\n    pdf.addImage(canvas.toDataURL('image/jpeg', 0.92), 'JPEG', 0, 0, imgWidth, imgHeight)\n  } else {\n    let yOffset = 0\n    let pageIdx = 0\n    while (yOffset < canvas.height) {\n      const sliceHeight = Math.min(pageHeightInCanvas, canvas.height - yOffset)\n      const pageCanvas = document.createElement('canvas')\n      pageCanvas.width = canvas.width\n      pageCanvas.height = sliceHeight\n      const ctx = pageCanvas.getContext('2d')\n      ctx.fillStyle = '#ffffff'\n      ctx.fillRect(0, 0, pageCanvas.width, pageCanvas.height)\n      ctx.drawImage(canvas, 0, yOffset, canvas.width, sliceHeight, 0, 0, canvas.width, sliceHeight)\n      const imgData = pageCanvas.toDataURL('image/jpeg', 0.92)\n      if (pageIdx > 0) pdf.addPage()\n      pdf.addImage(\n        imgData, 'JPEG', 0, 0,\n        imgWidth,\n        (sliceHeight * imgWidth) / canvas.width,\n      )\n      yOffset += sliceHeight\n      pageIdx += 1\n    }\n  }\n  pdf.save(filename)\n  return { ok: true, method: 'canvas', filename }\n}\n",
      "asOf": "2026-11-20"
    },
    "F187": {
      "label": "Project source file, jspdf",
      "display": "frontend/src/services/atsPdfExport.js",
      "asOf": "2026-11-20"
    },
    "F188": {
      "label": "Project full_name, jspdf",
      "display": "anurag3407/career-pilot",
      "asOf": "2026-11-20"
    },
    "F189": {
      "label": "Project stargazers_count, jspdf",
      "display": "135",
      "asOf": "2026-11-20"
    },
    "F190": {
      "label": "Library name, electron",
      "display": "electron",
      "asOf": "2026-11-20"
    },
    "F191": {
      "label": "Monthly downloads, electron",
      "display": "47.7M",
      "asOf": "2026-11-20"
    },
    "F192": {
      "label": "License, electron",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F193": {
      "label": "Package release, electron",
      "display": "45.4.1",
      "asOf": "2026-11-20"
    },
    "F194": {
      "label": "Package release date, electron",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F195": {
      "label": "Install, electron",
      "display": "npm install --save-dev electron",
      "asOf": "2026-11-20"
    },
    "F196": {
      "label": "Quickstart, electron",
      "display": "const { app, BrowserWindow } = require('electron');\nconst fs = require('node:fs/promises');\n\napp.whenReady().then(async () => {\n  const win = new BrowserWindow({ show: false });\n  try {\n    await win.loadURL('data:text/html,<h1>Hello</h1>');\n    const pdf = await win.webContents.printToPDF({});\n    await fs.writeFile('output.pdf', pdf);\n  } finally {\n    win.destroy();\n    app.quit();\n  }\n});\n",
      "asOf": "2026-11-20"
    },
    "F197": {
      "label": "Official description, electron",
      "display": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
      "asOf": "2026-11-20"
    },
    "F198": {
      "label": "Quickstart source file, electron",
      "display": "docs/api/app.md",
      "asOf": "2026-11-20"
    },
    "F199": {
      "label": "Repository stars, electron",
      "display": "124.0K",
      "asOf": "2026-11-20"
    },
    "F200": {
      "label": "Accepts a DOM element, electron",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F201": {
      "label": "HTML header/footer templates, electron",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F202": {
      "label": "Page-range selection, electron",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F203": {
      "label": "Native rendering role, electron",
      "display": "Desktop main-process printing of an existing WebContents document.",
      "asOf": "2026-11-20"
    },
    "F204": {
      "label": "Starter host requirements, electron",
      "display": "Save this disclosed recipe as main.js and run npx electron main.js after installing Electron. It must execute in the Electron main process after app readiness, with a working desktop/headless display environment and writable output path.",
      "asOf": "2026-11-20"
    },
    "F205": {
      "label": "Project function, electron",
      "display": "async function print() {\n    const filePath = electron.dialog.showSaveDialogSync(browserWindow, {\n        defaultPath: coreUtils.formatDownloadTitle(title, \"file\", \"application/pdf\"),\n        filters: [\n            {\n                name: t(\"pdf.export_filter\"),\n                extensions: [\"pdf\"]\n            }\n        ]\n    });\n    if (!filePath) return;\n\n    let buffer: Buffer;\n    try {\n        buffer = await browserWindow.webContents.printToPDF({\n            landscape,\n            pageSize,\n            scale,\n            margins: parseMargins(margins),\n            pageRanges: pageRanges || undefined,\n            preferCSSPageSize: false,\n            generateDocumentOutline: true,\n            generateTaggedPDF: true,\n            printBackground: true,\n            displayHeaderFooter: true,\n            headerTemplate: `<div></div>`,\n            footerTemplate: `\n                <div class=\"pageNumber\" style=\"width: 100%; text-align: center; font-size: 10pt;\">\n                </div>\n            `\n        });\n    } catch (_e) {\n        electron.dialog.showErrorBox(t(\"pdf.unable-to-export-title\"), t(\"pdf.unable-to-export-message\"));\n        return;\n    }\n\n    try {\n        await fs.writeFile(filePath, buffer);\n    } catch (_e) {\n        electron.dialog.showErrorBox(t(\"pdf.unable-to-export-title\"), t(\"pdf.unable-to-save-message\"));\n        return;\n    }\n\n    electron.shell.openPath(filePath);\n}\n",
      "asOf": "2026-11-20"
    },
    "F206": {
      "label": "Project source file, electron",
      "display": "apps/desktop/src/services/printing.ts",
      "asOf": "2026-11-20"
    },
    "F207": {
      "label": "Project full_name, electron",
      "display": "TriliumNext/Trilium",
      "asOf": "2026-11-20"
    },
    "F208": {
      "label": "Project stargazers_count, electron",
      "display": "39.0K",
      "asOf": "2026-11-20"
    },
    "F209": {
      "label": "Library name, webdriverio",
      "display": "webdriverio",
      "asOf": "2026-11-20"
    },
    "F210": {
      "label": "Monthly downloads, webdriverio",
      "display": "12.8M",
      "asOf": "2026-11-20"
    },
    "F211": {
      "label": "License, webdriverio",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F212": {
      "label": "Package release, webdriverio",
      "display": "10.2.0",
      "asOf": "2026-11-20"
    },
    "F213": {
      "label": "Package release date, webdriverio",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F214": {
      "label": "Install, webdriverio",
      "display": "npm install webdriverio",
      "asOf": "2026-11-20"
    },
    "F215": {
      "label": "Quickstart, webdriverio",
      "display": "import { remote } from 'webdriverio';\n\nconst browser = await remote({\n  capabilities: { browserName: 'chrome', 'goog:chromeOptions': { args: ['--headless=new'] } }\n});\ntry {\n  await browser.url('data:text/html,<h1>Hello</h1>');\n  await browser.savePDF('output.pdf');\n} finally {\n  await browser.deleteSession();\n}\n",
      "asOf": "2026-11-20"
    },
    "F216": {
      "label": "Official description, webdriverio",
      "display": "Next-gen browser and mobile automation test framework for Node.js",
      "asOf": "2026-11-20"
    },
    "F217": {
      "label": "Quickstart source file, webdriverio",
      "display": "packages/webdriverio/src/index.ts",
      "asOf": "2026-11-20"
    },
    "F218": {
      "label": "Repository stars, webdriverio",
      "display": "9.9K",
      "asOf": "2026-11-20"
    },
    "F219": {
      "label": "Accepts a DOM element, webdriverio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F220": {
      "label": "HTML header/footer templates, webdriverio",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F221": {
      "label": "Page-range selection, webdriverio",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F222": {
      "label": "Native rendering role, webdriverio",
      "display": "Current WebDriver browsing-context printing through BiDi or Classic.",
      "asOf": "2026-11-20"
    },
    "F223": {
      "label": "Starter host requirements, webdriverio",
      "display": "Node ES module, compatible installed Chrome/driver, and a supported WebDriver session. Current savePDF distinguishes BiDi browsingContext.print from Classic printPage; this starter deliberately runs Chrome headless.",
      "asOf": "2026-11-20"
    },
    "F224": {
      "label": "Library name, chrome-remote-interface",
      "display": "chrome-remote-interface",
      "asOf": "2026-11-20"
    },
    "F225": {
      "label": "Monthly downloads, chrome-remote-interface",
      "display": "12.5M",
      "asOf": "2026-11-20"
    },
    "F226": {
      "label": "License, chrome-remote-interface",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F227": {
      "label": "Package release, chrome-remote-interface",
      "display": "0.34.0",
      "asOf": "2026-11-20"
    },
    "F228": {
      "label": "Package release date, chrome-remote-interface",
      "display": "Feb 2026",
      "asOf": "2026-11-20"
    },
    "F229": {
      "label": "Install, chrome-remote-interface",
      "display": "npm install chrome-remote-interface",
      "asOf": "2026-11-20"
    },
    "F230": {
      "label": "Quickstart, chrome-remote-interface",
      "display": "const CDP = require('chrome-remote-interface');\nconst fs = require('node:fs/promises');\n\n(async () => {\n  const client = await CDP();\n  try {\n    await client.Page.enable();\n    const loaded = client.Page.loadEventFired();\n    await client.Page.navigate({ url: 'data:text/html,<h1>Hello</h1>' });\n    await loaded;\n    const { data } = await client.Page.printToPDF({});\n    await fs.writeFile('output.pdf', Buffer.from(data, 'base64'));\n  } finally {\n    await client.close();\n  }\n})();\n",
      "asOf": "2026-11-20"
    },
    "F231": {
      "label": "Official description, chrome-remote-interface",
      "display": "Chrome Debugging Protocol interface",
      "asOf": "2026-11-20"
    },
    "F232": {
      "label": "Quickstart source file, chrome-remote-interface",
      "display": "README.md",
      "asOf": "2026-11-20"
    },
    "F233": {
      "label": "Repository stars, chrome-remote-interface",
      "display": "4.6K",
      "asOf": "2026-11-20"
    },
    "F234": {
      "label": "Accepts a DOM element, chrome-remote-interface",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F235": {
      "label": "HTML header/footer templates, chrome-remote-interface",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F236": {
      "label": "Page-range selection, chrome-remote-interface",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F237": {
      "label": "Native rendering role, chrome-remote-interface",
      "display": "Low-level Chrome DevTools target printing over a debug connection.",
      "asOf": "2026-11-20"
    },
    "F238": {
      "label": "Starter host requirements, chrome-remote-interface",
      "display": "Node/CommonJS and a separately running current Chromium with remote debugging enabled (default port9222) and a reachable page target. Enables Page events and registers the load promise before navigation; Chromium returns Base64 PDF data.",
      "asOf": "2026-11-20"
    },
    "F239": {
      "label": "Project function, chrome-remote-interface",
      "display": "async function generate(html: string, options: CreateOptions, tab: CDP.Target): Promise<CreateResult> {\n  await throwIfExitCondition(options);\n  const client = await CDP({ ...options, target: tab });\n  const connectionLostOrTimeout = new Promise<never>((_, reject) => {\n    client.on('disconnect', () => {\n      const error = new ConnectionLostError();\n      options._exitCondition = error;\n      reject(error);\n    });\n    if (options.timeout != null && options.timeout >= 0) {\n      setTimeout(() => {\n        const error = new Error('HtmlPdf.create() timed out.');\n        options._exitCondition = error;\n        reject(error);\n      }, options.timeout);\n    }\n  });\n\n  async function generateInternal() {\n    try {\n      await beforeNavigate(options, client);\n      const {Page} = client;\n      if (/^(https?|file|data):/i.test(html)) {\n        await Promise.all([\n          Page.navigate({url: html}),\n          Page.loadEventFired(),\n        ]); // Resolve order varies\n      } else {\n        const {frameTree} = await Page.getResourceTree();\n        await Promise.all([\n          Page.setDocumentContent({html, frameId: frameTree.frame.id}),\n          Page.loadEventFired(),\n        ]); // Resolve order varies\n      }\n      await afterNavigate(options, client);\n      let base64Result: string;\n      if (options.screenshotOptions) {\n        // https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-captureScreenshot\n        const screenshot = await Page.captureScreenshot(options.screenshotOptions);\n        base64Result = screenshot.data;\n      } else {\n        // https://chromedevtools.github.io/debugger-protocol-viewer/tot/Page/#method-printToPDF\n        const pdf = await Page.printToPDF(options.printOptions);\n        base64Result = pdf.data;\n      }\n      await throwIfExitCondition(options);\n      return new CreateResult(base64Result, options._mainRequestResponse);\n    } catch (error) {\n      if (options._exitCondition) {\n        throw options._exitCondition;\n      }\n      if (hasErrorCode(error, ['ECONNABORTED', 'ECONNRESET', 'EPIPE'])) {\n        const connectionLostError = new ConnectionLostError();\n        options._exitCondition = connectionLostError;\n        throw connectionLostError;\n      }\n      throw error;\n    } finally {\n      client.close();\n    }\n  }\n\n  return Promise.race([\n    connectionLostOrTimeout,\n    generateInternal(),\n  ]);\n}\n",
      "asOf": "2026-11-20"
    },
    "F240": {
      "label": "Project source file, chrome-remote-interface",
      "display": "src/index.ts",
      "asOf": "2026-11-20"
    },
    "F241": {
      "label": "Project full_name, chrome-remote-interface",
      "display": "westy92/html-pdf-chrome",
      "asOf": "2026-11-20"
    },
    "F242": {
      "label": "Project stargazers_count, chrome-remote-interface",
      "display": "807",
      "asOf": "2026-11-20"
    },
    "F243": {
      "label": "Library name, selenium-webdriver",
      "display": "selenium-webdriver",
      "asOf": "2026-11-20"
    },
    "F244": {
      "label": "Monthly downloads, selenium-webdriver",
      "display": "8.2M",
      "asOf": "2026-11-20"
    },
    "F245": {
      "label": "License, selenium-webdriver",
      "display": "Apache-2.0",
      "asOf": "2026-11-20"
    },
    "F246": {
      "label": "Package release, selenium-webdriver",
      "display": "4.53.0",
      "asOf": "2026-11-20"
    },
    "F247": {
      "label": "Package release date, selenium-webdriver",
      "display": "Nov 2026",
      "asOf": "2026-11-20"
    },
    "F248": {
      "label": "Install, selenium-webdriver",
      "display": "npm install selenium-webdriver",
      "asOf": "2026-11-20"
    },
    "F249": {
      "label": "Quickstart, selenium-webdriver",
      "display": "const { Builder } = require('selenium-webdriver');\nconst chrome = require('selenium-webdriver/chrome');\nconst fs = require('node:fs/promises');\n\n(async () => {\n  const options = new chrome.Options().addArguments('--headless=new');\n  const driver = await new Builder().forBrowser('chrome').setChromeOptions(options).build();\n  try {\n    await driver.get('data:text/html,<h1>Hello</h1>');\n    await fs.writeFile('output.pdf', await driver.printPage({}), 'base64');\n  } finally {\n    await driver.quit();\n  }\n})();\n",
      "asOf": "2026-11-20"
    },
    "F250": {
      "label": "Official description, selenium-webdriver",
      "display": "The official WebDriver JavaScript bindings from the Selenium project",
      "asOf": "2026-11-20"
    },
    "F251": {
      "label": "Quickstart source file, selenium-webdriver",
      "display": "javascript/selenium-webdriver/lib/webdriver.js",
      "asOf": "2026-11-20"
    },
    "F252": {
      "label": "Repository stars, selenium-webdriver",
      "display": "34.6K",
      "asOf": "2026-11-20"
    },
    "F253": {
      "label": "Accepts a DOM element, selenium-webdriver",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F254": {
      "label": "HTML header/footer templates, selenium-webdriver",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F255": {
      "label": "Page-range selection, selenium-webdriver",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F256": {
      "label": "Native rendering role, selenium-webdriver",
      "display": "W3C WebDriver print command returning Base64 PDF data.",
      "asOf": "2026-11-20"
    },
    "F257": {
      "label": "Starter host requirements, selenium-webdriver",
      "display": "Node/CommonJS plus compatible installed Chrome/ChromeDriver or correctly configured Selenium management. This uses the Chrome driver in headless mode; printPage returns a Base64 string, not a Buffer.",
      "asOf": "2026-11-20"
    },
    "F258": {
      "label": "Library name, html2pdf.js",
      "display": "html2pdf.js",
      "asOf": "2026-11-20"
    },
    "F259": {
      "label": "Monthly downloads, html2pdf.js",
      "display": "6.3M",
      "asOf": "2026-11-20"
    },
    "F260": {
      "label": "License, html2pdf.js",
      "display": "MIT",
      "asOf": "2026-11-20"
    },
    "F261": {
      "label": "Package release, html2pdf.js",
      "display": "0.14.0",
      "asOf": "2026-11-20"
    },
    "F262": {
      "label": "Package release date, html2pdf.js",
      "display": "Jan 2026",
      "asOf": "2026-11-20"
    },
    "F263": {
      "label": "Install, html2pdf.js",
      "display": "npm install html2pdf.js",
      "asOf": "2026-11-20"
    },
    "F264": {
      "label": "Quickstart, html2pdf.js",
      "display": "import html2pdf from 'html2pdf.js';\n\nconst element = document.getElementById('element-to-print');\nhtml2pdf(element);\n",
      "asOf": "2026-11-20"
    },
    "F265": {
      "label": "Repository stars, html2pdf.js",
      "display": "4.9K",
      "asOf": "2026-11-20"
    },
    "F266": {
      "label": "Accepts a DOM element, html2pdf.js",
      "display": "Yes",
      "asOf": "2026-11-20"
    },
    "F267": {
      "label": "HTML header/footer templates, html2pdf.js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F268": {
      "label": "Page-range selection, html2pdf.js",
      "display": "No",
      "asOf": "2026-11-20"
    },
    "F269": {
      "label": "Native rendering role, html2pdf.js",
      "display": "In-page HTML/DOM conversion through html2canvas and jsPDF; default raster PDF pages.",
      "asOf": "2026-11-20"
    },
    "F270": {
      "label": "Starter host requirements, html2pdf.js",
      "display": "Browser bundler/DOM and an existing element-to-print node with loaded styles/assets. npm entrypoint exports the default html2pdf function; Node-only execution has no browser DOM.",
      "asOf": "2026-11-20"
    },
    "F271": {
      "label": "Default text strategy, html2pdf.js",
      "display": "Renders content as image pages; text is not selectable/searchable in that default path.",
      "asOf": "2026-11-20"
    },
    "F272": {
      "label": "Project function, html2pdf.js",
      "display": "async downloadPdf () {\n\t\t\t// Set Element and Html2pdf.js Options\n\t\t\tconst pdfContent = this.$refs.pdfContent\n\t\t\tlet options = this.setOptions()\n\n\t\t\tthis.$emit('beforeDownload', { html2pdf, options, pdfContent })\n\n\t\t\tconst html2PdfSetup = html2pdf().set(options).from(pdfContent)\n\t\t\tlet pdfBlobUrl = null\n\n\t\t\tif (this.previewModal) {\n\t\t\t\tthis.pdfFile = await html2PdfSetup.output('bloburl')\n\t\t\t\tpdfBlobUrl = this.pdfFile\n\t\t\t}\n\n\t\t\tif (this.enableDownload) {\n\t\t\t\tpdfBlobUrl = await html2PdfSetup.save().output('bloburl')\n\t\t\t}\n\n\t\t\tif (pdfBlobUrl) {\n\t\t\t\tconst res = await fetch(pdfBlobUrl)\n\t\t\t\tconst blobFile = await res.blob()\n\t\t\t\tthis.$emit('hasDownloaded', blobFile)\n\t\t\t}\n\n\t\t\tthis.progress = 100\n\t\t}\n",
      "asOf": "2026-11-20"
    },
    "F273": {
      "label": "Project source file, html2pdf.js",
      "display": "src/vue-html2pdf.vue",
      "asOf": "2026-11-20"
    },
    "F274": {
      "label": "Project full_name, html2pdf.js",
      "display": "kempsteven/vue-html2pdf",
      "asOf": "2026-11-20"
    },
    "F275": {
      "label": "Project stargazers_count, html2pdf.js",
      "display": "452",
      "asOf": "2026-11-20"
    },
    "F276": {
      "label": "Prints a browser page to PDF through page.pdf, using print CSS media.",
      "display": "Prints a browser page to PDF through page.pdf, using print CSS media.",
      "asOf": "2026-11-17"
    },
    "F277": {
      "label": "Header and footer templates",
      "display": "Header and footer templates",
      "asOf": "2026-11-17"
    },
    "F278": {
      "label": "Set displayHeaderFooter with HTML templates for the print header and footer.",
      "display": "Set displayHeaderFooter with HTML templates for the print header and footer.",
      "asOf": "2026-11-17"
    },
    "F279": {
      "label": "PDF needs headless Chromium",
      "display": "PDF needs headless Chromium",
      "asOf": "2026-11-17"
    },
    "F280": {
      "label": "Launch headless Chromium for PDF output, because other engines reject page.pdf.",
      "display": "Launch headless Chromium for PDF output, because other engines reject page.pdf.",
      "asOf": "2026-11-17"
    },
    "F281": {
      "label": "Templates ignore page styles",
      "display": "Templates ignore page styles",
      "asOf": "2026-11-17"
    },
    "F282": {
      "label": "Style header and footer templates inline, because page styles do not reach them.",
      "display": "Style header and footer templates inline, because page styles do not reach them.",
      "asOf": "2026-11-17"
    },
    "F283": {
      "label": "Provides the Puppeteer browser API without downloading Chrome during install.",
      "display": "Provides the Puppeteer browser API without downloading Chrome during install.",
      "asOf": "2026-11-17"
    },
    "F284": {
      "label": "Honors CSS page sizes",
      "display": "Honors CSS page sizes",
      "asOf": "2026-11-17"
    },
    "F285": {
      "label": "Set preferCSSPageSize to use the page's CSS @page size over width, height, or format.",
      "display": "Set preferCSSPageSize to use the page's CSS @page size over width, height, or format.",
      "asOf": "2026-11-17"
    },
    "F286": {
      "label": "Fills header and footer values",
      "display": "Fills header and footer values",
      "asOf": "2026-11-17"
    },
    "F287": {
      "label": "Header templates fill in the date, title, URL, page number, and total pages.",
      "display": "Header templates fill in the date, title, URL, page number, and total pages.",
      "asOf": "2026-11-17"
    },
    "F288": {
      "label": "Backgrounds off by default",
      "display": "Backgrounds off by default",
      "asOf": "2026-11-17"
    },
    "F289": {
      "label": "Set printBackground to true to keep background colors and images.",
      "display": "Set printBackground to true to keep background colors and images.",
      "asOf": "2026-11-17"
    },
    "F290": {
      "label": "Needs a browser to connect to",
      "display": "Needs a browser to connect to",
      "asOf": "2026-11-17"
    },
    "F291": {
      "label": "Point puppeteer-core at an installed Chrome before launching.",
      "display": "Point puppeteer-core at an installed Chrome before launching.",
      "asOf": "2026-11-17"
    },
    "F292": {
      "label": "Builds desktop apps with JavaScript, HTML, and CSS.",
      "display": "Builds desktop apps with JavaScript, HTML, and CSS.",
      "asOf": "2026-11-17"
    },
    "F293": {
      "label": "Prints a window's page",
      "display": "Prints a window's page",
      "asOf": "2026-11-17"
    },
    "F294": {
      "label": "Call printToPDF on a window's webContents to print its loaded page.",
      "display": "Call printToPDF on a window's webContents to print its loaded page.",
      "asOf": "2026-11-17"
    },
    "F295": {
      "label": "Backgrounds off by default",
      "display": "Backgrounds off by default",
      "asOf": "2026-11-17"
    },
    "F296": {
      "label": "Set printBackground to true to include background graphics.",
      "display": "Set printBackground to true to include background graphics.",
      "asOf": "2026-11-17"
    },
    "F297": {
      "label": "Automates browsers, and its savePDF command prints the current page to a PDF file.",
      "display": "Automates browsers, and its savePDF command prints the current page to a PDF file.",
      "asOf": "2026-11-17"
    },
    "F298": {
      "label": "Returns the PDF bytes",
      "display": "Returns the PDF bytes",
      "asOf": "2026-11-17"
    },
    "F299": {
      "label": "savePDF writes the file and also returns its bytes as a Buffer.",
      "display": "savePDF writes the file and also returns its bytes as a Buffer.",
      "asOf": "2026-11-17"
    },
    "F300": {
      "label": "Prints through WebDriver BiDi",
      "display": "Prints through WebDriver BiDi",
      "asOf": "2026-11-17"
    },
    "F301": {
      "label": "BiDi sessions print from Chrome, Edge, and Firefox in headed or headless mode.",
      "display": "BiDi sessions print from Chrome, Edge, and Firefox in headed or headless mode.",
      "asOf": "2026-11-17"
    },
    "F302": {
      "label": "File path must end in .pdf",
      "display": "File path must end in .pdf",
      "asOf": "2026-11-17"
    },
    "F303": {
      "label": "Give savePDF a file path that ends in .pdf.",
      "display": "Give savePDF a file path that ends in .pdf.",
      "asOf": "2026-11-17"
    },
    "F304": {
      "label": "Sends Chrome DevTools Protocol commands and receives its events from JavaScript.",
      "display": "Sends Chrome DevTools Protocol commands and receives its events from JavaScript.",
      "asOf": "2026-11-17"
    },
    "F305": {
      "label": "Works with other protocol implementations",
      "display": "Works with other protocol implementations",
      "asOf": "2026-11-17"
    },
    "F306": {
      "label": "Connects to Chrome or another implementation of the DevTools Protocol.",
      "display": "Connects to Chrome or another implementation of the DevTools Protocol.",
      "asOf": "2026-11-17"
    },
    "F307": {
      "label": "Needs a running browser",
      "display": "Needs a running browser",
      "asOf": "2026-11-17"
    },
    "F308": {
      "label": "Start Chrome with a remote debugging port before connecting.",
      "display": "Start Chrome with a remote debugging port before connecting.",
      "asOf": "2026-11-17"
    },
    "F309": {
      "label": "Provides the official Selenium WebDriver bindings, including a command that prints the page.",
      "display": "Provides the official Selenium WebDriver bindings, including a command that prints the page.",
      "asOf": "2026-11-17"
    },
    "F310": {
      "label": "Configurable print settings",
      "display": "Configurable print settings",
      "asOf": "2026-11-17"
    },
    "F311": {
      "label": "Set page layout, margins, and scaling before printing.",
      "display": "Set page layout, margins, and scaling before printing.",
      "asOf": "2026-11-17"
    },
    "F312": {
      "label": "Returns encoded PDF data",
      "display": "Returns encoded PDF data",
      "asOf": "2026-11-17"
    },
    "F313": {
      "label": "Decode the returned string before writing it to a PDF file.",
      "display": "Decode the returned string before writing it to a PDF file.",
      "asOf": "2026-11-17"
    }
  },
  "dataCheckedAt": "2026-11-20",
  "agent": {
    "exaCall": {
      "endpoint": "/search",
      "body": {
        "query": "Best JavaScript HTML to PDF libraries Puppeteer Playwright html2pdf.js jsPDF code examples",
        "numResults": 5
      },
      "docsUrl": "https://exa.ai/docs/reference/search"
    },
    "calls": []
  }
}
