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

1.9.5 • Public • Published

Installation

npm install --save @types/jsreport-pdf-utils

Summary

This package contains type definitions for jsreport-pdf-utils (https://github.com/jsreport/jsreport-pdf-utils).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jsreport-pdf-utils.

index.d.ts

import { ExtensionDefinition, Template } from "jsreport-core";

declare namespace JsReportPdfUtils {
    interface PdfOperation {
        type: "merge" | "append" | "prepend";
        mergeWholeDocument?: boolean | undefined;
        renderForEveryPage?: boolean | undefined;
        templateShortid?: string | undefined;
        template?: Template | undefined;
    }

    interface PdfMeta {
        title?: string | undefined;
        author?: string | undefined;
        subject?: string | undefined;
        keywords?: string | undefined;
        creator?: string | undefined;
        producer?: string | undefined;
    }

    interface PdfSign {
        certificateAsset: {
            contrent: string;
            encoding: string;
            password: string;
        };
        reason: string;
    }

    interface PdfPassword {
        password: string;
        ownerPassword: string;
        printing: "HighResolution" | "NotAllowed" | "LowResolution";
        modifying: boolean;
        copying: boolean;
        fillingForms: boolean;
        contentAccessibility: boolean;
        documentAssembly: true;
    }

    interface PdfTemplate extends Template {
        pdfOperations?: PdfOperation[] | undefined;
        pdfMeta?: PdfMeta | undefined;
        pdfSign?: PdfSign | undefined;
        pdfPassword?: PdfPassword | undefined;
    }
}

declare module "jsreport-core" {
    interface TemplateRegistry {
        PdfTemplate: JsReportPdfUtils.PdfTemplate;
    }
}

declare function JsReportPdfUtils(): ExtensionDefinition;

export = JsReportPdfUtils;

Additional Details

Credits

These definitions were written by pofider.

Versions

Current Tags

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.9.5
    467
  • 1.9.4
    33
  • 1.9.3
    13
  • 1.9.2
    326
  • 1.9.1
    24
  • 1.9.0
    2

Package Sidebar

Install

npm i @types/jsreport-pdf-utils

Weekly Downloads

727

Version

1.9.5

License

MIT

Unpacked Size

5.85 kB

Total Files

5

Last publish

Collaborators

  • types