save_picture_bullet property

DocSaveOptions.save_picture_bullet property

When False, PictureBullet data is not saved to output document. Default value is True.

@property
def save_picture_bullet(self) -> bool:
    ...

@save_picture_bullet.setter
def save_picture_bullet(self, value: bool):
    ...

Remarks

This option is provided for Word 97, which cannot work correctly with PictureBullet data. To remove PictureBullet data, set the option to “false”.

Examples

Shows how to omit PictureBullet data from the document when saving.

doc = aw.Document(file_name=MY_DIR + 'Image bullet points.docx')
# Some word processors, such as Microsoft Word 97, are incompatible with PictureBullet data.
# By setting a flag in the SaveOptions object,
# we can convert all image bullet points to ordinary bullet points while saving.
save_options = aw.saving.DocSaveOptions(aw.SaveFormat.DOC)
save_options.save_picture_bullet = False
doc.save(file_name=ARTIFACTS_DIR + 'DocSaveOptions.PictureBullets.doc', save_options=save_options)

See Also