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

Call pdftopng in python instead of subprocess #269

Closed
wants to merge 1 commit into from
Closed

Call pdftopng in python instead of subprocess #269

wants to merge 1 commit into from

Conversation

orent
Copy link

@orent orent commented Sep 30, 2021

Using the poppler backed failed for me because I was running it from an un-activated venv and pdftopng was not in the PATH.

My original workaround was even shorter - I imported the convert function directly into the PopplerBackend class. But this import will fail on initialization if pdftopng is not installed and will prevent using the ghostscript backend, so I converted it to late import.

Using the poppler backed failed for me because I was running it from an un-activated venv and pdftopng was not in the PATH.

My original workaround was even shorter - I imported the convert function directly into the PopplerBackend class. But this import will fail on initialization if pdftopng is not installed and will prevent using the ghostscript backend, so I converted it to late import.
@niekvanderlaan
Copy link

I am having similar issues: pdftopng is installed via pip, I am able to import and use the library as intended. However, shutil does not pick up on it

@bosd bosd mentioned this pull request Jul 15, 2023
@MartinThoma
Copy link
Contributor

Hey!

As camelot is dead, we try to build a maintained fork at pypdf_table_extraction.

Do you want to open the PR against that branch so that we can merge your improvement?

@orent orent closed this by deleting the head repository Feb 25, 2024
@stefan6419846
Copy link

Depending on who you ask, this might indeed cause licensing trouble: Directly importing/linking pdftopng will activate the copyleft effect of the GPL, while subprocess calls avoid the "viral effect".

Disclaimer: IANAL.

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

Successfully merging this pull request may close these issues.

None yet

4 participants