When I set the column widths of a flextable to 2.5 cm and save it as a PowerPoint file using ph_with.flextable(),
the pptx file was corrupted.
The function converted 2.5 cm to 900,000 EMUs of OOXML, and the number was formatted in scientific notation as 9e+5. This was the cause of the corruption.
So, I fixed the function to avoid scientific notation and format the number as 900000.
When I set the column widths of a flextable to 2.5 cm and save it as a PowerPoint file using
ph_with.flextable()
, the pptx file was corrupted. The function converted 2.5 cm to 900,000 EMUs of OOXML, and the number was formatted in scientific notation as9e+5
. This was the cause of the corruption. So, I fixed the function to avoid scientific notation and format the number as900000
.