
Security News
/Research
Popular node-ipc npm Package Infected with Credential Stealer
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.
@embedpdf/pdfium
Advanced tools
PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.
PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.
For complete documentation, examples, and API reference, please visit:
PDFium is an open-source PDF rendering engine originally developed by Foxit Software and later released as open source by Google. Written in C++, it's the same engine that powers PDF viewing in Chrome and numerous other applications. This package brings native-quality PDF capabilities to the browser through WebAssembly, without requiring any server-side processing.
# npm
npm install @embedpdf/pdfium
# pnpm
pnpm add @embedpdf/pdfium
# yarn
yarn add @embedpdf/pdfium
# bun
bun add @embedpdf/pdfium
import { init, WrappedPdfiumModule } from '@embedpdf/pdfium';
const pdfiumWasm =
'https://cdn.jsdelivr.net/npm/@embedpdf/pdfium/dist/pdfium.wasm';
let pdfiumInstance = null;
async function initializePdfium() {
if (pdfiumInstance) return pdfiumInstance;
const response = await fetch(pdfiumWasm);
const wasmBinary = await response.arrayBuffer();
pdfiumInstance = await init({ wasmBinary });
// Initialize the PDFium extension library
// This is required before performing any PDF operations
pdfiumInstance.PDFiumExt_Init();
return pdfiumInstance;
}
// Usage
async function renderPdf() {
const pdfium = await initializePdfium();
// Use pdfium to load and render PDFs
// See documentation for detailed examples
}
Check out our comprehensive documentation at embedpdf.com/docs/pdfium for:
This package is licensed under the MIT License - see the LICENSE file for details.
It also bundles PDFium in WebAssembly form,
which is licensed under the Apache License, Version 2.0.
FAQs
PDFium WebAssembly for the web platform. This package provides a powerful JavaScript interface to PDFium, enabling high-quality PDF rendering and manipulation directly in web applications.
The npm package @embedpdf/pdfium receives a total of 145,249 weekly downloads. As such, @embedpdf/pdfium popularity was classified as popular.
We found that @embedpdf/pdfium demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.

Security News
TeamPCP and BreachForums are promoting a Shai-Hulud supply chain attack contest with a $1,000 prize for the biggest package compromise.

Security News
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.