GithubHelp home page GithubHelp logo

Comments (7)

RyotaUshio avatar RyotaUshio commented on June 25, 2024 4

This feature has finally come true in 0.36.0!

from obsidian-pdf-plus.

RyotaUshio avatar RyotaUshio commented on June 25, 2024 2

Thanks for the idea. I do agree such a functionality should be very useful, and it will be technically possible. But I'm worrying about the risk of introducing too much plugin-dependent stuff, because

  • this plugin uses a lot of non-public API of Obsidian and dives very deep into Obsidian's internals, so I has a relatively high risk of breaking when Obsidian is updated.
  • also there is no guarantee that I can continue maintaining this plugin for years.

So I'm trying to be careful when introducing an original notation or something.

A workaround available now is the offset=x,y,z notation, where x,y specifies the upper-left corner position of the embedded area, and z specifies the zoom scale, if I understand correctly. e.g. [[file.pdf#page=1&offset=x,y,z]]

from obsidian-pdf-plus.

RyotaUshio avatar RyotaUshio commented on June 25, 2024 2

I think rectangle annotation is too important to discard. I do want to add this feature to this plugin.

But as I said, I don't want to go too far away from Obsidian's native syntax.

Given this constraint, another workaround available currently is

  1. First, open a target PDF file in an external PDF viewer application (such as Adobe Acrobat and PDF Expert).
  2. Add a rectangle annotation in this external app.
  3. Go back to Obsidian. Obsidian can link to an annotation with its ID, so you can link to the rectangle that you added in the last step. You can also make the link an embed by prepending ! (but the annotation embed trimming feature has a problem now: #9).

Also, maybe this plugin could implement something like:

  1. A user can use a rectangle area selection tool to add a rectangle annotation to a PDF file.
  2. Once the rectangle annotation is embedded into the PDF file, the user can link to the rectangle using Obsidian's native syntax [[file.pdf#page=<PAGE>&annotation=<ANNOTATION ID>]].

This could be doable.

from obsidian-pdf-plus.

RyotaUshio avatar RyotaUshio commented on June 25, 2024 1

If Obsidian's native syntax support &width=xxx.

Unfortunately it doesn't. But thanks for the suggestion!

from obsidian-pdf-plus.

RyotaUshio avatar RyotaUshio commented on June 25, 2024 1

Now that we can add annotations directly into PDFs, we have come a little bit closer to making this happen.

from obsidian-pdf-plus.

KuiyueRO avatar KuiyueRO commented on June 25, 2024

Thanks, I decided to just use #page=3 .

Manually entering x,y,z seems a bit difficult to control.

:)

from obsidian-pdf-plus.

KuiyueRO avatar KuiyueRO commented on June 25, 2024

If Obsidian's native syntax support &width=xxx.

Maybe you can be used [[xxx.pdf#page=1&offset=x,y,z&height=xxx,&width=xxx]].

from obsidian-pdf-plus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.