- Translated by Amin Yahyaabadi
- Download address: [pdf-bookmark] (https://github.com/ifnoelse/pdf-bookmark/releases)
- Execution mode: execution
bin/pdf-bookmark
If pdf-bookmark not work,please build it by yourself
git clone https://github.com/ifnoelse/pdf-bookmark.git
cd pdf-bookmark
./gradlew jlink
build/image/bin/pdf-bookmark
Due to the existence of many pdf books without bookmarks on the Internet, it is very inconvenient to read. Manually adding bookmarks is too much work. This project is used to automatically bookmark pdf books for easy reading.
Software interface
Click the Select File button to select the pdf file to which you want to add the directory.
Some pdfs are scanned, so the page number (book page number) in the directory may be different from the actual page number of the pdf file. The difference between the page number in the directory and the actual page number of the pdf file (actual page number - book page number) is the page number offset. the amount.
Open the pdf file and turn the pdf to any page with the page number. As shown in the figure below, use the pdf reading software to view the page number and the actual page number in the book. Subtract the two numbers to get the page number offset, as shown in the figure below. Page offset is 134-120=14
There are currently two ways to set the contents of the directory.
3.2 or the page url containing the contents of this book directory (url mode currently only supports china-pub) (method 2)
Suppose we want to automatically generate directory bookmarks for "Quick Scala". We can find the contents of the catalogue through the Internet bookstore. For example, [china-pub] (http://www.china-pub.com/), we can search for " Quickly learn the scala" details page http://product.china-pub.com/3684420
, the following is a screenshot of the directory section
The above is the book details page directory section of china-pub, you can click ↓ to expand the entire content then copy the complete directory to the pdf-bookmark directory edit box, or directly fill this page url into the directory edit frame
** Fill in the contents of the directory example **
fill in the url example
Clicking on the Generate Directory button will generate a new pdf file containing the directory, as shown below
Screenshot of the pdf directory after the generation
The basic structure of the directory content format is `chapter number, chapter title, chapter page number, and the examples are as follows:
Chapter 1 Foundation A1 1
1.1 Scala Interpreter 1
1.2 Declaring values and variables 3
1.3 Common Types 4
1.4 Arithmetic and Operator Overload 5
1.5 Calling Functions and Methods 7
1.6 apply method 8
1.7 Scaladoc9