Skip to content
  • Dileep Sankhla's avatar
    Support setting text color for typewriter annotations · e44ff387
    Dileep Sankhla authored and Tobias Deiminger's avatar Tobias Deiminger committed
    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
    e44ff387