PDF Generation with Image

win b
Mega Guru

Hi can you help me on this. I'm kind of confuse right now. I have a code that generates a PDF but the images are not appearing when the PDF is already generated.
find_real_file.png

in the yellow highlighted box area were the image should be place but id doesnt work. I only used Script include and this command code to make the PDF Generation.

find_real_file.pngfind_real_file.png

and the images location was inside the db_image tablefind_real_file.png
Can you help me on this. Thank you very much for your help

2 REPLIES 2

Baala T
Mega Guru

Hi,

The images which are stored in sys_attachment table will not have access to PDFGenerationAPI. If the image is stored in db_image table which can be accessible without authentication and PDFGenerationAPI will have access to them. However we have to use the absolute path (https://<instance_name>.service-now.com/<image_file_name_with_extension>) in your HTML code.

Please do refer this link

 

Regards,
Bala T

win b
Mega Guru

you mean in my scr i need to make it as https://<instance_name>.service-now.com/<image_file_name_with_extension>? not the only name of the image?