原創|產品更新|編輯:李顯亮|2021-08-24 09:50:22.370|閱讀 270 次
概述:Spire.Office 6.8.2已發布。本次更新帶來了許多出色的新功能,比如:Spire.Presentation支持加載保存 DPS/DPT 格式的文檔,支持設置PPT中圖表的邊框樣式為直角,同時還支持設置圖表坐標軸的刻度線間隔,等等,歡迎下載體驗。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
你在尋找支持在.NET中用編程方法處理各類格式文檔的API嗎?好巧,.NET版企業級文檔管理組合套包Spire.Office 2020全新上線!Word、Excel、PPT、PDF、條形碼等格式一網打盡。
目前,Spire.Office for .NET v6.8.2 2021年第八版現已正式發布。本次更新帶來了許多出色的新功能,比如:Spire.Presentation支持加載保存 DPS/DPT 格式的文檔,支持設置PPT中圖表的邊框樣式為直角,同時還支持設置圖表坐標軸的刻度線間隔;Spire.PDF 支持轉換 PDF 到 OFD,支持給數字簽名添加有效性檢查標記,以及支持添加不可見的數字簽名的功能;Spire.XLS 支持轉換 SmartArt/Shape 為圖片;Spire.Barcode 支持獲取條碼在圖片中的位置和條碼類型等等。此外,該版本還修復了大量已知的問題。點擊下方按鈕即可下載試用↓↓↓
免費下載Spire.Office for .NET v6.8.2
新功能及問題修復詳情,請參閱如下內容。
問題修復:
PdfDocument doc = new PdfDocument(); doc.LoadFromFile(PdfFile); doc.SaveToFile(OfdFile, FileFormat.OFD
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(inputPath);
PdfCertificate cert = new PdfCertificate(pfxPath, password);
PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, cert);
signatureMaker.SetAcro6Layers(false);
signatureMaker.MakeSignature("signName", doc.Pages[0], 100, 100, 120, 60);
doc.SaveToFile(outputPath);
PdfDocument doc = new PdfDocument();
doc.LoadFromFile(inputPath);
PdfCertificate cert = new PdfCertificate(pfxPath, password);
PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, cert);
PdfSignature signature = signatureMaker.Signature;
signature.Name = "E-iceblue";
signature.ContactInfo = "028-81705109";
signature.Location = "Chengdu";
signature.Reason = "The certificate of this document";
PdfSignatureAppearance appearance = new PdfSignatureAppearance(signature);
appearance.NameLabel = "Signer: ";
appearance.ContactInfoLabel = "ContactInfo: ";
appearance.LocationLabel = "Location: ";
appearance.ReasonLabel = "Reaseon: ";
appearance.SignatureImage = PdfImage.FromFile(imagePath);
appearance.GraphicMode = GraphicMode.SignImageAndSignDetail;
signatureMaker.MakeSignature("signName", doc.Pages[0], 100, 600, 200, 100, appearance);
doc.SaveToFile(outputPath);
PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, x509);
signatureMaker.MakeSignature("signName");
問題修復:
新功能
ppt.SaveToFile(outputPath + filename + ".dps", FileFormat.Dps); ppt.SaveToFile(outputPath + filename + ".dpt", FileFormat.Dpt);
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
ITrendlines trendline = chart.Series[0].TrendLines[0] as ITrendlines;
foreach(TextParagraph para in trendline.TrendLineLabel.TextFrameProperties.Paragraphs)
{
para.DefaultCharacterProperties.FontHeight = 20;
foreach(TextRange range in para.TextRanges)
{
range.FontHeight = 20;
}
}
trendline.TrendLineLabel.OffsetX = -0.1f;
trendline.TrendLineLabel.OffsetY = 0.1f;
IChart chart = ppt.Slides[0].Shapes[0] as IChart; chart.Line.FillFormat.FillType = FillFormatType.Solid; chart.Line.FillFormat.SolidFillColor.Color = Color.Red; chart.BorderRoundedCorners = false;
Regex regex = new Regex("^[A-Za-z]+$");
string newvalue = "new string";
foreach(IShape shape in ppt.Slides[0].Shapes)
{
shape.ReplaceTextWithRegex(regex, newvalue);
}
問題修復
新功能:
Workbook workbook = new Workbook();
workbook.LoadFromFile("Sample.xlsx");
Worksheet sheet = workbook.Worksheets[0];
SaveShapeTypeOption shapelist = new SaveShapeTypeOption();
List images = sheet.SaveShapesToImage(shapelist);
int index = 0;
foreach (System.Drawing.Image img in images)
{
img.Save("toImage" + index + ".Png", ImageFormat.Png);
index++;
}
Workbook wb = new Workbook(); wb.LoadFromFile(etInputFile); //wb.LoadFromFile(ettInputFile); wb.SaveToFile(etOutputFile, FileFormat.ET); //wb.SaveToFile(ettOutputFile, FileFormat.ETT);
問題修復:
新功能:
BarcodeInfo[] barcodeInfos = BarcodeScanner.ScanInfo(imageFile);
//BarcodeInfo[] barcodeInfos = BarcodeScanner.ScanInfo(imageFile, barCodeType);
for (int i = 0; i < barcodeInfos.Length; i++)
{
//獲取條碼位置
BarCodeReadType barCodeReadType = barcodeInfos[i].BarCodeReadType;
//獲取條碼四個頂點的坐標
Point[] vertexes = barcodeInfos[i].Vertexes;
}
問題修復:
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@ke049m.cn