Closed ydh10002023 closed 6 months ago
input = "1.ofd" output = "new_1.pdf" with open(input, "rb") as f: ofdb64 = str(base64.b64encode(f.read()), "utf-8") ofd = OFD() ofd.read(ofdb64) pdf_bytes = ofd.to_pdf() with open(output,"wb") as f: f.write(pdf_bytes)
文件提供下?
@renoyuan 你好,这个是输入文件,谢谢 test.ofd.zip
看了下里面图片是 bmp 格式,已兼容。