Spire.PDF for Python 12.1.3 现已正式发布。该版本支持自定义签名外观,以及获取文本的字体样式。此外,还修复了一些在处理 PDF 文件时出现的问题。详情请查阅以下内容。 新功能: 提供 PdfCustomAppearance 类支持自定义签名外观。 class MyPdfCustomAppearance(IPdfSignatureAppearance): def __init__(self): pass def Generate(self, g: PdfCanvas): x = 0.0 y = 0.0 fontSize = 10.0 font = PdfTrueTypeFont("SimSun", fontSize, PdfFontStyle.Regular, True) lineHeight…