Pptxgenjs: hyperlink does not work

Created on 16 Jun 2019  路  3Comments  路  Source: gitbrent/PptxGenJS

The hyperlink prop on add text does not work. Code implementation below. Nothings change on my .pptx when I implement hyperlink

image

question

All 3 comments

Hi @LeoFC97

Your code is incorrect - please include the options keyword as shown in the API Docs.

slide.addText(
    [
        { text:'Visit the ' },
        { text:'PptxGenJS Project', options:{ hyperlink:{ url:'https://github.com/gitbrent/pptxgenjs', tooltip:'Visit Homepage' } } },
        { text:' or ' },
        { text:'(link without tooltip)', options:{hyperlink:{url:'https://github.com/gitbrent'}} }
    ],
    { x:0.5, y:5.35, w:6.0, h:0.6, margin:0.1, fill:'F1F1F1', fontSize:14 }
);

Screen Shot 2019-06-17 at 17 07 30

Thanks for the reply, but I'm still having the same problem.
image

hyperlink goes inside the options object (it's a child not a sibling)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cwilkens picture cwilkens  路  6Comments

kevinresol picture kevinresol  路  3Comments

simonjcarr picture simonjcarr  路  6Comments

yodasodabob picture yodasodabob  路  6Comments

shyam2794 picture shyam2794  路  6Comments