readerhighlight: don't try to write page bookmarks into PDF (#15097)

This commit is contained in:
hius07 authored and GitHub committed 2026-03-09 17:09:52 +02:00
1 parent 0f8f24b79b
commit 5ffbeb52d8
1 file changed
+1 -1
@@ -2259,7 +2259,7 @@ function ReaderHighlight:saveHighlight(extend_to_sentence)
end
function ReaderHighlight:writePdfAnnotation(action, item, content)
if self.ui.rolling or not self.highlight_write_into_pdf then
if not (self.document.is_pdf and self.highlight_write_into_pdf and item.drawer) then
return
end
logger.dbg("write to pdf document", action, item)