Skip to content

Getting error: TypeError: Cannot read property 'setEncoding' of undefined #32

@communque

Description

@communque

Getting error: TypeError: Cannot read property 'setEncoding' of undefined

Code is:

Pdf=require("pdf-text-extract");
SourcePath="Path/To/File.pdf";
Pdf(SourcePath, function(Err, Pages){  //< - error at this line.
	if(Err){
		console.dir(Err);
	}else{
		console.dir(Pages);
	}
});

PDFs are bank statements with a mix of text and graphics. Didn't find any documentation online based on the error. Looking for clues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions