Comments (3)
It would be great if you manage to take a look at it. I won't be able to do it anytime soon. The annotation extraction based on pdf.js was mainly implemented by devietti so that one of the pull requests or an email might be a good place to ask a question about extraction code (e.g. #8). I can help out with the main zotfile code.
from zotfile.
I contacted devietti. I'll post what he wrote here for reference:
Adding support for logical page numbers would require parsing out the
"page label dictionary" (if present) from the PDF. This data
structure is discussed in 8.3.1 of the PDF 1.7 spec
(http://www.adobe.com/devnet/pdf/pdf_reference.html). Some PDF
documents may have logical page numbers that aren't encoded in a page
label dictionary, and I have no idea how to get at those.Assuming there's a page label dictionary present in the PDF document,
I'm not really sure how hard it would be to get at it - the existing
pdf.js code should be able to parse this object easily, because it
seems like a standard PDF object. I'd say it's possible and medium
difficulty, mainly due to finding out how to extract the page label
dictionary and interpret it.
from zotfile.
Closing this as duplicate of #190
from zotfile.
Related Issues (20)
- Zotero 6.0.23, ZotFile v 5.1.2 group folder files not moved
- Renaming rules with number of words limitation instead of number of characters
- Subfolder by Collection only? (not sub-collections) HOT 2
- Questions about whether the plugin can currently run
- Compatibility with build in annotation feature
- Error regarding attachment note missing
- Zotero 7 support HOT 17
- zotfile cannot automatically move new items to my desired folder
- Fails to extract TOC on PDF
- Zotfile download flagged as "corrupt" HOT 3
- Additional templates for renaming files.
- A suggestion for file renaming and moving
- `%b` for citation key in renaming format no longer works HOT 11
- [Feature Idea] Add support for extracting link for the cloud location of the file
- "Attach new file" does not work if the PDF is open in another application
- Incomplete name after using rename and move by zotero rule
- [Question]: How to avoid having commas in renamed files? HOT 1
- Rename linked file in arbitrary directory, without changing location
- Regex capturing not working as one would expect (Failed to compose renaming scheme)
- Feature request: allow multiple Watch folders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zotfile.