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...
JMorrison
2 years agoCommunity Member
I cannot figure out how to resize the pdf properly. Does anyone know how? I have an image that is 2500 pixels wide, but it only shows the top left corner of it. I changed the code in the certificate javascript file to the below, but again it only shows the top left corner. Is there something else that needs to change? Thanks for any help! (I also don't know what the ".89" is for after the width, but when I remove it, no pdf is created)
background: [
{
image: 'certBackground',
width: 2500.89,
height: 1768.28
}
],