Support setting text color for typewriter annotations

Authored by dileepsankhla on Oct 3 2018, 2:31 PM.

Description

Support setting text color for typewriter annotations

Summary:
Changing typewriter text color can be done in the typewriter properties dialog, or programmatically via new okular API methods TextAnnotation::textColor and TextAnnotation::setTextColor.

poppler >= 0.69 is required to store text color natively inside PDF documents. For other document types, text color is stored as metadata inside the document archive.

This work was done during GSoC 2018. See https://community.kde.org/GSoC/2018/StatusReports/DileepSankhla for details.

Test Plan:

  • properties dialog of typewriter annotation has "Font Color" picker
  • saving to PDF results in <r> <g> <b> rg operation in /DA
  • saving to archive results in fontColor="rrggbb" attribute in metadata.xml

Reviewers: sander

Reviewed By: sander

Subscribers: kde-doc-english, sander, okular-devel

Tags: Okular, Documentation

Differential Revision: https://phabricator.kde.org/D15205

Details