@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/jsreport-pdf-utils

Weekly Downloads

656

Version

1.9.5

License

MIT

Unpacked Size

5.85 kB

Total Files

5

Last publish

Collaborators

  • types