We have a special bullet list with different left indent and hanging than normal. (CreateListStyle already doesnt work because the bullet size comes out to be very small). We tried doing the importStyles method and it fails as well.
With merge, style doesnt get imported as a bulleted list, with replace, the style gets imported as a bulleted list, but doesnt get applied - when we try to manually apply it, the left indent is wrong - it has an offset of 0.25 inches.
Is there a sample to import custom bulleted list?
The code -
$docx = new CreateDocx();
$docx->importStyles('./styles.docx', 'merge', array('cbs_cars_bullets'));
//Also tried $docx->importStyles('./styles.docx', 'replace', array('cbs_cars_bullets'));
$docx->addText('asdfasdfas asdfas asdfas fasfasfdasfasdfasfas asdfasdfasfasf',array('pStyle' => 'cbs_cars_bullets', ));
//Also tried $docx->addList( array ('asdfasdfas'),array('pStyle' => 'cbs_cars_bullets', ));