Spire.PDF 7.10.4 supports setting document properties when converting PDF to Doc/Docx

2021-10-18 02:03:00

We are glad to announce the release of Spire.PDF 7.10.4. This version brings some new features. For instance, it supports setting document properties when converting PDF to Doc/Docx, supports creating poly line annotations and extracting table. In addition, it also enhances the conversion from PDF to SVG and fixes issues occurred that the content was incorrect when adding SVG to PDF. More details are listed below.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPDF-4564 Supports setting document properties when converting PDF to Doc/Docx.
Spire.Pdf.Conversion.PdfToDocConverter doc = new Spire.Pdf.Conversion.PdfToDocConverter(inputFile);
doc.DocxOptions.Title = "PDFTODOCX";
doc.DocxOptions.Subject = "Set document properties.";
doc.DocxOptions.Tags = "Test Tags";
doc.DocxOptions.Categories = "PDF";
doc.DocxOptions.Commments = "This document just for testing the properties";
doc.DocxOptions.Authors = "TEST";
doc.DocxOptions.LastSavedBy = "/E-iceblue";
doc.DocxOptions.Revision = (int)7.9;
doc.DocxOptions.Version = "csharp V4.0";
doc.DocxOptions.ProgramName = "Spire.Pdf for .NET";
doc.DocxOptions.Company = "E-iceblue";
doc.DocxOptions.Manager = "Test";
doc.SaveToDocx(outputFile);
New feature SPIREPDF-4662 Supports creating poly line annotations.
PdfDocument pdf = new PdfDocument();
PdfPageBase page = pdf.Pages.Add();
PdfPolyLineAnnotation polyline = new PdfPolyLineAnnotation(page, new PointF[] { new PointF(0, 60), 
new PointF(30, 45), new PointF(60, 90), new PointF(90, 80) });
polyline.Color = Color.PaleVioletRed;
polyline.Text = "This is a polygon annotation";
polyline.Author = "E-ICEBLUE";
polyline.Subject = "polygon annotation demo";
polyline.Name = "Summer";
polyline.Border = new PdfAnnotationBorder(1f);
polyline.ModifiedDate = DateTime.Now;
page.AnnotationsWidget.Add(polyline);
pdf.SaveToFile(output);
New feature SPIREPDF-914 Supports extracting table.
PdfDocument pdf = new PdfDocument();
pdf.LoadFromFile(inputPath);
StringBuilder builder = new StringBuilder();
PdfTableExtractor extractor = new PdfTableExtractor(pdf);
PdfTable[] tableLists = null;
for (int pageIndex = 0; pageIndex  0)
    {
        foreach (PdfTable table in tableLists)
        {
            int row = table.GetRowCount();
            int column = table.GetColumnCount();
            for (int i = 0; i < row; i++)
            {
                for (int j = 0; j < column; j++)
                {
                    string text = table.GetText(i, j);
                    builder.Append(text + " ");
                }
                builder.Append("\r\n");
            }
        }
    }
}
File.WriteAllText(outputFile, builder.ToString());
Bug SPIREPDF-4085 Fixes the issue that finding the specific text failed.
Bug SPIREPDF-4566 Fixes the issue that the content was incorrect when adding SVG to PDF(.NET Core3.0 platform).
Bug SPIREPDF-4657 Fixes the issue that the application threw an error "Parameter is invalid" when printing PDF.
Bug SPIREPDF-4664 Fixes the issue that the content was incorrect when converting PDF to SVG.
Bug SPIREPDF-4668 Fixes the issue that the size of file increased after adding and deleting layers.
Bug SPIREPDF-4689 Fixes the issue that the content was incorrect when printing PDF.
Bug SPIREPDF-4692 Fixes the issue that some columns were hidden when converting PDF to Excel and the system's regional culture is Portuguese.
Bug SPIREPDF-4693
SPIREPDF-4705
Fixes the issue that the application threw NullReferenceException when filling form fields.
Click the link to download Spire.PDF 7.10.4:
More information of Spire.PDF new release or hotfix: