Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please update the README #42

Open
jchristn opened this issue Jan 1, 2025 · 0 comments
Open

Please update the README #42

jchristn opened this issue Jan 1, 2025 · 0 comments

Comments

@jchristn
Copy link

jchristn commented Jan 1, 2025

Describe the bug
Examples of use of ObjectExtractor indicate a class vs a static.

To Reproduce
Attempt to build with this code:

using (PdfDocument document = PdfDocument.Open("doc.pdf", new ParsingOptions() { ClipPaths = true }))
{
	ObjectExtractor oe = new ObjectExtractor(document);
	PageArea page = oe.Extract(1);

	IExtractionAlgorithm ea = new SpreadsheetExtractionAlgorithm();
	List<Table> tables = ea.Extract(page);
	var table = tables[0];
	var rows = table.Rows;
}

Expected behavior
Code will compile.

Screenshots
From the source:

    public static class ObjectExtractor
    {
        private const int rounding = 6;

        private const float RULING_MINIMUM_LENGTH = 0.01f;

Additional context
Thanks for this great library!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant