News Category

Spire.PDF 9.2.6 supports setting the text alignment type for PdfFreeTextAnnotation

2023-02-15 07:40:04

We are glad to announce the release of Spire.PDF 9.2.6. This version supports setting the text alignment type for PdfFreeTextAnnotation and saving to stream after compressing the PDF file. What’s more, many known issues are fixed in this release, such as the issue that the content was incorrect after printing a PDF file. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-5733 Supports setting the text alignment type for PdfFreeTextAnnotation.
RectangleF rect = new RectangleF(x, y, 100, 15);
PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(rect);
TextAlignment(textAnnotation);
textAnnotation.TextAlignment = PdfAnnotationTextAlignment.Right;
New feature SPIREPDF-5735 Supports saving to stream after compressing the PDF file.
using (FileStream fileStream = new FileStream(outputFile, FileMode.Create))
{
    PdfCompressor compressor = new PdfCompressor(inputFile);
    compressor.CompressToStream(fileStream);
    fileStream.Flush();
    fileStream.Close();
}
Bug SPIREPDF-5713 Fixes the issue that the content was incorrect after printing a PDF file.
Bug SPIREPDF-5740 Fixes the issue that the content was an offset to the bottom right after printing a PDF file.
Bug SPIREPDF-5741 Fixes the issue that the checkbox checked value didn't display when opening the output PDF with PDF-XChange.
Bug SPIREPDF-5745 Fixes the issue that the RadioButton field value lost after flattening the PDF forms.
Bug SPIREPDF-5754 Fixes the issue that the RadioButton field value was incorrect after flattening the PDF forms.
Click the link to download Spire.PDF 9.2.6:
More information of Spire.PDF new release or hotfix: