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

Allowing "screenshot" of the page inside a rectangle/square box to capture images/charts/diagrams #17

Open
dummifiedme opened this issue Sep 21, 2021 · 2 comments

Comments

@dummifiedme
Copy link

dummifiedme commented Sep 21, 2021

Benefits

Having a way to include the screenshot of the region inside a created square(or rectangle) would help in

  • Extracting useful images or charts off the pdf by simply drawing a rectangle around it.
  • Extracting hand written scribbles or diagrams by simple enclosing them in a rectangle.

Image naming and handling

The extracted images could be sent directly to the asset/image/attachment location in the vault while assigning a incremental naming to them or based on the page numbers or plain random just like what obsidian does when pasting.

Example

PDF sample

image

Outpul sample

image

I had implemented it in a crude way but using Python, and I am a newbie to programming. If you could work on something like this, it would be really helpful as I have a lot of diagrams that I now manually screenshot and paste. This could make life easier for everyone who need to extract images or diagrams.

Also:

  1. A post I wrote on Forum : https://forum.obsidian.md/t/discussion-extracting-annotations-from-pdfs/24411
  2. A pdfAnnotate library that I found which might be useful : https://github.com/highkite/pdfAnnotate
@dummifiedme dummifiedme changed the title Allowing "screenshot" of the page inside a rectangle/square box Allowing "screenshot" of the page inside a rectangle/square box to capture images/charts/diagrams Sep 21, 2021
@huyz
Copy link

huyz commented Jul 31, 2022

Is this the same ask as #15?

@avigilante
Copy link

Also check this library: https://github.com/mgmeyers/pdfannots2json

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

3 participants