-
-
Notifications
You must be signed in to change notification settings - Fork 706
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
Scanned Paper with Images #224
Comments
Hello @mealCode! pdf-lib does not provide any APIs for image extraction. However, this does not mean that image extraction is impossible to do with pdf-lib. It certainly is possible, but doing so requires writing a substantial amount of logic yourself. I've provided an example that is able to extract some types of images from PDF files here: #83 (comment). But, as I note in that thread, it doesn't work for all images:
I do not have the time to port over all the logic myself. I am simply to busy with other pdf-lib maintenance and development work. But perhaps sometime in the future I'll port it over when other more pressing things are taken care of. Or, if any enterprising individual would like to do it themselves, I would be willing to consider merging a PR for it. Either that, or it could be provided as a standalone "addon" library for pdf-lib. Whichever would make the most sense. I think it would mostly depend on (a) the amount of code required, and (b) whether any new external dependencies would be required. I hope this helps. Please let me know if you have any additional questions! |
this [https://drive.google.com/file/d/1aFdRKjujeHDHTLw9SSGz0keuAhRcgbhR/view?usp=sharing](pdf link) is a scanned paper with images. Can the images within the scanned paper can be extracted? Right now, it extracted images but just a dark images.
Please see pdf in the link above. Thanks for your kind support. Cheers
The text was updated successfully, but these errors were encountered: