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

[HELP] How can I concurrently process each page of the same PDF? #511

Open
ChengsongLu opened this issue Dec 19, 2024 · 0 comments
Open

Comments

@ChengsongLu
Copy link

ChengsongLu commented Dec 19, 2024

I have a pdf where the tables on each page are in a different area,

I need to write a loop to process each page seperately:

`
for doc_page_no in range(num_pages)

tables_stream = camelot.read_pdf(
pdf_path,
pages=str(doc_page_no),
table_areas=[table_area],
flavor="stream"
)
`

But I can't run this loop in parallel because opening a file at the same time would cause a conflict.

HOW can I run the above codes concurrently????

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