@types/pdfobject
TypeScript icon, indicating that this package has built-in type declarations

2.2.5 • Public • Published

Installation

npm install --save @types/pdfobject

Summary

This package contains type definitions for pdfobject (https://github.com/pipwerks/PDFObject).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pdfobject.

index.d.ts

export as namespace PDFObject;
export function embed(url: string, target?: any, options?: Options): HTMLElement;
export const pdfobjectversion: "2.2.3";
export const supportsPDFs: boolean;

export interface Options {
    id?: string | undefined;
    page?: boolean | undefined;
    pdfOpenParams?: Record<string, string | number | boolean> | undefined;
    fallbackLink?: boolean | string | undefined;
    width?: string | undefined;
    height?: string | undefined;
    assumptionMode?: boolean | undefined;
    forcePDFJS?: boolean | undefined;
    supportRedirect?: boolean | undefined;
    omitInlineStyles?: boolean | undefined;
    suppressConsole?: boolean | undefined;
    forceIframe?: boolean | undefined;
    PDFJS_URL?: string | undefined;
}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Niels Boogaard, and Piotr Błażejewicz.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @types/pdfobject

      Weekly Downloads

      22,868

      Version

      2.2.5

      License

      MIT

      Unpacked Size

      4.29 kB

      Total Files

      5

      Last publish

      Collaborators

      • types