Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Table with 7 columns generates an invalid pptx file. #12

Closed
rikvdk opened this issue Dec 6, 2016 · 1 comment
Closed

Table with 7 columns generates an invalid pptx file. #12

rikvdk opened this issue Dec 6, 2016 · 1 comment
Assignees

Comments

@rikvdk
Copy link

rikvdk commented Dec 6, 2016

var pptx = new PptxGenJS();            
var slide = pptx.addNewSlide();
var rows = [1,2,3,4,5,6,7];

slide.addTable(rows);
pptx.save();

For some reason a table with 7 columns generates a pptx which I cannot open. I tried with 1 to 10 columns and only 7 had this problem.

@gitbrent gitbrent self-assigned this Dec 6, 2016
gitbrent pushed a commit that referenced this issue Dec 8, 2016
Auto column sizing math wasn’t rounding and tables with 7 columns (and
likely others) would result in a very large decimal value, which would
choke PowerPoint.
@gitbrent
Copy link
Owner

gitbrent commented Dec 8, 2016

Thanks for reporting this!

@gitbrent gitbrent closed this as completed Dec 8, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants