# pip install aspose-words
import aspose.words as aw
def png_to_pdf(pngPath:str,pdfPath:str):
doc = aw.Document()
builder = aw.DocumentBuilder(doc)
builder.insert_image(pngPath)
doc.save(pdfPath)
python之png转pdf
最新推荐文章于 2024-08-07 21:45:00 发布