-
Notifications
You must be signed in to change notification settings - Fork 666
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
Multiple a:bodyPr tags within a:txBody causes damaged presentation in PowerPoint 2007 #69
Comments
Hi @ZouhaierSebri , What version of PowerPoint are you using? |
Hi @gitbrent , |
Hi @ZouhaierSebri , Thanks for opening this issue. The problem was the line breaks being used. While PPT2010+ can digest The solution was to utilize CRLF ( Please try your tests again with the current code and let me know... |
Hi @ZouhaierSebri , Thanks for testing. I wonder if the cause is the custom bullets? Can you try running the test below via the Demo page sandbox or however you'd like. var pptx = new PptxGenJS();
pptx.addNewSlide().addText(
[ { text:'word-level\nformatting', options:{ font_size:36, font_face:'Arial', color:'99ABCC', align:'r' } } ],
{ x:0.5, y:0.5, w:8.5, h:2.5, margin:0.1, fill:'232323' }
);
pptx.addNewSlide().addText(
[
{ text:'I am a text object with bullets..', options:{bullet:{code:'2605'}, color:'CC0000'} },
{ text:'and I am the next text object.' , options:{bullet:{code:'25BA'}, color:'00CD00'} },
{ text:'Default bullet text.. ' , options:{bullet:true, color:'696969'} },
{ text:'Final text object w/ bullet:true.', options:{bullet:true, color:'0000AB'} }
],
{ x:1.0, y:1.0, w:'50%', h:1.4, color:'ABABAB', margin:1 }
);
pptx.save('PptxGenJS-Sandbox_'+getTimestamp()); |
Hi @gitbrent |
When i change the function |
Hi @ZouhaierSebri , I've re-added some code that was removed form the genXmlTextBody() function. Please let me know how the test goes now. |
Hi @gitbrent , var pptx = new PptxGenJS(); pptx.addNewSlide().addText( pptx.save('PptxGenJS-Sandbox_'+getTimestamp()); I remarked an xml structure difference Old structure |
Hi @ZouhaierSebri , Looks like you found the issue! Having more than one set of Thank you very much for identifying and patching this issue. Please retest one more time to verify we've got it fixed now. |
Hi @gitbrent , |
pptxgenjs-demo.html >> TABLES
when i'm using the old code of genXmlTextBody all is working good
The text was updated successfully, but these errors were encountered: