Skip to content

Commit

Permalink
correct Line interface and PDFParser class for #327 and #329
Browse files Browse the repository at this point in the history
  • Loading branch information
modesty committed Feb 11, 2024
1 parent 6276049 commit 2b47fcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pdfparser.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {EventEmitter} from "events";

declare class Pdfparser extends EventEmitter{
declare class PDFParser extends EventEmitter{
constructor(context?: any, needRawText?: number, password?: string);
parseBuffer(buffer: Buffer, verbosity?: number): void;
loadPDF(pdfFilePath: string, verbosity?: number):Promise<void>
createParserStream():ParserStream
createParserStream(): ParserStream
getRawTextContent(): string
on<K extends keyof EventMap>(eventName: K, listener: EventMap[K]): this
}
Expand Down Expand Up @@ -51,6 +51,7 @@ export declare interface Line {
x: number,
y: number,
w: number,
l: number,
oc?: string,
clr?:number
}
Expand Down

0 comments on commit 2b47fcd

Please sign in to comment.