Spire.Barcode 5.9.4已发布。本次更新修复了扫描结果不正确的问题以及设置透明背景时,文字与条码重叠的问题。详情请阅读以下内容。
问题修复:
https://www.e-iceblue.com/Download/download-barcode-for-net.html
Spire.Office 6.9.1已发布。本次更新带来了一些新功能,比如:Spire.Presentation支持添加数学公式和检测shape是否包含数学公式,支持在放映模式下隐藏音频,支持转换PPT到OFD,支持判断文档是否被加密;Spire.PDFViewer ASP.NET控件支持旋转页面,查找文本并高亮;Spire.XLS支持转换Excel到UOS,支持转换Excel到OFD,支持将Excel中透视表自动生成的values字段设置为行标签,支持将Excel中的组合图片或组合图表转换为一个图片;Spire.Doc支持设置Word中Frame的位置。此外,该版本还修复了大量一直问题。详情请阅以下内容。
该版本涵盖了最新版的Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Email, Spire.DocViewer, Spire.PDFViewer, Spire.Spreadsheet, Spire.OfficeViewer, Spire.DataExport, Spire.Barcode。
版本信息如下:
https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html
新功能:
Presentation ppt = new Presentation();
string latexMathCode = @"x^{2}+\sqrt{x^{2}+1}=2";
IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(30, 100, 400, 30));
shape.TextFrame.Paragraphs.Clear();
//Add math equation
TextParagraph tp = shape.TextFrame.Paragraphs.AddParagraphFromLatexMathCode(latexMathCode);
for (int i = 0; i < ppt.Slides[0].Shapes.Count; i++)
{
if (ppt.Slides[0].Shapes[i] is IAutoShape)
{
//Check whether shape contains math equations
bool containMathEquation = (ppt.Slides[0].Shapes[i] as IAutoShape).ContainMathEquation;
}
}
ppt.SaveToFile("result.pptx", FileFormat.Pptx2013);
ppt.Dispose();
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
foreach(Shape shape in ppt.Slides[0].Shapes)
{
if(shape is IAudio)
{
IAudio audio = shape as IAudio;
audio.HideAtShowing = true;
}
}
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
ppt.SaveToFile(ofdFile, FileFormat.OFD);
Presentation ppt = new Presentation();
ppt.IsPasswordProtected(inputFile)
问题修复:
新功能:
input type=button id=PdfDocumentViewer1_btnRotate onfocus=this.blur() onclick=pdfdocumentviewer1.Rotate(pdfdocumentviewer1.RotateAngle + 270); value=rotate_270
input type=text id=PdfDocumentViewer1_txtFindText onkeydown=if(event.keyCode==13){pdfdocumentviewer1.SearchText(this.value,true);return false;} value=
protected void Page_Load(http://cdn.e-iceblue.cn/object sender, EventArgs e)
{
if (!IsPostBack)
{
this.PdfDocumentViewer1.FindTextHighLightColor = System.Drawing.Color.FromArgb(125, 255, 0, 0);
this.PdfDocumentViewer1.LoadFromFile(input.pdf);
}
}
问题修复:
问题修复:
新功能:
问题修复:
新功能:
Workbook workbook = new Workbook();
workbook.LoadFromFile(xlsxFile);
workbook.SaveToFile(uosFile, FileFormat.UOS);
Workbook workbook = new Workbook();
workbook.LoadFromFile(xlsxFile);
workbook.SaveToFile(ofdFile, FileFormat.OFD);
pivottable.ShowDataFieldInRow = true;
pivottable.CalculateData();
List<Bitmap> images = sheet.SaveShapesToImage(new SaveShapeTypeOption());
for (int i = 0; i < images.Count; i++)
{
images[i].Save(string.Format(outputFile + "{0}.png", i), ImageFormat.Png);
}
问题修复:
Spire.Presentation 6.9.2已发布。本次更新支持了添加数学公式和检测shape是否包含数学公式,支持在放映模式下隐藏音频,同时还支持判断文档是否被加密等功能。详情请阅读以下内容。
新功能:
Presentation ppt = new Presentation();
string latexMathCode = @"x^{2}+\sqrt{x^{2}+1}=2";
IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(30, 100, 400, 30));
shape.TextFrame.Paragraphs.Clear();
//Add math equation
TextParagraph tp = shape.TextFrame.Paragraphs.AddParagraphFromLatexMathCode(latexMathCode);
for (int i = 0; i < ppt.Slides[0].Shapes.Count; i++)
{
if (ppt.Slides[0].Shapes[i] is IAutoShape)
{
//Check whether shape contains math equations
bool containMathEquation = (ppt.Slides[0].Shapes[i] as IAutoShape).ContainMathEquation;
}
}
ppt.SaveToFile("result.pptx", FileFormat.Pptx2013);
ppt.Dispose();
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
foreach(Shape shape in ppt.Slides[0].Shapes)
{
if(shape is IAudio)
{
IAudio audio = shape as IAudio;
audio.HideAtShowing = true;
}
}
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
ppt.SaveToFile(ofdFile, FileFormat.OFD);
Presentation ppt = new Presentation();
ppt.IsPasswordProtected(inputFile)
问题修复:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-NET.html
Spire.Doc 9.9.6已发布。本次更新支持了设置Word中Frame的位置的功能,优化了转换Word到PDF,以及转换RTF到Word的功能。此外,该版本还修复了合并和加载Word文档时出现的问题。详情请阅读以下内容。
新功能:
问题修复:
Spire.XLS 11.9.3已发布。本次更新支持转换Excel到UOS/OFD的功能。详情请阅读以下内容。
新功能:
Workbook workbook = new Workbook();
workbook.LoadFromFile(xlsxFile);
workbook.SaveToFile(uosFile, FileFormat.UOS);
Workbook workbook = new Workbook();
workbook.LoadFromFile(xlsxFile);
workbook.SaveToFile(ofdFile, FileFormat.OFD);
Spire.XLS 11.9.2已发布。本次更新支持将Excel中的组合图片或组合图表转换为一个图片,也支持了将Excel中透视表自动生成的values字段设置为行标签的功能。此外,该版本还增强了转换Excel到SVG/图片/PDF等格式的功能。详情请阅读以下内容。
新功能:
pivottable.ShowDataFieldInRow = true;
pivottable.CalculateData();
List<Bitmap> images = sheet.SaveShapesToImage(new SaveShapeTypeOption());
for (int i = 0; i < images.Count; i++)
{
images[i].Save(string.Format(outputFile + "{0}.png", i), ImageFormat.Png);
}
问题修复:
幻灯片尺寸是 PowerPoint 演示文稿视觉设计的重要方面之一,决定了演示文稿的宽高比,并对演示文稿的整体外观和氛围有重要影响。如果默认的幻灯片大小不符合视觉设计要求,或者不适配演示屏幕,则需要将幻灯片大小更改为其他预设尺寸,或对幻灯片的尺寸进行自定义。本文将演示如何使用 Spire.Presentation for Java 通过 Java 程序更改 PowerPoint 演示文稿的幻灯片大小。
首先,您需要在 Java 程序中添加 Spire.Presentation.jar 文件作为依赖项。JAR 文件可以从此链接下载。如果您使用 Maven,则可以将以下代码添加到项目的 pom.xml 文件中,从而轻松地在应用程序中导入 JAR 文件。
<repositories>
<repository>
<id>com.e-iceblue</id>
<name>e-iceblue</name>
<url>https://repo.e-iceblue.cn/repository/maven-public/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>e-iceblue</groupId>
<artifactId>spire.presentation</artifactId>
<version>10.11.4</version>
</dependency>
</dependencies>
Spire.Presentation for Java 提供了 Presentation.getSlideSize().setType() 方法,用于将幻灯片大小更改为预设大小。具体操作步骤如下:
import com.spire.presentation.FileFormat;
import com.spire.presentation.Presentation;
import com.spire.presentation.SlideSizeType;
public class changeSlideSizePreset {
public static void main(String[] args) throws Exception {
//创建一个Presentation类的对象
Presentation pt = new Presentation();
//载入演示文稿
pt.loadFromFile("示例.pptx");
//将此演示翁的幻灯片尺寸类型设置为A4
pt.getSlideSize().setType(SlideSizeType.A4);
//保存演示文稿
pt.saveToFile("A4.pptx", FileFormat.AUTO);
pt.dispose();
}
}
自定义幻灯片大小需要先将幻灯片大小类型更改为自定义。然后,再使用 Presentation.getSlideSize().setSize() 方法自定义幻灯片大小。具体步骤如下:
import com.spire.presentation.FileFormat;
import com.spire.presentation.Presentation;
import com.spire.presentation.SlideSizeType;
import java.awt.*;
public class changeSlideSizeCustom {
public static void main(String[] args) throws Exception {
//创建一个Presentation类的对象
Presentation pt = new Presentation();
//载入演示文稿
pt.loadFromFile("示例.pptx");
//将此演示翁的幻灯片尺寸类型设置为自定义
pt.getSlideSize().setType(SlideSizeType.CUSTOM);
//设置幻灯片尺寸
pt.getSlideSize().setSize(new Dimension(600, 600));
//保存演示文稿
pt.saveToFile("自定义.pptx", FileFormat.AUTO);
pt.dispose();
}
}
如果您希望删除结果文档中的评估消息,或者摆脱功能限制,请该Email地址已收到反垃圾邮件插件保护。要显示它您需要在浏览器中启用JavaScript。获取有效期 30 天的临时许可证。
Spire.Presentation for Java 4.9.2已发布。本次更新增强了转换PPT到PDF的功能,同时还修复了替换图片占位符等时出现的问题。详情请阅读以下内容。
问题修复:
https://www.e-iceblue.cn/Downloads/Spire-Presentation-JAVA.html
本文介绍如何使用Spire.Barcode for .NET来扫描并识别二维码图片中的数据,通过调用BarcodeScanner类提供的Scan(Bitmap image, BarCode Type barcodeType)方法实现。详细代码参考如下内容。
下图是用于测试的二维码图片:

using Spire.Barcode;
using System.Drawing;
namespace ScanQRcode
{
class Program
{
static void Main(string[] args)
{
//加载二维码图片
Image image = Image.FromFile("QRCode.png");
Bitmap bitmap = new Bitmap(image);
//识别二维码图片中的数据
string[] data = BarcodeScanner.Scan(bitmap, BarCodeType.QRCode);
for (int i = 0; i < data.Length; i++)
{
string text = data[i].ToString();
System.Console.WriteLine(text);
System.Console.ReadLine();
}
}
}
}
Imports Spire.Barcode
Imports System.Drawing
Namespace ScanQRcode
Class Program
Private Shared Sub Main(args As String())
'加载二维码图片
Dim image__1 As Image = Image.FromFile("QRCode.png")
Dim bitmap As New Bitmap(image__1)
'识别二维码图片中的数据
Dim data As String() = BarcodeScanner.Scan(bitmap, BarCodeType.QRCode)
For i As Integer = 0 To data.Length - 1
Dim text As String = data(i).ToString()
System.Console.WriteLine(text)
System.Console.ReadLine()
Next
End Sub
End Class
End Namespace
二维码数据读取结果:

Spire.Office for Java 4.9.2已发布。本次更新带来了一些新的功能,比如:Spire.PDF for Java支持转换 PDF 到 OFD;Spire.XLS for Java 支持隐藏透视表行的所有项。此外,该版本还修复了大量一直问题。详情请阅以下内容。
获取Spire.Office for Java 4.9.2请点击:https://www.e-iceblue.cn/Downloads/Spire-Office-JAVA.html
问题修复:
新功能:
pdf.saveToFile(output, FileFormat.OFD)
问题修复:
新功能:
PivotField pivotField = (PivotField) pivotTable.getPivotFields().get("Product");
pivotField.hideAllItem(true);
问题修复:
问题修复: