1.9.5 • Published 2 years ago

@types/jsreport-pdf-utils v1.9.5

Weekly downloads
262
License
MIT
Repository
github
Last release
2 years ago

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

// Type definitions for jsreport-pdf-utils 1.9
// Project: https://github.com/jsreport/jsreport-pdf-utils
// Definitions by: pofider <https://github.com/pofider>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

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.

1.9.5

2 years ago

1.9.4

2 years ago

1.9.3

2 years ago

1.9.2

4 years ago

1.9.1

4 years ago

1.9.0

5 years ago