Customise Okular to add my own annotation “stamps”
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
There's an excellent post on customising Okular to modify highlight tool properties at
Customise Okular to modify highlight tool properties
It's helpful but it deals with modifying an existing tool feature. I want to add my own annotation "Stamps" so that with a click or two I can place them on a PDF document. I suspect it involves modifying the tool.xml file and adding .png files of the "stamps" to a folder. More specific guidance would be appreciated.
linux pdf annotations okular
add a comment |
There's an excellent post on customising Okular to modify highlight tool properties at
Customise Okular to modify highlight tool properties
It's helpful but it deals with modifying an existing tool feature. I want to add my own annotation "Stamps" so that with a click or two I can place them on a PDF document. I suspect it involves modifying the tool.xml file and adding .png files of the "stamps" to a folder. More specific guidance would be appreciated.
linux pdf annotations okular
add a comment |
There's an excellent post on customising Okular to modify highlight tool properties at
Customise Okular to modify highlight tool properties
It's helpful but it deals with modifying an existing tool feature. I want to add my own annotation "Stamps" so that with a click or two I can place them on a PDF document. I suspect it involves modifying the tool.xml file and adding .png files of the "stamps" to a folder. More specific guidance would be appreciated.
linux pdf annotations okular
There's an excellent post on customising Okular to modify highlight tool properties at
Customise Okular to modify highlight tool properties
It's helpful but it deals with modifying an existing tool feature. I want to add my own annotation "Stamps" so that with a click or two I can place them on a PDF document. I suspect it involves modifying the tool.xml file and adding .png files of the "stamps" to a folder. More specific guidance would be appreciated.
linux pdf annotations okular
linux pdf annotations okular
edited Mar 20 '17 at 10:17
Community♦
1
1
asked May 9 '16 at 0:46
Mick ThomasonMick Thomason
164
164
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
I followed up @bengan's recipe, but copying to the ~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
1
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
1
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
2
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
|
show 1 more comment
Since Okular 0.24 it's possible to define your own stamps.
- You create your own stamp and save it as png or svg. (Ex. picture.png)
- Copy it to ~/.kde4/share/icons/ (or .kde whichever is used)
- In Okular you go to Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex. picture.png)
From user cengique: I followed up @bengan's recipe, but copying to the~/.kde4
location didn't work. Only when I copied my file under/usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
– fixer1234
May 3 '17 at 23:40
add a comment |
In the Okular docs page there is explained the mothod to add a custom stamp:
- Create the icon you want to use for your own stamp and save it in any graphics format supported by Okular
- Click the Add button, select type Stamp and enter a name for your stamp.
- Enter the full path to your custom icon into the dropdown box in the Stamp Symbol group
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in.kde/
.
– magiraud
Jan 30 at 7:01
add a comment |
It took me a while to figure this out. I had to use strace and discovered ocular looks for the lower case of the filename you enter manually, rather than the actual case you enter. (my file had upper cases in it.)
So adjusting the post from @bengan for Ubuntu 16.04, Okular 0.24.2 -
- Create your own stamp and save it as png or svg, making sure it is all lower case. (Ex.
picture.png
) - Copy it to
~/.kde/share/apps/okular/pics/
(or .kde4 whichever is used) - In Okular you go to
Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex.
picture.png
) The path should not be necessary and the actual picture should show up when you get it right. (it searches for it as you type)
add a comment |
Actually, all the answers here are partially correct. Here is the rest.
- The path for me was
~/.local/share/apps/okular/pics/
- The file must have PNG, XPM, SVGZ or SVG extension (JPG and PDF don't work)
- Then go in Settings > Configure > Annotation
- Click "Add", choose "Stamp", give it a name and put the file name without extension and without path into the "Symbol" field. It should show the image at once.
- Click OK.
Now you can use the file as a stamp. However, it will be distorted since it must be a square image and reduced in quality to fit the 128x128 (?) size required for stamps.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1074614%2fcustomise-okular-to-add-my-own-annotation-stamps%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
I followed up @bengan's recipe, but copying to the ~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
1
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
1
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
2
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
|
show 1 more comment
I followed up @bengan's recipe, but copying to the ~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
1
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
1
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
2
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
|
show 1 more comment
I followed up @bengan's recipe, but copying to the ~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
I followed up @bengan's recipe, but copying to the ~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
answered May 1 '17 at 19:54
cengiquecengique
612
612
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
1
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
1
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
2
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
|
show 1 more comment
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
1
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
1
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
2
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
This is really commentary on another post rather than a solution to the question.
– fixer1234
May 1 '17 at 20:16
1
1
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
"You must have 50 reputation to comment"
– cengique
May 2 '17 at 20:52
1
1
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
Correct. Answer posts are reserved for solutions. Posting a comment as an answer tends to attract downvotes as a "non-answer", which will offset gaining the rep needed to comment.
– fixer1234
May 2 '17 at 21:03
2
2
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I actually don't care about the reputation game, and wanted to simply share my solution. Since I can't comment, I was forced to create a new reply. What's your solution?
– cengique
May 3 '17 at 22:23
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
I went ahead and copied it to a comment for you so the information won't be lost if/when this post is deleted.
– fixer1234
May 3 '17 at 23:49
|
show 1 more comment
Since Okular 0.24 it's possible to define your own stamps.
- You create your own stamp and save it as png or svg. (Ex. picture.png)
- Copy it to ~/.kde4/share/icons/ (or .kde whichever is used)
- In Okular you go to Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex. picture.png)
From user cengique: I followed up @bengan's recipe, but copying to the~/.kde4
location didn't work. Only when I copied my file under/usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
– fixer1234
May 3 '17 at 23:40
add a comment |
Since Okular 0.24 it's possible to define your own stamps.
- You create your own stamp and save it as png or svg. (Ex. picture.png)
- Copy it to ~/.kde4/share/icons/ (or .kde whichever is used)
- In Okular you go to Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex. picture.png)
From user cengique: I followed up @bengan's recipe, but copying to the~/.kde4
location didn't work. Only when I copied my file under/usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
– fixer1234
May 3 '17 at 23:40
add a comment |
Since Okular 0.24 it's possible to define your own stamps.
- You create your own stamp and save it as png or svg. (Ex. picture.png)
- Copy it to ~/.kde4/share/icons/ (or .kde whichever is used)
- In Okular you go to Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex. picture.png)
Since Okular 0.24 it's possible to define your own stamps.
- You create your own stamp and save it as png or svg. (Ex. picture.png)
- Copy it to ~/.kde4/share/icons/ (or .kde whichever is used)
- In Okular you go to Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex. picture.png)
answered Dec 13 '16 at 13:58
benganbengan
214
214
From user cengique: I followed up @bengan's recipe, but copying to the~/.kde4
location didn't work. Only when I copied my file under/usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
– fixer1234
May 3 '17 at 23:40
add a comment |
From user cengique: I followed up @bengan's recipe, but copying to the~/.kde4
location didn't work. Only when I copied my file under/usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.
– fixer1234
May 3 '17 at 23:40
From user cengique: I followed up @bengan's recipe, but copying to the
~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.– fixer1234
May 3 '17 at 23:40
From user cengique: I followed up @bengan's recipe, but copying to the
~/.kde4
location didn't work. Only when I copied my file under /usr/share/okular/pics/
, it did show up inside Okular, but it still won't print out.– fixer1234
May 3 '17 at 23:40
add a comment |
In the Okular docs page there is explained the mothod to add a custom stamp:
- Create the icon you want to use for your own stamp and save it in any graphics format supported by Okular
- Click the Add button, select type Stamp and enter a name for your stamp.
- Enter the full path to your custom icon into the dropdown box in the Stamp Symbol group
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in.kde/
.
– magiraud
Jan 30 at 7:01
add a comment |
In the Okular docs page there is explained the mothod to add a custom stamp:
- Create the icon you want to use for your own stamp and save it in any graphics format supported by Okular
- Click the Add button, select type Stamp and enter a name for your stamp.
- Enter the full path to your custom icon into the dropdown box in the Stamp Symbol group
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in.kde/
.
– magiraud
Jan 30 at 7:01
add a comment |
In the Okular docs page there is explained the mothod to add a custom stamp:
- Create the icon you want to use for your own stamp and save it in any graphics format supported by Okular
- Click the Add button, select type Stamp and enter a name for your stamp.
- Enter the full path to your custom icon into the dropdown box in the Stamp Symbol group
In the Okular docs page there is explained the mothod to add a custom stamp:
- Create the icon you want to use for your own stamp and save it in any graphics format supported by Okular
- Click the Add button, select type Stamp and enter a name for your stamp.
- Enter the full path to your custom icon into the dropdown box in the Stamp Symbol group
answered Jun 28 '17 at 11:14
dharmandharman
292
292
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in.kde/
.
– magiraud
Jan 30 at 7:01
add a comment |
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in.kde/
.
– magiraud
Jan 30 at 7:01
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in
.kde/
.– magiraud
Jan 30 at 7:01
This worked for me (Ubuntu 18.04), but provided that all the full path is in lower case. The file does not need to be in
.kde/
.– magiraud
Jan 30 at 7:01
add a comment |
It took me a while to figure this out. I had to use strace and discovered ocular looks for the lower case of the filename you enter manually, rather than the actual case you enter. (my file had upper cases in it.)
So adjusting the post from @bengan for Ubuntu 16.04, Okular 0.24.2 -
- Create your own stamp and save it as png or svg, making sure it is all lower case. (Ex.
picture.png
) - Copy it to
~/.kde/share/apps/okular/pics/
(or .kde4 whichever is used) - In Okular you go to
Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex.
picture.png
) The path should not be necessary and the actual picture should show up when you get it right. (it searches for it as you type)
add a comment |
It took me a while to figure this out. I had to use strace and discovered ocular looks for the lower case of the filename you enter manually, rather than the actual case you enter. (my file had upper cases in it.)
So adjusting the post from @bengan for Ubuntu 16.04, Okular 0.24.2 -
- Create your own stamp and save it as png or svg, making sure it is all lower case. (Ex.
picture.png
) - Copy it to
~/.kde/share/apps/okular/pics/
(or .kde4 whichever is used) - In Okular you go to
Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex.
picture.png
) The path should not be necessary and the actual picture should show up when you get it right. (it searches for it as you type)
add a comment |
It took me a while to figure this out. I had to use strace and discovered ocular looks for the lower case of the filename you enter manually, rather than the actual case you enter. (my file had upper cases in it.)
So adjusting the post from @bengan for Ubuntu 16.04, Okular 0.24.2 -
- Create your own stamp and save it as png or svg, making sure it is all lower case. (Ex.
picture.png
) - Copy it to
~/.kde/share/apps/okular/pics/
(or .kde4 whichever is used) - In Okular you go to
Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex.
picture.png
) The path should not be necessary and the actual picture should show up when you get it right. (it searches for it as you type)
It took me a while to figure this out. I had to use strace and discovered ocular looks for the lower case of the filename you enter manually, rather than the actual case you enter. (my file had upper cases in it.)
So adjusting the post from @bengan for Ubuntu 16.04, Okular 0.24.2 -
- Create your own stamp and save it as png or svg, making sure it is all lower case. (Ex.
picture.png
) - Copy it to
~/.kde/share/apps/okular/pics/
(or .kde4 whichever is used) - In Okular you go to
Settings->Configure Okular->Annotations
- Click on "Add". Chose Type "Stamp"
- Give it a name in "Name:"
- In the box "Stamp Symbol" enter your own file. (Ex.
picture.png
) The path should not be necessary and the actual picture should show up when you get it right. (it searches for it as you type)
edited May 23 '18 at 4:17
SDsolar
1,00811025
1,00811025
answered May 22 '18 at 21:19
Ethan BurnsideEthan Burnside
211
211
add a comment |
add a comment |
Actually, all the answers here are partially correct. Here is the rest.
- The path for me was
~/.local/share/apps/okular/pics/
- The file must have PNG, XPM, SVGZ or SVG extension (JPG and PDF don't work)
- Then go in Settings > Configure > Annotation
- Click "Add", choose "Stamp", give it a name and put the file name without extension and without path into the "Symbol" field. It should show the image at once.
- Click OK.
Now you can use the file as a stamp. However, it will be distorted since it must be a square image and reduced in quality to fit the 128x128 (?) size required for stamps.
add a comment |
Actually, all the answers here are partially correct. Here is the rest.
- The path for me was
~/.local/share/apps/okular/pics/
- The file must have PNG, XPM, SVGZ or SVG extension (JPG and PDF don't work)
- Then go in Settings > Configure > Annotation
- Click "Add", choose "Stamp", give it a name and put the file name without extension and without path into the "Symbol" field. It should show the image at once.
- Click OK.
Now you can use the file as a stamp. However, it will be distorted since it must be a square image and reduced in quality to fit the 128x128 (?) size required for stamps.
add a comment |
Actually, all the answers here are partially correct. Here is the rest.
- The path for me was
~/.local/share/apps/okular/pics/
- The file must have PNG, XPM, SVGZ or SVG extension (JPG and PDF don't work)
- Then go in Settings > Configure > Annotation
- Click "Add", choose "Stamp", give it a name and put the file name without extension and without path into the "Symbol" field. It should show the image at once.
- Click OK.
Now you can use the file as a stamp. However, it will be distorted since it must be a square image and reduced in quality to fit the 128x128 (?) size required for stamps.
Actually, all the answers here are partially correct. Here is the rest.
- The path for me was
~/.local/share/apps/okular/pics/
- The file must have PNG, XPM, SVGZ or SVG extension (JPG and PDF don't work)
- Then go in Settings > Configure > Annotation
- Click "Add", choose "Stamp", give it a name and put the file name without extension and without path into the "Symbol" field. It should show the image at once.
- Click OK.
Now you can use the file as a stamp. However, it will be distorted since it must be a square image and reduced in quality to fit the 128x128 (?) size required for stamps.
answered Feb 5 at 21:21
JensJens
1062
1062
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1074614%2fcustomise-okular-to-add-my-own-annotation-stamps%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown