Giter VIP home page Giter VIP logo

Comments (3)

stillhope avatar stillhope commented on September 12, 2024

Adding feature to handle page count offset (aka the difference between printed page numbers and the actual page numbers per the published book title) -- would be wonderful. I stopped using booky as it does not handle this feature and reverted back to use jpdfbookmarks, https://sourceforge.net/projects/jpdfbookmarks/

In Jpdfbookmarks, after loading the TOC
Expand all bookmarks (Ctrl + E), select all of them, then go to Tools > Apply Page Offset
Enter the first pages that outmatch the page number in the TOC

from booky.

stillhope avatar stillhope commented on September 12, 2024

page offset feature

from booky.

shivanshu-semwal avatar shivanshu-semwal commented on September 12, 2024

Here is how you can add offset

https://github.com/SiddharthPant/booky/blob/d64f4571fdeae9660173ada6e2a95cd8aff4a8f9/booky.py#LL16-L16C41

pageNo = line[commaIndex + 1:].strip()

change this with

offset = 23
pageNo = str(int(line[commaIndex + 1:].strip()) + offset))

from booky.

Related Issues (4)

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.