Spire.PDF 9.2.6 已发布。该版本支持设置文本框注释的文本对齐类型,同时还支持压缩PDF文件后保存到流。此外,该版本还修复了许多已知问题,如修复了打印PDF文件后内容不正确的问题。详情请阅读以下内容。
新功能:
- 支持设置文本框注释的文本对齐类型。
- 支持压缩PDF文件后保存到流。
RectangleF rect = new RectangleF(x, y, 100, 15);
PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(rect);
TextAlignment(textAnnotation);
textAnnotation.TextAlignment = PdfAnnotationTextAlignment.Right;
using (FileStream fileStream = new FileStream(outputFile, FileMode.Create))
{
PdfCompressor compressor = new PdfCompressor(inputFile);
compressor.CompressToStream(fileStream);
fileStream.Flush();
fileStream.Close();
}
问题修复:
- 修复了打印PDF文件后内容不正确的问题。
- 修复了在打印PDF文件后,内容向右下方偏移的问题。
- 修复了在使用PDF-XChange打开输出PDF时,复选框选中的值不显示的问题。
- 修复了扁平化PDF表单后,RadioButton字段值丢失的问题。
- 修复了扁平化PDF表单后,RadioButton字段值不正确的问题。
获取Spire.PDF 9.2.6请点击: