Custom Image field in a PDF template

stefanoperinott
ServiceNow Employee
ServiceNow Employee

Hi all,

I add a new field in the sys_user table; I named it 'my_signature' and it is 'image' type field.

This is because I want to upload personal signatures of each user in this field.

Now, I want to make it appear in a pdf template, but every attempt I made was a failure.

Can anyone suggest me the right way to do it?

Thanks a lot

Bye

Stefano

6 REPLIES 6

dravvyramlochun
ServiceNow Employee
ServiceNow Employee

Hello 

 

Have a look at, it might give you some lead :

Image field type

Create or modify an HR document template

alijubran
Kilo Expert

Are you trying to add the image to a fillable PDF file? Or a generated document template? 

I believe they each use a different library and finding the right solution will be dependent on which type of document you want to overlay the image on.

There is a script on the sys_attachment table that handles the image overlay called "Generate PDF Document" and depending on the document it will call a different class.

Hopefully this points you in the right direction.

Hi Alijubran!

Thanks for your answer! What I'm trying to do is to get the signature on a pdf document templated from a field on the user table.

I will taking a look to the script you mentioned, but in the meanwhile do you have any more suggetions?

Thanks a lot in advance

Stefano

 

Hi again..

do you remember the name of the script on the sys_attachment table? 

I don't find it.

Thanks a lot

Stefano