Spire.Office 8.12.2 is released

Spire.Office 8.12.2 is released

2023-12-25 06:27:27

We are excited to announce the release of Spire.Office 8.12.2. In this version, Spire.Doc supports text shaping in Word to PCL and PostScript conversion and determining if a document is encrypted; Spire.Presentation supports converting master pages to images; Spire.PDFViewer supports the interface zoom effect by using Ctrl + scroll wheel in WinForm projects. Besides, a lot known issues are fixed successfully in this version. More details are listed below.

In this version, the most recent versions of Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Email, Spire.DocViewer, Spire.PDFViewer, Spire.Spreadsheet, Spire.OfficeViewer, Spire.DataExport, Spire.Barcode are included.

DLL Versions:

  • Spire.Doc.dll v11.12.4
  • Spire.Pdf.dll v9.12.0
  • Spire.XLS.dll v13.12.3
  • Spire.Presentation.dll v8.12.2
  • Spire.Email.dll v6.5.8
  • Spire.Barcode.dll v7.2.5
  • Spire.DocViewer.Forms.dll v8.7.3
  • Spire.Spreadsheet.dll v7.4.3
  • Spire.PdfViewer.Forms.dll v7.12.3
  • Spire.PdfViewer.Asp v7.12.3
  • Spire.OfficeViewer.Forms.dll v8.7.4
  • Spire.DataExport.dll v4.9.0
  • Spire.DataExport.ResourceMgr.dll v2.1.0
Click the link to get the version Spire.Office 8.12.2:
More information of Spire.Office new release or hotfix:

Here is a list of changes made in this release

Spire.Doc

Category ID Description
New feature - Adds text shaping function for converting Word to PostScript (.NET 4.6.2 or later version supported).
Document document = new Document();
document.LoadFromFile("input.docx");
document.LayoutOptions.UseHarfBuzzTextShaper = true; // Enable with true, disable with false
document.SaveToFile("output.ps", FileFormat.PostScript);
New feature - Supports text shaping in Word to PCL conversion (.NET 4.6.2 or later version supported).
Document document = new Document();
document.LoadFromFile("input.docx");
document.LayoutOptions.UseHarfBuzzTextShaper = true; // Enable with true, disable with false
document.SaveToFile("output.pcl", FileFormat.PCL);
New feature SPIREDOC-10007 Supports determining if a document is encrypted.
Document.IsPassWordProtected("sample.docx");
Bug SPIREDOC-9615 Fixes the issue that line breaks were not correctly positioned after converting Word to PDF .
Bug SPIREDOC-9859
SPIREDOC-9890
Fixes the issue that Latex formulas were not parsed correctly.
Bug SPIREDOC-9976 Fixes the issue that finding text with regular expression failed to match.
Bug SPIREDOC-9981 Fixes the issue that table borders were missing after converting Word to XPS.
Bug SPIREDOC-9997 Fixes the issue that symbols were incorrectly recognized as English characters when converting HTML to Word.
Bug SPIREDOC-10029 Fixes the issue that the result calculated from the populated data was incorrect after executing mail merge.
Bug SPIREDOC-10036 Fixes the issue that the content of the table header was cropped when converting Word to PDF.
Bug SPIREDOC-10037 Fixes the issue that the width of the table was changed after adding rows to the table and converting it to PDF.
Bug SPIREDOC-10039 Fixes the issue that the program threw System.ArgumentException when copying bookmark contents.
Bug SPIREDOC-10081 Fixes the issue that the program threw System.NullReferenceException when copying bookmark content.

Spire.Presentation

Category ID Description
New feature SPIREPPT-2397 Supports converting master pages to images.
Presentation ppt = new Presentation();
ppt.LoadFromFile("1.pptx");
for (int i = 0; i < ppt.Masters[0].Layouts.Count; i++)
{
Image image = ppt.Masters[0].Layouts[i].SaveAsImage();
String fileName = String.Format("{0}.png", i);
image.Save(fileName, System.Drawing.Imaging.ImageFormat.Png);
}
ppt.Dispose();
Bug SPIREPPT-2394 Fixes the issue that the content layout was incorrect when converting PPT to PDF.
Bug SPIREPPT-2396 Fixes the issue that the effect was incorrect after changing the position of chart labels.

Spire.PDFViewer

Category ID Description
New feature SPIREPDFVIEWER-579 Supports the interface zoom effect by using Ctrl + scroll wheel in WinForm projects.
this.KeyPreview = true;
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
this.KeyUp += new System.Windows.Forms.KeyEventHandler(Form1_KeyUp);
this.MouseWheel += new System.Windows.Forms.MouseEventHandler(Form1_MouseWheel);
private bool m_PressCtrl = false;
private float m_ZoomFactor = 1.0f;
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
	m_PressCtrl = e.Control;
}       
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
	m_PressCtrl = false;
}        
private float[] array = new float[] { 0.5f, 0.75f, 1f, 1.25f, 1.5f, 2f, 4f };
private int index = 2;     
private void Form1_MouseWheel(object sender, MouseEventArgs e)
{
	if (m_PressCtrl)
	{
		if (e.Delta > 0)
		{
			index = index < 6 ? index + 1 : 6;
		}
		if (e.Delta < 0)
		{
			index = index == 0 ? 0 : index - 1;
		}
		this.pdfViewer1.SetZoomFactor(array[index]);
	}
}
Bug SPIREPDFVIEWER -577 Fixes the issue that text content could not be displayed.

Spire.PDF

Category ID Description
Bug SPIREPDF-6041 Fixes the issue that the data on the second page and subsequent pages were lost after flattening PDF form fields.
Bug SPIREPDF-6331 Fixes the issue that PDFs converted from SVG couldn't be opened with Adobe.
Bug SPIREPDF-6351 Fixes the issue that the text could not be extracted.
Bug SPIREPDF-6375 Fixes the issue that highlight text function did not take effect.
Bug SPIREPDF-6384 Fixes the issue that the program threw "System.NullReferenceException" when converting OFD to PDF.
Bug SPIREPDF-6385
SPIREPDF-6390
Fixes the issue that the program threw "System.NullReferenceException" when loading PDF files.
Bug SPIREPDF-6393 Fixes the issue that the program threw "System.NullReferenceException" when printing PDF files as booklets.

Spire.XLS

Category ID Description
Bug SPIREXLS-4838 Fixes the issue that it threw System.IndexOutOfRangeException and System.NullReferenceException exceptions when converting worksheets to HTML documents in multi-threaded parallel.
Bug SPIREXLS-4899 Fixes the issue that the VLOOKUP function was parsed incorrectly.
Bug SPIREXLS-4969 Fixes the issue that the obtained transparency value of cell color was incorrect.
Bug SPIREXLS-4972 Fixes the issue that the contents were overlapped after converting Excel to PDF.
Bug SPIREXLS-4974 Fixes the issue that the program threw System.ArgumentNullException when loading documents.
Bug SPIREXLS-4980 Fixes the issue that the program threw "Shape failing to render!" exception when converting Excel to PDF.
Bug SPIREXLS-4993 Fixes the issue that the program threw System.NullReferenceException when merging excel documents.
Bug SPIREXLS-4998 Fixes the issue that filling MarkerDesigner templates with data failed.
Bug SPIREXLS-5000 Fixes the issue that the program threw System.ArgumentOutOfRangeException when verifying the validity of data after deleting rows.
Bug SPIREXLS-5004 Fixes the issue that the calculation of some formulas failed.
Bug SPIREXLS-5005 Fixes the issue that the signature time of the added digital signature was 8 hours later than the actual time.
Bug SPIREXLS-5009 Fixes the issue that the reading of CLEAN formulas failed.
Bug SPIREXLS-5015 Fixes the issue that the program threw System.FormatException exception when loading a document.
Bug SPIREXLS-5019 Fixes the issue that the program threw "Cannot read that as a ZipFile" exception when reading HTML documents.