Giter Club home page Giter Club logo

Comments (3)

jlegewie avatar jlegewie commented on June 15, 2024

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.

andersjohansson avatar andersjohansson commented on June 15, 2024

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.

jlegewie avatar jlegewie commented on June 15, 2024

Closing this as duplicate of #190

from zotfile.

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.