Add typewriter annotation tool

Authored by dileepsankhla on Sep 21 2018, 8:10 PM.

Description

Add typewriter annotation tool

Summary:
Typewriter is originally specified by the PDF reference as special FreeText annotation, where Intent=FreeTextTypewriter. It features opaque letters on transparent background, so that users can fill non interactive forms. Herewith typewriter is implemented natively for PDF, and there's also an Okular specific implementation for other document types. The added tool reuses the inline note UI.

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

FEATURE: 353401

Test Plan:

  • okularpartrc is generated (if not yet existing) with typewriter as 10th tool
  • typewriter tool is also available in Annotation Tools -> Add, Typ "Typewriter"
  • selecting the tool and left click into document opens inline note input dialog
  • finishing creates an annotation similar to inline note, but with transparent background
  • saving into PDF results in /Subtype FreeText /IT /FreeTextTypeWriter
  • saving typewriter into archive stores color with alpha channel = 0x00
  • opening annotated archive works, if archive was created with old Okular, and opened in patched Okular
  • opening annotated archive works, if archive was created with patched Okular, and opened in old Okular

Reviewers: sander

Reviewed By: sander

Subscribers: ngraham, sander, okular-devel

Tags: Okular

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

Details

Committed
tobiasdeimingerSep 25 2018, 8:47 PM
Reviewer
sander
Differential Revision
D15204: Add typewriter annotation tool
Parents
R223:61e8b1d79dc7: Merge remote-tracking branch 'origin/Applications/18.08'
Branches
Unknown
Tags
Unknown