Context

Problem

I needed to find a simple solution to make it easier.

Solution

Create the file ~/.kde4/share/kde4/services/ServiceMenus/.desktop and add this content:

[Desktop Entry]
Type=Service
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/pdf
Name=Stamp Digital Ocean Tax ID
Actions=StampDigitalOceanTaxID;
X-KDE-StartupNotify=false
X-KDE-Priority=TopLevel

[Desktop Action StampDigitalOceanTaxID]
Name=Stamp Digital Ocean Tax ID
Exec=pdftk %F stamp /data/digital_ocean/tax_id_digital_ocean.pdf output digital_ocean.pdf

This file, add a new action when you press right click over a PDF file. The option will be “Stamp Digital Ocean Tax ID” and execute the command on the last line.

And that’s it

comments powered by Disqus