Spire PDF 7.2.9

Spire PDF 7.2.9 supports adding page-piece dictionaries

We are happy to announce the release of Spire PDF 7.2.9. This version supports adding page-piece dictionaries, enhances the conversions from PDF to XPS/Image/Excel. Moreover,it also fixes the issues occurred in the process of saving and printing PDF files. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPDF-4022 Supports adding page-piece dictionaries.
   PdfDocument doc = new PdfDocument(inputFile);
            if (doc.DocumentPieceInfo==null) {
                doc.DocumentPieceInfo = new PdfPieceInfo();
            }
            doc.DocumentPieceInfo.AddApplicationData("ice","this is a uu");
            doc.DocumentPieceInfo.AddApplicationData("blie", "this is a uu");
            doc.DocumentPieceInfo.AddApplicationData("blue", "this is a uu");
            doc.DocumentPieceInfo.AddApplicationData("jis", "this is a uu");
            doc.DocumentPieceInfo.RemoveApplicationData("blie");

            if (doc.Pages[0].PagePieceInfo==null) {
                doc.Pages[0].PagePieceInfo = new PdfPieceInfo();
            }

            doc.Pages[0].PagePieceInfo.AddApplicationData("ice", "this is a uu");
            doc.Pages[0].PagePieceInfo.AddApplicationData("blie", "this is a 2222uu");
            doc.Pages[0].PagePieceInfo.AddApplicationData("blue", "this is a 3333uu");
            doc.Pages[0].PagePieceInfo.AddApplicationData("jis", "this is a 4444uu");
            doc.Pages[0].PagePieceInfo.RemoveApplicationData("blie");

            StringBuilder sb = new StringBuilder();
            IDictionary<sstring, PdfApplicationData> dic = doc.Pages[0].PagePieceInfo.ApplicationDatas;
            foreach (string item in dic.Keys) {
                PdfApplicationData data = dic[item];
                if (data.Private is String) {

                    string ss = data.Private as string;
                    sb.AppendLine(ss);
                }
            }
            File.WriteAllText(outputFile_txt, sb.ToString());
            doc.SaveToFile(outputFile);
Bug SPIREPDF-949 Fixes the issue that bold effect of Chinese characters was missing when converting PDF to XPS.
Bug SPIREPDF-955 Fixes the issue that the application threw NullReferenceException when converting PDF to Image.
Bug SPIREPDF-1135 Fixes the issue that the background color tunred black when converting PDF to Image.
Bug SPIREPDF-3060 Fixes the issue occurred when opening the document encrypted by Spire.PDF with Adobe.
Bug SPIREPDF-3178 Fixes the issue that box-shadow effect was incorrect when converting HTML to PDF with plugins.
Bug SPIREPDF-4020 Fixes the issue that deleting the pencil annotations created by Spire.PDF failed.
Bug SPIREPDF-4025 Fixes the issue that the extracted text from PDF was out of order.
Bug SPIREPDF-4026 Fixes the issue that the application threw System.ArgumentException when saving PDF.
Bug SPIREPDF-4029 Fixes the issue that the content of the PDF file saved by Spire.PDF was lost.
Bug SPIREPDF-4030 Fixes the issue that the application threw System.FormatException when converting PDF to Image.
Bug SPIREPDF-4033 Fixes the issue that the background of text turned black when printing PDF.
Bug SPIREPDF-4036
SPIREPDF-4037
Fixes the issue that the contents were lost when converting PDF to Excel.
Click the link to download Spire.PDF 7.2.9:
More information of Spire.PDF new release or hotfix: