Skip to content
Snippets Groups Projects
pdfParser.d.ts 523 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]: {
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
            x: string;
            y: string;
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
    declare class PDFparser {
        readonly document: any;
        readonly config: any;
        constructor(document: Buffer);
    
        getPDFMeta: () => Promise<IGetMetaResponse>;
    
        insertQrCode: (imgBytes: ArrayBuffer, url: string, coords: SealCoords, scaleFactor: number) => Promise<ArrayBuffer>;
    
        private createPageLinkAnnotation;
    
    Zdravko Iliev's avatar
    Zdravko Iliev committed
    }
    export default PDFparser;