Ziv-Barber / officegen

Standalone Office Open XML files (Microsoft Office 2007 and later) generator for Word (docx), PowerPoint (pptx) and Excell (xlsx) in javascript. The output is a stream.
MIT License
2.65k stars 471 forks source link

when add image in ppt not show charts in node js officegen #362

Open talaatmagdyx opened 4 years ago

talaatmagdyx commented 4 years ago

I need add image background to slides when add image can't show charts . when delete code for addImage show charts .

 let slide_3 = pptx.makeNewSlide()
                      // background page
                      slide_3.addImage(
                          other_pages_img,
                          {cx: '100%', cy: '100%', x: 0, y: 0})

                      // Volume Over Time - Line chart
                      slide_3.addChart(
                          {
                            title: ' ',
                            renderType: 'line',
                            data: [
                              {
                                name: name,
                                labels: labels,
                                values: valuse,
                                color: primary_color// optional
                              }
                            ]
                          },
                          finalize
                      )