mate-desktop / atril

A document viewer for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
203 stars 62 forks source link

Unimplemented annotation: POPPLER_ANNOT_HIGHLIGHT #286

Open ziptie opened 6 years ago

ziptie commented 6 years ago

Expected behaviour

I haven't noticed any deviations between expected and actual behaviour.

Actual behaviour

The PDF renders as expected, however Atril outputs a warning: (atril:20987): WARNING : Unimplemented annotation: POPPLER_ANNOT_HIGHLIGHT, please post a bug report on Atril bug tracker (https://github.com/mate-desktop/atril/issues) with a testcase.

Note that on the original document I was using, the number atril complained about was different: ** (atril:17182): However, the message was the same.

Steps to reproduce the behaviour

Create a PDF, I used latexpdf. Kindly ask your colleague who has some mac annotation software (perhaps it was Adobe) to add an annotation to it. Open it with atril from terminal (so you can see the output).

I will try to attach a sample pdf that exhibits this behaviour on my machine.

MATE general version

From "About MATE" on the menu, it says: MATE Desktop Environment 1.16.2

Package version

$ atril --version MATE Document Viewer 1.16.1

Linux Distribution

The operating system is RHEL 7.4. The package repository, however, is EPEL7

link to downstream report of your Distribution

N/A

ziptie commented 6 years ago

poppler_annotation_example-annot.pdf

monsta commented 6 years ago

Confirmed with the attached file in Atril from git master.

Amudtogal commented 6 years ago

I had a similar warning from poppler:

** (atril:11819): WARNING **: #####: Unimplemented annotation: POPPLER_ANNOT_FREE_TEXT, please post a bug report on Atril bug tracker (https://github.com/mate-desktop/atril/issues) with a testcase.

I can not provide the file as a testcase, however I hope this might be useful anyway.

Thanks for this awesome PDF reader and happy coding!

JasonWoof commented 4 years ago

I found a way to create a pdf file that reproduces this issue using free software. Here's how:

  1. Open a pdf file in okular

  2. Click the "tools" menu then "Review" (unless it's already checked)

This displays a menu of tools you can use to add annotations

  1. click the 2nd ("Inline Note") tool then click on the document. Type some text and click the "OK" button.

  2. click the Elipse tool and drag a rectangle on the document.

  3. click in the menu File -> Save As... to save your annotated pdf

  4. Open the annotated pdf in atril from a terminal.

Results: it renders correctly, but outputs these warnings in the terminal:

Unimplemented annotation: POPPLER_ANNOT_FREE_TEXT, please post a bug report on Atril bug tracker (https://github.com/mate-desktop/atril/issues) with a testcase.
Unimplemented annotation: POPPLER_ANNOT_CIRCLE, please post a bug report on Atril bug tracker (https://github.com/mate-desktop/atril/issues) with a testcase.

I didn't try the other annotation tools, but they might produce similar warnings.

wcedmisten commented 3 months ago

K140961.pdf

Here's another PDF that exhibits the warning:

** (evince:65680): WARNING **: 22:26:10.773: Unimplemented annotation: POPPLER_ANNOT_FREE_TEXT.  It is a known issue and it might be implemented in the future.