Spire.PDF 9.2.6 已发布。该版本支持设置文本框注释的文本对齐类型,同时还支持压缩PDF文件后保存到流。此外,该版本还修复了许多已知问题,如修复了打印PDF文件后内容不正确的问题。详情请阅读以下内容。 新功能: 支持设置文本框注释的文本对齐类型。 RectangleF rect = new RectangleF(x, y, 100, 15); PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(rect); TextAlignment(textAnnotation); textAnnotation.TextAlignment = PdfAnnotationTextAlignment.Right; 支持压缩PDF文件后保存到流。 using (FileStream fileStream = new FileStream(outputFile, FileMode.Create)) { PdfCompressor compressor = new PdfCompressor(inputFile);…