Page 1 of 1

Highlights do not retain opacity

Posted: Thu Jun 02, 2022 5:50 am
by tarot sport
I find the colors of the highlights too strong and fatiguing, so it is my use to decrease their opacity from the internal Bookends reader settings.
The problem (as you can see from the screens below) is that once I close Bookends the opacity is reset to the initial value of 100%..

Image
Image

Re: Highlights do not retain opacity

Posted: Thu Jun 02, 2022 7:56 am
by Jon
I see that Bookends sets the correct color (with opacity) in the PDF. If you open the PDF in Adobe Acrobat you'll see that, too. However, if you open it in Preview the opacity is ignored. This seems to be a limitation of the macOS implementation of PDFKit. So Bookends saves the correct opacity but it's ignored when the PDF is reopened and rendered by PDFKit. I'll dig a bit deeper, but I don't hold out much hope that there's anything I can do about that. The workaround is to use a lighter color and ignore opacity.

Jon
Sonny Software

Re: Highlights do not retain opacity

Posted: Sat Jun 04, 2022 6:21 am
by tarot sport
Thank you for looking into this. In the meantime, I took your advice and used a softer color as a workaround.

Re: Highlights do not retain opacity

Posted: Sat Jun 04, 2022 7:13 am
by Jon
It seems PDFKit ignores highlight color opacity when the document is opened, it's something Bookends can't control. You'll see the same thing in Apple's Preview. I've found threads about this dating back years. Who knows, maybe it will be fixed in macOS 16 (unlikely).

Jon
Sonny Software