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

Can't delete file after use convert_single_pdf #326

Open
VictorBSDataAnalisis opened this issue Oct 29, 2024 · 0 comments
Open

Can't delete file after use convert_single_pdf #326

VictorBSDataAnalisis opened this issue Oct 29, 2024 · 0 comments

Comments

@VictorBSDataAnalisis
Copy link

After using the following code:

from marker.convert import convert_single_pdf
from marker.models import load_all_models
text, images, out_meta = convert_single_pdf(filepath, load_all_models())

I can't delete the file in filepath.. I have to restart the python IDE to delete the file. I attempted to fix it putting doc.close() in convert.py and extract_text.py, but it didn't work

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