-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow custom Layout sizes (ex: A3) #29
Comments
Hi @itskun , You can now specify any layout size you want using the existing Just pass a name/width/height and all the Slides in the that Presentation will be your layout size:
|
Thank you, @gitbrent !
So when I changed 'LAYOUT_16x9' line 92 at pptgen.js |
PPT is very particular about slide layout names.
Hi @itskun , Sure enough there was an issue with the It's been fixed now and an A3 opens for me in PowerPoint without errors now. |
I haved same bug (PowerPoint need recover) when I want set A4 layout. pptx.setLayout({ name: 'A4', width:10.834645669, height:7.5 });
I solved it, by change two lines at pptgen.js /*2620*/ LAYOUTS['LAYOUT_USER'].width = Number(inLayout.width ) * EMU;
/*2621*/ LAYOUTS['LAYOUT_USER'].height = Number(inLayout.height) * EMU; to this /*2620*/ LAYOUTS['LAYOUT_USER'].width = Math.round(Number(inLayout.width ) * EMU);
/*2621*/ LAYOUTS['LAYOUT_USER'].height = Math.round(Number(inLayout.height) * EMU); The width or the height must be an integer not a float. |
Hi @badlee , Thanks for the info! I've added rounding to the |
I would like to see in your wonderful project such new features:
The text was updated successfully, but these errors were encountered: