camelot-dev / camelot-dev/camelot

can Camelot correctly parse table header + merged cells?

Open
#354 2 comments 0 reactions 1 assignee Claimed by @yanbin-1 View on GitHub
bug
Dominant language
Python
Stars
3.8k
Forks
546
Avg merge
3d 17h
Merged PRs (30d)
3

Description

Hey, I'll keep it simple and visual, I'm working on a PDF parsing project, and I need to extract clean tables

What I am noticing is that:
- Camelot has a hard time with merged cells
- if the header spans multiple lines, it's likely that Camelot will put in multiple rows

Do you guys have some ideas on how to fix those?
idk if CSV files can handle merged cells, but I'm sure we can use a rule of thumb to fix the multiple-line header problem

**EXAMPLE 1**
![image](https://user-images.githubusercontent.com/55017307/220915904-5859b7b6-6bf8-4679-acf9-62356902ff5f.png)

**EXAMPLE 2**
![image](https://user-images.githubusercontent.com/55017307/220915939-c230b771-0804-403c-97fb-a40c207db122.png)

**EXAMPLE 3**
![image](https://user-images.githubusercontent.com/55017307/220916031-6dfe4b15-21d3-41ca-80b1-f7c83ad5e11a.png)

**EXAMPLE 4**
![image](https://user-images.githubusercontent.com/55017307/220916197-dcb6adad-68e7-40f5-87b5-d6acf4ded3da.png)

**EXAMPLE 5**
![Screenshot from 2023-02-23 14-18-00](https://user-images.githubusercontent.com/55017307/220917578-dff0fc1c-872f-4b64-82c9-b8db3dfada53.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.