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

tables[0].ToJson or ToCsv are not implemented error #4

Open
princeharish opened this issue Aug 30, 2023 · 0 comments
Open

tables[0].ToJson or ToCsv are not implemented error #4

princeharish opened this issue Aug 30, 2023 · 0 comments

Comments

@princeharish
Copy link

princeharish commented Aug 30, 2023

            ```
        var doc = PdfDocument.Open(@"W:\OCR\foo.pdf", new ParsingOptions() { ClipPaths = true });

            var page = doc.GetPage(1);

            Lattice lattice = new Lattice(new OpenCvImageProcesser(), new BasicSystemDrawingProcessor(), line_scale: 40);
            List<Camelot.Core.Table> tables = lattice.ExtractTables(page,
                layout_kwargs: new DlaOptions[]
                {
                    new DocstrumBoundingBoxes.DocstrumBoundingBoxesOptions()
                    {
                        WithinLineMultiplier = 2
                    }
                });
            DataTable dt = new DataTable();
            for (int i = 0; i < tables[0].Cells.Count; i++)
            {
                dt.Columns.Add(tables[0].Cells[i][0].Text);
            }
            tables[0].ToExcel("temp.xlsx");
This code thows  System.NotImplementedException: The method or operation is not implemented on table[0].ToExcel function call.
            
If I am doing wrong, is there any other ways to export the table?
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