Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Okular as my pdf reader on Linux. I want to know how I can modify the color of the highlight permanently. I know I can modify the saturation of the color used by highlight tool by right clicking on the highlight selection and making the desired modifications. However, those are applicable only to the current selection.

How can I set okular to maintain those settings for every highlight in the file(and still allow customising at specific positions) and also maintain them after the file is closed [and opened later .i.e. the settings are not lost]

share|improve this question
    
did you find a solution? –  lucacerone May 30 '13 at 14:55
    
@Luca No, nothing yet. :( –  VusP May 30 '13 at 15:04
    
@LucaCerone Check the new answer. –  VusP Jul 11 '13 at 7:13
    
thanks a lot! this seems to do the trick! –  lucacerone Jul 11 '13 at 9:09

1 Answer 1

up vote 4 down vote accepted

I wanted to permanently set the highlighters to a few colors and do away with the green line and polygon stuff. It turns out you can modify what highlighters are available by modifying the tools.xml file. For me (Okular 0.16.3 from official repository on Ubuntu 13.04), this is located at /usr/share/kde4/apps/okular. You should be able to divine this by running kde4-config --path data and appending okular to the last path (but see update below).

In there, you'll see things like

<tool id="7" name="Stamp" pixmap="tool-stamp-okular">
    <tooltip>Put a stamp symbol</tooltip>
    <engine type="PickPoint" hoverIcon="okular" size="64" block="true">
        <annotation type="Stamp" icon="okular"/>
    </engine>
    <shortcut>7</shortcut>
</tool>

If you replace it to look like the yellow highlighter's block, you'll get a similar highlighter. In my case:

<tool id="7" name="Magenta Highlighter" pixmap="tool-color-magenta">
    <tooltip>Magenta Highlight</tooltip>
    <engine type="TextSelector" color="#FF99FF">
        <annotation type="Highlight" color="#FF99FF" />
    </engine>
    <shortcut>7</shortcut>
</tool>

The tool-color-magenta pixmap is stored in /usr/share/kde4/apps/okular/pics and you can put a png there.

So now my review toolbar looks like this:

enter image description here

I needed to sudo to modify these files.

Update: following the periodic software update window in ubuntu, I have upgraded Okular to 0.16.4, which restored the default tools.xml. It looks like if instead you copy or symlink your customized files to the kde apps okular path under your $HOME (in my case, $HOME/.kde/share/apps/okular), it should take precedence over the /usr/share/... ones and save you some trouble.

share|improve this answer
    
Great fix, but any way to modify the colors of annotations written to the pdf by Acrobat? This makes my own annotations more legible but doesn't help with imported documents. –  mmdanziger Jan 6 at 12:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.