Skip to content
Snippets Groups Projects
pdfParser.d.ts 627 B
Newer Older
  • Learn to ignore specific revisions
  • Zdravko Iliev's avatar
    Zdravko Iliev committed
    /// <reference types="node" />
    import { IGetMetaResponse } from "./types";
    declare type SealCoords = {
        [key: string]: {
            x: string;
            y: string;
        };
    };
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
    declare global {
        interface Window {
            PDFNet: any;
            CoreControls: any;
        }
    }
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
    declare class PDFparser {
        readonly document: any;
        constructor(document: Buffer);
        getPDFMeta: () => Promise<IGetMetaResponse>;
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
        insertQrCode: (imgBytes: ArrayBuffer, url: string, coords: SealCoords, scaleFactor: number, licenseKey: string, certPath: string | ArrayBuffer, certTSAUrl: string) => Promise<ArrayBuffer>;
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
    }
    export default PDFparser;