sumatrapdfreader / sumatrapdf

SumatraPDF reader
http://www.sumatrapdfreader.org
GNU General Public License v3.0
13.72k stars 1.73k forks source link

可以添加或编辑书签吗? #4618

Open ligl opened 2 weeks ago

GitHubRulesOK commented 2 weeks ago

Please use English and the requested format as much as possible.

Question) = Can I add or edit bookmarks?

Answer) = No not normally with a PDF reader (This has been tried using "sidecar" files but dropped as difficult to maintain)

Since it is an Editor Function you need a Document Editor to add bookmarks to a source document, Thus for PDF an editor such as GUI Tracker or Command Line PDFtk.

image image

image

GitHubRulesOK commented 2 weeks ago

MuPDF viewer as such has no means to edit outline entries. simply read and navigate via them. image

However we can use external tools to add them image

image

GitHubRulesOK commented 2 weeks ago

OK have added ability it to my Plus functions it is quirky and raw but functions well enough for beta testers :-)

  1. Note no bookmark for page 3 so we can add one

image

  1. Press the B key, image

  2. There are limitations so Page 3 in this case can be top level 0 or sub Level 1 as seen here

  3. The other oddity in this early version is the entry can ONLY be at the end of the list (there is no order or sorting) image

Beware ONLY work on a COPY of the source file because if it goes wrong it is down to you as "Editor in Chief" image

File is at https://github.com/GitHubRulesOK/SumatraPDF-Plus/blob/master/Plus/AddBookmark.cmd

Designed to be placed and run from a PLUS folder in the folder where the SumatraPDF settings.txt is image