PDF Generation with Image
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 07:04 PM
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.
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.
and the images location was inside the db_image table
Can you help me on this. Thank you very much for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 07:52 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 08:06 PM
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?