eea / odfpy

API for OpenDocument in Python
GNU General Public License v2.0
308 stars 63 forks source link

TypeError while height and width while defining the frame #111

Open retsyo opened 2 years ago

retsyo commented 2 years ago

In https://github.com/eea/odfpy/issues/22, if

df = odf.draw.Frame( zindex=0, anchortype='as-char' , width=100 , height=50)

is used, then


  File "D:\tmp\odfpy-master\build\lib\odf\attrconverters.py", line 151, in cnv_length
    if not pattern_length.match(arg):
TypeError: expected string or bytes-like object