Ziv-Barber / officegen

Standalone Office Open XML files (Microsoft Office 2007 and later) generator for Word (docx), PowerPoint (pptx) and Excell (xlsx) in javascript. The output is a stream.
MIT License
2.65k stars 471 forks source link

one problem for Height of the horizontalline in the generated docx file #308

Closed li-xiao-ming closed 5 years ago

li-xiao-ming commented 5 years ago

I am using method docx.createByJson(data) to generate docx, it works well before, but today three is one problem for Height of the horizontalline in the generated docx file.

Here is the data to create horizontalline in the Json object. { type: 'horizontalline' },

Why is the Height always 50pt for horizontalline in the generated docx ? I am using the the standard library.

image

Thanks, Xiaoming Li

li-xiao-ming commented 5 years ago

I just tested different versions of officegen, this issue only occurs in the version 0.6.0/0.5.2/0.5.1/0.5.0/0.4.8. The horizontalline of generated docx is correct in the version 0.4.7. So I reinstalled old version by npm install -save officegen@0.4.7, the problem is resolved.

image

Thanks, Xiaoming Li