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

Extracting images and diagrams from XObjects #75

Open
coderfromhere opened this issue Jul 29, 2021 · 3 comments
Open

Extracting images and diagrams from XObjects #75

coderfromhere opened this issue Jul 29, 2021 · 3 comments

Comments

@coderfromhere
Copy link

Hi!

Would you be open to extend XObjects to support API that would deal with non-text (images in my particular case) data extraction only? Something along the line of https://blog.idrsolutions.com/how-images-are-stored-in-pdf/

Hopefully I might be able to contribute it as part of my working hours, I'm exploring my options at the moment :)

@Yuras
Copy link
Owner

Yuras commented Jul 29, 2021

@coderfromhere Sure thing!
Few issues to consider:

  • API for extracting should be designed carefully. It should be easy to use and at the same time don't impose arbitrary restrictions.
  • Dependency footprint should not grow too much. You might need libraries for different type of images, right?

@coderfromhere
Copy link
Author

coderfromhere commented Jul 29, 2021

So far I was just thinking of providing streaming of bitmaps/random bytes (without full-featured format recogniser) into arbitrary locations, either through conduit, or as I see it in the dependencies already, io-streams.

@Yuras
Copy link
Owner

Yuras commented Jul 29, 2021

So it's a low level API to extract raw image data + metadata. Sounds reasonable for me! I'd prefer io-streams since they are there already.

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

2 participants