Forum Discussion
RyanLowry
7 years agoCommunity Member
Storyline 360 - Generating a PDF Certificate using JavaScript
This example demonstrates how to use the pdfmake JavaScript library to generate PDF certificates in the browser using Storyline 360.
This is a followup to my original post found here. The only cha...
RyanLowry
4 years agoCommunity Member
Hey Jessika. That text is part of the SVG background image used in the example. You'll find this included inline within certificate.js on line 45 as shown below. This isn't easily editable. Instead you'll probably want to specify your own background image.
background: [
{
svg: 'SVG_BACKGROUND_IMAGE_INCLUDED_HERE',
width: 841.89,
height: 595.28
}
],
You can find more about including SVGs in the pdfmake docs - https://pdfmake.github.io/docs/0.1/document-definition-object/svgs/
Alternatively you could insert a jpeg of your own design - here: https://pdfmake.github.io/docs/0.1/document-definition-object/images/