Narrating Prophetic Monks

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

    1.9.2 • 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

    // 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

    • Last updated: Thu, 08 Jul 2021 16:22:57 GMT
    • Dependencies: @types/jsreport-core
    • Global values: none

    Credits

    These definitions were written by pofider.

    Keywords

    none

    Install

    npm i @types/jsreport-pdf-utils

    DownloadsWeekly Downloads

    283

    Version

    1.9.2

    License

    MIT

    Unpacked Size

    6.34 kB

    Total Files

    4

    Last publish

    Collaborators

    • types