{
 "kind": "tool",
 "slug": "pdfjs-dist",
 "path": "tools/pdfjs-dist/",
 "name": "PDF.js",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Files, images and media",
   "tools/files-media/"
  ]
 ],
 "lead": "Mozilla's PDF rendering library for displaying and working with PDFs in browsers.",
 "chips": [
  {
   "label": "Files, images and media",
   "path": "tools/files-media/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install pdfjs-dist"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/mozilla/pdf.js"
  },
  {
   "label": "Website",
   "href": "https://mozilla.github.io/pdf.js/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from npm.",
   "src": "https://github.com/mozilla/pdf.js"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 23, 2026",
   "note": "Latest GitHub release Nov 1, 2026. ",
   "src": "https://github.com/mozilla/pdf.js"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "91 projects",
   "status": "info",
   "sub": "#8 of 281 in its category",
   "note": "Dependency in 91 public GitHub projects set up for AI coding agents that we scanned (1.5%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What PDF.js does",
   "parts": [
    {
     "t": "prose",
     "text": "Mozilla's PDF rendering library for displaying and working with PDFs in browsers."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "PDF.js popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "84",
       "of": "/ 100",
       "l": "Gid Score, #44 overall"
      },
      {
       "n": "62.6M",
       "l": "downloads a week, npm"
      },
      {
       "n": "54.2K",
       "l": "GitHub stars"
      },
      {
       "n": "91",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How PDF.js is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "PDF.js is a dependency in 91 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (1.9% of the 4,867 JavaScript/TypeScript ones), #8 of 281 in files, images and media.",
      "Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 325; those are left out of every share on this page.",
      "The most used alternative in our scan is pdf-parse (65 projects).",
      "Projects that use it most often also use Vitest (62.6%), tsx (52.7%), Zod (68.1%).",
      "It is more common in projects set up for OpenClaw (6.3%) than for GitHub Copilot (1.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "By coding agent"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "66 projects, 2.0%",
       "v": "Claude Code",
       "path": "agents/claude-code/"
      },
      {
       "l": "31 projects, 1.0%",
       "v": "GitHub Copilot",
       "path": "agents/github-copilot/"
      },
      {
       "l": "29 projects, 1.2%",
       "v": "Cursor",
       "path": "agents/cursor/"
      },
      {
       "l": "21 projects, 6.3%",
       "v": "OpenClaw",
       "path": "agents/openclaw/"
      },
      {
       "l": "19 projects, 4.0%",
       "v": "Gemini CLI",
       "path": "agents/gemini-cli/"
      },
      {
       "l": "9 projects, 1.9%",
       "v": "OpenAI Codex",
       "path": "agents/openai-codex/"
      },
      {
       "l": "7 projects, 2.0%",
       "v": "OpenCode",
       "path": "agents/opencode/"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 62.6% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 52.7% of its projects",
       "v": "tsx",
       "path": "tools/tsx/"
      },
      {
       "l": "In 68.1% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 92.3% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 38.5% of its projects",
       "v": "Sharp",
       "path": "tools/sharp/"
      },
      {
       "l": "In 54.9% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      },
      {
       "l": "In 34.1% of its projects",
       "v": "AWS SDK for JavaScript (S3)",
       "path": "tools/aws-sdk-client-s3/"
      },
      {
       "l": "In 45.1% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about PDF.js",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Head to head",
       "items": [
        {
         "text": "PDF.js vs pdf-parse",
         "note": "used together in 15 projects",
         "path": "tools/compare/pdfjs-vs-pdf-parse/"
        }
       ]
      },
      {
       "title": "More in Files, images and media",
       "path": "tools/files-media/",
       "items": [
        {
         "text": "Sharp",
         "path": "tools/sharp/"
        },
        {
         "text": "Pillow",
         "path": "tools/pillow/"
        },
        {
         "text": "Nodemailer",
         "path": "tools/nodemailer/"
        },
        {
         "text": "jsPDF",
         "path": "tools/jspdf/"
        },
        {
         "text": "SheetJS",
         "path": "tools/xlsx/"
        },
        {
         "text": "qrcode (JavaScript)",
         "path": "tools/qrcode-npm/"
        },
        {
         "text": "JSZip",
         "path": "tools/jszip/"
        },
        {
         "text": "openpyxl",
         "path": "tools/openpyxl/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "PDF.js",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 84",
        "62.6M/wk"
       ]
      },
      {
       "name": "pdf-parse",
       "why": "Pure TypeScript module for extracting text, images and tables from PDFs cross-platform.",
       "path": "tools/pdf-parse/",
       "facts": [
        "Apache-2.0",
        "Gid 60",
        "13.9M/wk"
       ]
      },
      {
       "name": "pdf-lib",
       "why": "Create and modify PDF documents with JavaScript in Node.js and browsers.",
       "path": "tools/pdf-lib/",
       "facts": [
        "MIT",
        "Gid 74",
        "34.8M/wk"
       ]
      }
     ],
     "more": "Compare PDF.js with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install pdfjs-dist"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for PDF.js yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm pdfjs-dist"
  ],
  [
   "Category",
   "Files, images and media"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "84.5"
  ],
  [
   "Rank in category",
   "#8 of 281"
  ],
  [
   "GitHub",
   "mozilla/pdf.js"
  ],
  [
   "Last change",
   "Nov 23, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/mozilla.png"
}