{"action":"opened","issue":{"url":"https://api.github.com/repos/PHPOffice/PHPPowerPoint/issues/83","labels_url":"https://api.github.com/repos/PHPOffice/PHPPowerPoint/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/PHPOffice/PHPPowerPoint/issues/83/comments","events_url":"https://api.github.com/repos/PHPOffice/PHPPowerPoint/issues/83/events","html_url":"https://github.com/PHPOffice/PHPPowerPoint/issues/83","id":53874591,"number":83,"title":"Notes crash PPTX unless they're on each slide ","user":{"login":"JewrassicPark","id":3650826,"avatar_url":"https://avatars.githubusercontent.com/u/3650826?v=3","gravatar_id":"","url":"https://api.github.com/users/JewrassicPark","html_url":"https://github.com/JewrassicPark","followers_url":"https://api.github.com/users/JewrassicPark/followers","following_url":"https://api.github.com/users/JewrassicPark/following{/other_user}","gists_url":"https://api.github.com/users/JewrassicPark/gists{/gist_id}","starred_url":"https://api.github.com/users/JewrassicPark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JewrassicPark/subscriptions","organizations_url":"https://api.github.com/users/JewrassicPark/orgs","repos_url":"https://api.github.com/users/JewrassicPark/repos","events_url":"https://api.github.com/users/JewrassicPark/events{/privacy}","received_events_url":"https://api.github.com/users/JewrassicPark/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-09T14:46:29Z","updated_at":"2015-01-09T14:46:29Z","closed_at":null,"body":"Basic method is \r\n```\r\n$pp = new PhpPowerpoint();\r\n//don't put any notes on the first slide \r\n$slide = $pp->createSlide();\r\n$note = $slide->getNote();\r\n$text = $note->createRichTextShape()->setHeight(300)->setWidth(600);\r\n$text->createTextRun(\"Any Note\");\r\n$oWriterPPTX = IOFactory::createWriter($pp, 'PowerPoint2007');\r\n$oWriterPPTX->save($savePath);\t\t\r\n```\r\n\r\nThis causes Office PowerPoint to crash. \r\n\r\nIt can be worked around by adding a non empty note to every slide.\r\n\r\ne.g. this works: \r\n```\r\n$pp = new PhpPowerpoint();\r\n//putting a note on the first slide\r\n$slide  = $pp->getActiveSlide();\r\n$note = $slide->getNote();\r\n$text = $note->createRichTextShape()->setHeight(300)->setWidth(600);\r\n$text->createTextRun(\"Any Note\");\r\n//putting a note on the second slide \r\n$slide = $pp->createSlide();\r\n$note = $slide->getNote();\r\n$text = $note->createRichTextShape()->setHeight(300)->setWidth(600);\r\n$text->createTextRun(\"Any Note\");\r\n$oWriterPPTX = IOFactory::createWriter($pp, 'PowerPoint2007');\r\n$oWriterPPTX->save($savePath);\t\t\r\n```\r\n\r\nNotes generated with PHPPowerpoint show up in the pptx zip according to slide \r\n\r\nnoteSlide2.xml => slide # 2, noteSlideX.xml => slide # x\r\n\r\nWhen created with MS Office, the noteSlides are just numbered sequentially \r\n\r\nnoteSlide1.xml => corresponds to some slide not necessarily #1 , noteSlide2.xml => same thing\r\n\r\nThey also have a _rels relationship folder and a noteSlideMaster folder. I couldn't work out the exact mapping or how to avoid this crashing issues. Currently I'm using the workaround. \r\n\r\n"}}