HtmlSaveOptions.export_xhtml_transitional property. Specifies whether to write the DOCTYPE declaration when saving to HTML or MHTML... doc = aw . Document () builder = aw . DocumentBuilder...' ) options = aw . saving . HtmlSaveOptions ( aw . SaveFormat...