Find a file
Dileep Sankhla 6dd7cf662d 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
2018-09-25 22:47:01 +02:00
autotests Fix minor EBN issues 2018-08-31 12:23:45 +03:00
cmake/modules Use a target in FindDiscount (modern cmake) rather than variables 2018-05-08 21:39:06 +02:00
conf Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
core Fix isNull check for RegularArea 2018-09-08 22:30:26 +02:00
doc Fix minor EBN issues 2018-08-17 21:05:01 +03:00
generators Fix minor EBN issues 2018-09-01 11:25:57 +03:00
interfaces Fix minor EBN issues 2018-08-31 12:23:45 +03:00
mobile GIT_SILENT made messages (after extraction) 2018-09-04 03:54:09 +02:00
shell Fix minor EBN issues 2018-09-01 11:25:57 +03:00
ui Add typewriter annotation tool 2018-09-25 22:47:01 +02:00
.arcconfig Add the base .arcconfig file 2017-08-30 01:28:40 +02:00
.gitignore Add .gitignore 2014-09-17 23:55:42 +02:00
.krazy synctex is "external code", make krazy stay away from it 2010-02-08 23:15:24 +00:00
aboutdata.h Extending my (C) 2017-09-11 16:30:56 +02:00
AUTHORS oKular goes poppler 2006-03-19 18:03:43 +00:00
CMakeLists.txt GIT_SILENT Upgrade KDE Applications version to 18.08.1. 2018-08-31 18:40:53 +02:00
config-okular.h.cmake Force release of free memory 2018-05-30 10:55:17 +02:00
COPYING - MERGE KPDF 3.5 CHANGES 2005-11-04 11:59:51 +00:00
COPYING.DOC Add copies of the GFDL-1.2 and LGPL-2 2011-07-07 18:22:06 +02:00
COPYING.LIB Add copies of the GFDL-1.2 and LGPL-2 2011-07-07 18:22:06 +02:00
extensions.cpp Fix build without implicit cast to/from ascii 2016-07-11 22:11:43 +02:00
extensions.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
kdocumentviewer.h Fix minor EBN issues 2018-08-17 21:05:01 +03:00
Mainpage.dox remove deprecated Encoding key from desktop files 2018-01-02 22:35:40 +01:00
Messages.sh Make the drawing tools be actions instead of tool buttons 2015-08-22 22:17:40 +02:00
metainfo.yaml dox: the 'interfaces' subdir contains public API as well 2016-12-04 19:04:53 +01:00
okular.categories add markdown support 2017-08-25 01:05:23 +02:00
okular.upd Separate settings in core and non core 2012-10-16 00:28:29 +02:00
Okular5Config.cmake.in add missing include for find_dependency https://build.neon.kde.org/job/xenial_unstable_applications_okular_lintcmake/59/console 2017-10-27 14:53:23 +01:00
okular_part.desktop SVN_SILENT made messages (.desktop file) 2014-12-26 04:18:45 +00:00
OkularConfigureChecks.cmake Force release of free memory 2018-05-30 10:55:17 +02:00
part-viewermode.rc Add "Trim To Selection" feature 2015-08-27 22:09:02 +02:00
part.cpp Fix minor EBN issues 2018-08-31 12:23:45 +03:00
part.h Fix minor EBN issues 2018-09-01 11:25:57 +03:00
part.rc We need to increase the part.rc version number 2017-11-13 14:49:08 +01:00
README.internals.png Optimize PNG files again. 2008-01-02 00:10:07 +00:00
TODO Fix some typos found by Krazy2 2013-06-24 13:46:16 +03:00