
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@types/pdf2html
Advanced tools
TypeScript definitions for pdf2html
npm install --save @types/pdf2html
This package contains type definitions for pdf2html (https://github.com/shebinleo/pdf2html#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdf2html.
// Project: https://github.com/shebinleo/pdf2html
// Definitions by: manuzcheruz <https://github.com/manuzcheruz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import { Stream } from "stream";
/**
* Configuration options for PDF to HTML conversion
*/
interface PDF2HTMLOptions {
binary?: string; // Path to the pdftohtml binary
first_page?: number; // First page to convert
last_page?: number; // Last page to convert
complex?: boolean; // Generate complex output
single_page?: boolean; // Generate a single HTML file
no_background?: boolean; // No background images
no_frames?: boolean; // No frames in HTML
zoom?: number; // Zoom factor
}
/**
* Error type for PDF2HTML conversion errors
*/
interface PDF2HTMLError extends Error {
code?: string;
path?: string;
syscall?: string;
}
/**
* Callback function type for async operations
*/
type PDF2HTMLCallback = (error: PDF2HTMLError | null, html?: string) => void;
/**
* Convert PDF file to HTML synchronously
* @param source - Path to PDF file or readable stream
* @param options - Conversion options
* @returns HTML string
*/
declare function pdf2htmlSync(source: string | Stream, options?: PDF2HTMLOptions): string;
/**
* Convert PDF file to HTML asynchronously
* @param source - Path to PDF file or readable stream
* @param options - Conversion options
* @param callback - Callback function
*/
declare function pdf2html(source: string | Stream, options: PDF2HTMLOptions, callback: PDF2HTMLCallback): void;
/**
* Convert PDF file to HTML asynchronously (overload without options)
* @param source - Path to PDF file or readable stream
* @param callback - Callback function
*/
declare function pdf2html(source: string | Stream, callback: PDF2HTMLCallback): void;
declare namespace pdf2html {
export { pdf2htmlSync };
}
export = pdf2html;
These definitions were written by manuz cheruz.
FAQs
TypeScript definitions for pdf2html
The npm package @types/pdf2html receives a total of 110 weekly downloads. As such, @types/pdf2html popularity was classified as not popular.
We found that @types/pdf2html demonstrated a not healthy version release cadence and project activity because the last version was released 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
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain