PptxGenJS icon indicating copy to clipboard operation
PptxGenJS copied to clipboard

[BUG|FEATURE]

Open ericlaaper opened this issue 1 year ago • 0 comments

Issue Category

  • [ ] Bug
  • [ ] Question

Product Versions

  • Please specify what version of the library you are using......: [ latest ]
  • Please specify what version(s) of PowerPoint you are targeting: [ office 365 ]

Desired Behavior

I always used a placeholder with an image like this. (In the master slide)

{ placeholder: { options: { name: "Photo", type: "image", x: 6.47, y: 0.46, w: 3.53, h: 4.41, }, }, },

And in the code

slideIntroA.addImage({ path: '../img/aScan/introA.png', placeholder: 'Photo',

  }) 

Works like a charm

But suddenly with moving to vue3 it only works if I give the heigth and width like

slideIntroA.addImage({ path: '../img/aScan/introA.png', placeholder: 'Photo', w: 3.53, h: 4.41 })

Is there a way the height and width are working within the masterslide again?

Hoe you can help me out

Cheers,

Eric

ericlaaper avatar May 31 '23 00:05 ericlaaper