Bug 397117 - Needed possibility to create own stamps in the tools of Okular
Summary: Needed possibility to create own stamps in the tools of Okular
Status: RESOLVED DUPLICATE of bug 383652
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.3.3
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-03 06:11 UTC by kiv
Modified: 2018-08-09 20:30 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kiv 2018-08-03 06:11:13 UTC
Unfortunately there is not possible to create my own stamps in the tools of Okular.
But in many cases I need to put some stamp like "SIGNED WITH A DIGITAL SIGNATURE"
My need is to make possible to stamp documents to be signed digitally let say by gpg or other tools like does Acrobat Reader DC when used to digitally sign some PDF file. This will be needed if such document will be printed lately. Then the printed version need to inform if the original was signed digitally.

I believe if same functionality for digital signature like in Acrobat DC will be possible in Okular it will be great. But if it will be not possible, then at least a stamp like above will be very helpful. 

Any way some tools allowing users to create their own stamps will be very helpful as different users will need different stamps not available in the already available stamps in Okular.
Comment 1 Burkhard Lück 2018-08-03 11:46:38 UTC
Please read Using Custom Stamps on https://docs.kde.org/trunk5/en/kdegraphics/okular/configannotations.html
Comment 2 Tobias Deiminger 2018-08-03 12:01:01 UTC
(In reply to Burkhard Lueck from comment #1)
> Please read Using Custom Stamps on
> https://docs.kde.org/trunk5/en/kdegraphics/okular/configannotations.html

Basically yes, but as I understand the request is about PDF documents (Adobe Reader is mentioned), and so we suffer from bug 383651.
Comment 3 kiv 2018-08-03 14:09:46 UTC
Dear all,

My idea was to create a stamp for PDF documents to indicate that current document is signed. Because in some cases people use the PDF only without the accompanying signature file.

Ideally it could be fine if people could sign some documents and Okular can automatically put the signature in the document and indicate by some stamp that this current document is signed and the key is trusted, as Acrobat DC can do it.

Same may be useful also for other document formats not only PDF's.

As I can not do it this way like Acrobat DC by Okular, I am trying to have a custom stamp to indicate somehow that current document is signed digitally.

So I tried, to create such custom stamp.
I was reading the mentioned manual before to try creating my custom stamp, but it did not help for me.
This is because can not use for stamps any image Okular can open before that. I have tested jpg, png, ps, pdf, tiff and others. to create such custom stamp.

Probably I am doing some thing wrong, but may be my Okular has some bug?

Could you please some one inform where are keept the images for already available stamps?
I am going to check what kind of images they are and prepare my stamp image same like it and put there to check if I could create then a stamp with my image.
Comment 4 kiv 2018-08-03 14:18:10 UTC
Sorry for writing again, and sorry for not very polyte English I use.
This is because English is far away from my mother language.

Any way just to mention that if I could put the needed stamp even if because the mentioned bug it will be not printed on paper, the availability of such stamp on the computer screen with the document will be great progress.
Comment 5 Tobias Deiminger 2018-08-03 18:24:57 UTC
(In reply to kiv from comment #3)
> So I tried, to create such custom stamp.
> I was reading the mentioned manual before to try creating my custom stamp,
> but it did not help for me.
> This is because can not use for stamps any image Okular can open before
> that. I have tested jpg, png, ps, pdf, tiff and others. to create such
> custom stamp.
> 
> Probably I am doing some thing wrong, but may be my Okular has some bug?
> 
> Could you please some one inform where are keept the images for already
> available stamps?

The shipped stamps are all in one svg file probably at /usr/share/okular/pics/stamps.svg.

But you don't have to save your custom stamps there. I just created /home/tobias/mystamp.jpg, and did what the manual tells. It works. The procedure is indeed a bit uncommon: You have to click into the drop down field. Then you're able to enter text. You enter the full, absolute file path there (/home/tobias/mystamp.jpg) and click ok. Then your stamp should be recognized. Have you tried that?

(In reply to kiv from comment #4)
> Any way just to mention that if I could put the needed stamp even if because
> the mentioned bug it will be not printed on paper, the availability of such
> stamp on the computer screen with the document will be great progress.

The bug prevents printing. Further more, custom stamps will only show up in Okular but not in other readers like Acrobat Reader. If both is not a problem to you, then the feature is definitely already there.
Comment 6 kiv 2018-08-04 18:42:24 UTC
Dear Tobiras,

I am doing exactly same as you, but my stamp get empty. I can put my custom stamp, but my image is not visible there. I can remove it from the annotated file , but it is only a empty frame.

What Linux distribution are you using? I am trying all this in openSUSE Leap 15.

If needed I can create some short movie how I am doing it and it does not work. But I am afraid it could produce too big file.
Comment 7 kiv 2018-08-04 19:51:39 UTC
Finally I managed to solve this problem for me.
Thanks for the given information I put my swg image in /usr/share/okular/pics/ but it did not work.
Then I tryied wit some of the PNG pictures there and it worked as expected.
So then I have created my PNG picture and put it in /usr/share/okular/pics/ and it worked as expected. 
Then put same picture on other places in my computer but could not create stamp from no other places than /usr/share/okular/pics/

This way my problem is solved even not as expected but this strange way.
Comment 8 Nate Graham 2018-08-09 20:30:32 UTC

*** This bug has been marked as a duplicate of bug 383652 ***