We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Please specify what version of the library you are using: v3.3.0
Please specify what version(s) of PowerPoint you are targeting: PowerPoint 16.40, Keynote 10.1
If used the custom slide layout defined through defineLayout(), the output pptx should show the slide with the correct size defined in layout.
defineLayout()
A broken pptx will be generated if used the custom slide layout in PptxGenJS v3.3.0.
PowerPoint will be trying to repair it but the result has different layout size. Keynote will show nothing.
Run this script in Node.js and open pptx.pptx:
pptx.pptx
const PptxGenJS = require('pptxgenjs') const pptx = new PptxGenJS() pptx.defineLayout({ name: 'A3', width: 16.5, height: 11.7 }) // console.dir(pptx.presLayout) pptx.layout = 'A3' // console.dir(pptx.presLayout) pptx.addSlide() pptx.writeFile('pptx.pptx')
LAYOUT_4x3
width
height
pptx.presLayout
layout
pptx.layout = 'A3' pptx.presLayout.width = pptx.presLayout._sizeW pptx.presLayout.height = pptx.presLayout._sizeH
The text was updated successfully, but these errors were encountered:
Fix for Issue #826
73c9a6d
Thanks @yhatt - I thought there was a test case for defineLayout(), but I was mistaken.
Issue was due to lose type definitions not catching recent changes to SlideLayout props in 3.3.0
Sorry, something went wrong.
gitbrent
No branches or pull requests
Category
Version
Please specify what version of the library you are using: v3.3.0
Please specify what version(s) of PowerPoint you are targeting: PowerPoint 16.40, Keynote 10.1
Expected
If used the custom slide layout defined through
defineLayout()
, the output pptx should show the slide with the correct size defined in layout.Observed Behavior
A broken pptx will be generated if used the custom slide layout in PptxGenJS v3.3.0.
PowerPoint will be trying to repair it but the result has different layout size. Keynote will show nothing.
Steps to Reproduce
Run this script in Node.js and open
pptx.pptx
:Appendix
LAYOUT_4x3
also will work.width
andheight
topptx.presLayout
manually after assigninglayout
.The text was updated successfully, but these errors were encountered: