Forum moved here!

# Home / Toc Level control & Tab filename tooltips

Rob

I Love it!

Never want to go back to a do be

Here are two really simple requests that would help even more.

A Primary
A.1 Secondary one
A.2 Secondary two
A.2.a Secondary two alpha
A.2.b Secondary two beta
A.2.b.1 Secondary two beta apples
A.2.b.2 Secondary two beta pears
It would be nice to be able to be able to see my apples and pears in the TOC by setting TocMaxLevels=4, if that is possible.

2. For the filename tabs at the top of the window, please can you show a tooltip revealing the full filename preceeded by as much of the path as will fit.
Example “C:\primary\secondary\tertiary\etc… filename.pdf”

At least this request is easy to comprehend.
Thank you.
Rob

GitHubRulesOK

SumatraPDF will show the same levels as other viewers (and possibly attachments) the MAX (as used by the author) is usually 4 However they are usually called root and levels 1-3

but some tools use other names like this

; Bookmark data for BlankA4x2 - Copy.pdf (2)
; Enter data in 1-line format (tab-delimited page number, level, title)
1	0	Primary
1	1	A Primary
1	2	A.1 Secondary one
1	2	A.2 Secondary two
1	3	A.2.a Secondary two alpha
1	3	A.2.b Secondary two beta
1	4	A.2.b.1 Secondary two beta apples
1	4	A.2.b.2 Secondary two beta pears


It is also up to the author to set the initial view so in some cases it maybe expand all or in other none or others level 4

Also you can use the SumatraPDF pre-release .vbkm feature to add (or remove) further nesting

A number of suggestions including start …end of filepath and name have been suggested as alternatives to switching to showing only FullPathInTitle = false (or true), these are consolidated currently under one issue https://github.com/sumatrapdfreader/sumatrapdf/issues/1188

the simplest way to see filename and location is use F2 and esc

Rob

Thank you for the helpful suggestions. The pre-release .vbkm feature - whatever that is - is not understood however.

Here is a real world example that shows how information disappointingly gets missed as a result of not showing items in the bookmarks/contents. It is not clear from your reply if you are saying that the author of the document can make it impossible for the viewer to show more levels if the author of the pdf-viewer wants to override the document-authors ‘preference’.

As regards the tooltips on the tabs; it is possible to overthink this! It is about what is intuitive to the user, efficient with display space, quick to use, and might be easy to implement anyway. F2 Esc is not great for some; on my laptop F2 is not clearly marked, requires a function key to be pressed and is and is about as intuititive as shiny, non absorbent, Izal loo paper. Good tip though Thanks.

GitHubRulesOK

In the prerelease version you can right click the table of contents and either export the bookmarks to .bkm file for manipulation OR better for your usage build New Bookmarks
in .vbkm (Virtual / Vector BooKMark) ToC (Table of Contents) editor. try it and see how easy it is to right click an entry and add your own child entries for those extra levels (with page number & colors) once done you open the vbkm file rather than the pdf and you can add several pdf together in one vbkm

Save as Virtual PDF (you can change name but keep the.vbkm extension)

Beware save as pdf will merge multiple pdf but currently without internal bookmarks so still needs some work with a small edit to the file names in the .vbkm you can use it as the Table of Contents for the combined files however many page numbers could be out of sync and need editing.
Then it becomes (for now) preferable to use a dedicated bookmark editing tool to add them into the PDF in the first case. and you could take a look at
PDFTK Bookmarks Editor
but its limited to rehashing as page numbers only not line entries within pages

If F2 is a bugbear the longer way is either CTRL + D (then Ctrl C if you want to copy details to clipboard)
or Alternative to F2 is Alt F + N

Rob

So a xxx.vbkm file is an external file that collects bookmarks from one or more pdf’s. That seems rather good… …although there might be a hundred subsections that need adding to the contents, hopefully it will be possible to copy and paste the subsection titles. It might also be a handy way of excluding the other hundreds of sections of no interest too, allowing the reader to focus on parts of the document(s) of particular relevance.