Skip to content

Failed to extract text from pdf. #136

@5160jivan

Description

@5160jivan

I was trying to run a simple project with the package installed as a nuget. My code was like:
TextExtractor textExtractor = new TextExtractor();
var pdfContents = textExtractor.Extract(@"files\sample.pdf");
Console.WriteLine(pdfContents.Text);

I get the following exceptions:
TextExtractionException: Extraction failed.
MissingMethodException: Method not found: 'Void System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.Security.AccessControl.FileSystemRights, System.IO.FileShare, Int32, System.IO.FileOptions)'.

I looked at the test file and the test code for pdf file does similar thing, so I am not sure why it does not work.
Thank you so much for your time.

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