camelot-dev / camelot-dev/camelot

Could not able to extract all columns

Open
#446 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
3.8k
Forks
546
Avg merge
3d 17h
Merged PRs (30d)
3

Description

**I am trying to extract the table using camelot but the extracted table appear to not contain all the columns.**

I am using this line of code to extract the table
`camelot.read_pdf(pdf_file, flavor="stream", pages="all", column=["88,276,357,490"])`

It is extracting 4 columns instead of 5 columns and merging 2nd and 3rd column together.

Is there any way to get better result for this type of pdf?
[sample pdf .pdf](https://github.com/camelot-dev/camelot/files/12909465/sample.pdf.pdf)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue through camelot.read_pdf with the linked sample PDF and the shown stream settings. Compare the extracted table with the source PDF and determine how the five columns should be separated; done means the sample no longer merges the second and third columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.