Poni domande su come acquisire o convertire pagine Web o HTML into immagini, documenti CSV, PDF o DOCX nonché su come convertire i video into GIF animate che utilizzano la nostra API.
io uso grabzIt.HTMLToDOCX per creare un *docx*, quando utilizzo docx.Document per restituire un |Document| oggetto caricato da *docx*, python restituisce un errore
Traceback (ultima chiamata più recente):
File "/Users/chenjiahua/PycharmProjects/my_game/mysite/export2word/test.py", riga 30, in
compositore.append(doc2)
File "/Users/chenjiahua/PycharmProjects/work/zhongbiao_web_svr/venv/lib/python3.7/site-packages/docxcompose/composer.py", riga 51, in appendice
self.insert(index, doc,remove_property_fields=remove_property_fields)
File "/Users/chenjiahua/PycharmProjects/work/zhongbiao_web_svr/venv/lib/python3.7/site-packages/docxcompose/composer.py", riga 71, nell'inserto
self.add_styles(doc, elemento)
File "/Users/chenjiahua/PycharmProjects/work/zhongbiao_web_svr/venv/lib/python3.7/site-packages/docxcompose/composer.py", riga 253, in add_styles
self.doc.styles.element.append(style_element)
TypeError: l'argomento 'elemento' ha un tipo errato (previsto lxml.etree._Element, ottenuto NoneType)
Siamo spiacenti, ma sembra che si tratti di un errore dovuto al software di qualcun altro. Sembra che potrebbe essere correlato a questo problema: https://www.odoo.com/forum/help-1/question/argument-element-has-incorrect-type-when-exporting-report-from-openoffice-22024