Skip to content
  • Dileep Sankhla's avatar
    Add typewriter annotation tool · 6dd7cf66
    Dileep Sankhla authored and Tobias Deiminger's avatar Tobias Deiminger committed
    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
    6dd7cf66