
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@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 8,475 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.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.