spire.pdf 7.1已发布。该版本支持了自定义签名图片的功能。此外还增强了转换pdf到exel以及转换xps到pdf的功能。详情请阅读以下内容。
新功能:
- 支持了自定义签名图片的功能
pdfsignature signature = new pdfsignature(doc, page, cert, "123456");
signature.configurecustomgraphics(drawgraphics);
private void drawgraphics(pdfcanvas g)
{
pointf point1 = new pointf(10, 20);
pointf point2 = new pointf(25, 50);
pointf point3 = new pointf(60, 20);
pointf[] pntarr = { point1, point2, point3 };
pdfrgbcolor color = new pdfrgbcolor(color.red);
g.drawpolygon(new pdfpen(color), pntarr);
g.drawrectangle(new pdfpen(color.green), new rectanglef(70, 10, 20, 30));
g.drawline(new pdfpen(color.blue), new pointf(120, 50), new pointf(95, 5));
g.drawline(new pdfpen(color.blue), new pointf(100, 30), new pointf(130, 20));
}
问题修复:
- 修复了使用智能卡(smart card)和数字身份加密锁(usb token)进行签名时多次需输入密码的问题。
- 修复了转换出的pdfa3b文档不符合标准的问题。
- 修复了提取pdf文本时内容顺序不正确的问题。
- 修复了转换pdf到excel表格合并格式丢失的问题。
- 修复了转换pdf到excel程序抛异常 “未将对象引用设置到对象的实例”的问题。
- 修复了转换xps到pdf部分字符没有转换成功的问题。
- 修复了在grid单元格中设置文本分散对齐不生效的问题。
获取spire.pdf 7.1,请点击: