Clicking on certain annotations causes Evince to crash
Summary
Clicking on certain annotations causes Evince to crash
Description
Info:
- Evince 42.3
- OS: Kubuntu 22.04
The PDF document was generated via the following LaTeX code.
\documentclass[12pt, english]{article}
\usepackage{tikz} % don't know why this is needed to compile
\usepackage{pdfcomment}
\begin{document}
\pdfcomment[color=yellow]{some comment} % no crash on click when `color` is not specified
\end{document}
Build file can be found here: main.pdf
The PDF opens without issues and the annotation does appear where it needs to be but clicking on it crashes the application with the following error logged in the console:
(evince:9109): Poppler-WARNING **: 15:56:16.516: Unsupported Annot Color: colorCMYK
(evince:9109): EvinceView-ERROR **: 15:56:18.692: <data>:1:33Invalid number for alpha value
fish: Job 1, 'evince build/main.pdf' terminated by signal SIGTRAP (Trace or breakpoint trap)
In the buggy PDF, we have:
[...]
/Subtype /Text/C [0 0 1 0] /CreationDate (D:20240311160055+0100)
[...]
Changing it to the following removes the crash:
[...]
/Subtype /Text/C [0 0 1] /CreationDate (D:20240311160055+0100)
[...]
Edited by Benjamin Millet