0

我正在尝试使用文本数组创建一个 masterslide 但不起作用,这是我的代码:

    let textArray=[
            { text:'word-level', options:{ font_size:36, color:'99ABCC' } },
            { text:'formatting', options:{ font_size:48, color:'FFFF00' } }
    ];
    
    
    pptx.defineSlideMaster({
      title: 'MASTER_SLIDE',
      bkgd:  'FFFFFF',
      objects: [
        { 'line':  { x: 3.5, y:1.00, w:6.00, line:'0088CC', line_size:5 } },
        { 'rect':  { x: 0.0, y:5.30, w:'100%', h:0.75, fill:'F1F1F1' } },
        { 'text':  { textArray } },
        { 'image': { x:11.3, y:6.40, w:1.67, h:0.75, path:'images/logo.png' } }
      ],
      slideNumber: { x:0.3, y:'90%' }
    });
4

0 回答 0