sumatrapdf icon indicating copy to clipboard operation
sumatrapdf copied to clipboard

Outline styles were ignored

Open wmjordan opened this issue 2 years ago • 8 comments

The following sample document has two outline entries. The first one is red, bold. The second one is blue. temp.pdf

They are displayed correctly in SumatraPDF 3.2. image

However, from version 3.3 on, the outline styles were ignored.

wmjordan avatar Jun 29 '23 01:06 wmjordan

Hmm last time I checked (clearly some time ago) they looked OK However have to agree its not working in current pre-release

image

GitHubRulesOK avatar Jun 29 '23 01:06 GitHubRulesOK

We had to modify mupdf code to get outline color but then mupdf significantly changed outline code and we lost those changes.

kjk avatar Sep 12 '23 22:09 kjk

I understood that. fz_outline does not support styles. Their changes in related code files got you frustrated.

Since the structure of PDF outline is not very likely to be changed, is it possible to copy the outline extraction logic into the source code of SumatraPDF and use a custom pdf_outline-like structure to hold the outline information with styles? So the code in SumatraPDF won't be affected by mupdf's changes in the future.

wmjordan avatar Sep 13 '23 01:09 wmjordan

No plans to modify or fork mupdf code that much. Too much on-going work to keep up with mupdf changes.

kjk avatar Sep 16 '23 16:09 kjk

The recent version of MuPDF supports colors and styles of outlines. Please consider reimplementing outline styles.

wmjordan avatar May 19 '25 09:05 wmjordan

@wmjordan Currently I dont see them support coloured outlines in this weeks viewer code so may be more for editing ?

Image

SumatraPDF also now has custom Theming to make that task more problematic

Image

GitHubRulesOK avatar May 19 '25 11:05 GitHubRulesOK

I checked out their source code, and saw that the pdf_outline_iterator_item function is reading colors and styles from PDF outlines.

wmjordan avatar May 19 '25 11:05 wmjordan

Any news for this issue?

wmjordan avatar Nov 20 '25 01:11 wmjordan