Code Monkey home page Code Monkey logo

pdf-bookmark's Introduction

pdf-bookmark

English

示例

下载地址

  1. 下载地址:pdf-bookmark
  2. 执行方式:执行bin/pdf-bookmark

如果软件无法运行,请按以下步骤自行打包

git clone https://github.com/ifnoelse/pdf-bookmark.git
cd pdf-bookmark
./gradlew jlink
build/image/bin/pdf-bookmark

简介

由于互联网上存在很多没有书签的pdf书籍,阅读起来十分不方便,手动添加书签工作量太大,本项目用来给pdf书籍自动打上书签方便阅读
软件界面

使用方法

1. 选择pdf文件

点击选择文件按钮选择要添加目录的pdf文件

2. 填写页面偏移量

有的pdf为扫描版,所以目录中的页码(书籍页码)可能与pdf文件实际页码不同,目录中的页码与pdf文件实际页码之间的差值(实际页码-书籍页码)即为页码偏移量。

2.1 确定页码偏移量的方法:

打开pdf文件将pdf翻到任意带页码的一页,如下图,通过pdf阅读软件查看书籍中的页码与实际页码,将这两个数字相减即可得到页码偏移量,比如下图中的页码偏移量为134-120=14

3. 设置目录内容

目前设置目录内容的方法有以下两种

3.1 在pdf-bookmark目录编辑框填入目录内容(方法一)

3.2 或者包含此书目录内容的页面url(url方式目前只支持china-pub)(方法二)

3.3 示例

假设要给《快学scala》自动生成目录书签,我们可以通过互联网书店找到目录内容,以china-pub为例,我们可以搜索到《快学scala》的详情页http://product.china-pub.com/3684420,以下为目录部分的截图
以上为china-pub中书籍详情页目录部分,可以点击↓展开全部内容然后将完整目录复制到pdf-bookmark目录编辑框中,或者直接将此页面url填入目录编辑框
填入目录内容示例

填入url示例

4. 生成目录

点击生成目录按钮会生成一个新的包含目录的pdf文件,如下图

生成之后的pdf目录截图

关于目录内容格式

目录内容格式基本结构为章节序号 章节标题 章节页码即可,示例如下:

第1章 基础A1 1 
1.1 Scala解释器1 
1.2 声明值和变量 3 
1.3 常用类型 4 
1.4 算术和操作符重载 5 
1.5 调用函数和方法 7 
1.6 apply方法8 
1.7 Scaladoc9 

pdf-bookmark's People

Contributors

ifnoelse avatar aminya avatar

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.