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

Link local PDF annotations to filename #67

Open
Ninjani opened this issue Mar 14, 2021 · 0 comments
Open

Link local PDF annotations to filename #67

Ninjani opened this issue Mar 14, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@Ninjani
Copy link
Member

Ninjani commented Mar 14, 2021

Problem

Local PDF annotations have urn:x-pdf:<fingerprint> as their URI, which says nothing about the filename or where it's stored. Would be nice to have the filename to link to the file in local knowledge base systems.

Solution

Have a PDF folder set in the config, keep a mapping of all PDF fingerprints for this folder (using this post as reference), and map all PDF annotations to their respective files using this mapping.

Alternatives

Ideally should have a reverse mapping function so that you don't need a PDF folder, but I doubt this is possible.

Additional context

Needs a file-watcher aspect to check if PDF files in the folder have been added / updated. The first version could just loop through the PDF folder on every sync.

@Ninjani Ninjani added the enhancement New feature or request label Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant