Skip to content
Snippets Groups Projects
pdfParser.d.ts 517 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;
        };
    };
    declare class PDFparser {
        readonly document: any;
        constructor(document: Buffer);
        getPDFMeta: () => Promise<IGetMetaResponse>;
        insertQrCode: (imgBytes: ArrayBuffer, url: string, coords: SealCoords, scaleFactor: number, licenseKey: string, certPath: string, certTSAUrl: string) => Promise<ArrayBuffer>;
    }
    export default PDFparser;