使用fpdf2将txt文本转可编辑pdf报错解决办法 错误详情解决方法 错误详情 ‘gbk’ codec can’t decode byte 0x80 in position 2: illegal multibyte sequence转换出来的文件字体重叠 解决方法 1.打开文件方式修改为: with open(“E:\txt版\” + filename,‘r+’,encoding=‘utf-8’) as f: 2.使用fpdf2-2.4.2版本,或者2.5.1