原創(chuàng)|產(chǎn)品更新|編輯:黃竹雯|2019-04-09 09:50:44.000|閱讀 387 次
概述:專業(yè)的office工具套包 Spire.Office更新至4.4.0,添加Spire.PDF支持查找和高亮跨行的文本等新功能。
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Spire.Office是一款企業(yè)級(jí)Office控件套包,為工廠智能制造提供最全面的office操作,無(wú)需安裝Microsoft Office也能完成辦公自動(dòng)化。
Spire.Office 4.4.0已經(jīng)正式發(fā)布了。該版本添加了許多新功能,例如,Spire.PDF支持查找和高亮跨行的文本,Spire.Presnetation支持對(duì)文本添加動(dòng)畫,Spire.XLS支持設(shè)置文本框的內(nèi)邊距,Spire.Spreadsheet支持自定義語(yǔ)言配置文件的路徑。此外,本次更新還修復(fù)了大量漏洞。
該版本涵蓋了最新版的Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.DataExport、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer、Spire.OfficeViewer、Spire.Email。
版本信息如下:
點(diǎn)擊下載Spire.Office最新補(bǔ)丁
新功能:
PdfDocument doc = new PdfDocument(input); PdfTextFind[] result = null; foreach (PdfPageBase page in doc.Pages) { result = page.FindText("This is a test", TextFindParameter.CrossLine).Finds; for (int i = 0; i < result.Length; i++) { result[i].ApplyHighLight(Color.Yellow); } } doc.SaveToFile(output);
PdfNewDocument doc = new PdfNewDocument(); PdfPageBase page = doc.Pages.Add(); String pfxPath = inputFile; PdfCertificate cer = new PdfCertificate(pfxPath, password, X509KeyStorageFlags.Exportable); PdfSignature signature = new PdfSignature(doc, page, cer, "s1"); signature.Bounds = new RectangleF(new PointF(100, 100), new SizeF(200, 200)); signature.ConfigureHttpOCSP(null, null); doc.Save(outputFile);
PdfRGBColor color = xxField.BackColor; xxField.BackColor = Color.Yellow;
PdfGridCellContent cellContent = new PdfGridCellContent(); cellContent.ImageLocation = new PointF(20,20);
問(wèn)題修復(fù):
新功能:
Presentation ppt = new Presentation(); ppt.LoadFromFile("test.pptx"); IAutoShape shape = (IAutoShape)ppt.Slides[0].Shapes[0]; AnimationEffect animation = shape.Slide.Timeline.MainSequence.AddEffect(shape, AnimationEffectType.Fly); animation.SetStartEndParagraphs(2, 3); IAutoShape shape2 = (IAutoShape)ppt.Slides[0].Shapes[1]; AnimationEffect animation2 = shape.Slide.Timeline.MainSequence.AddEffect(shape2, AnimationEffectType.FadedZoom); animation2.SetStartEndParagraphs(0, 0); ppt.SaveToFile("result.pptx", FileFormat.Pptx2010); ppt.Dispose();
Presentation ppt = new Presentation(); ppt.LoadFromFile(inputfile); PresentationPrintDocument document = new PresentationPrintDocument(ppt); //Set print task name document.DocumentName = "print task 1"; document.Print0rder = Order.Horizontal; document.SlideFrameForPrint = true; document.GrayLevelForPrint = true; document.SlideCountPerPageForPrint = PageSlideCount.Three; document.PrinterSettings.PrintRange = PrintRange.AllPages; //Set continuous print area document.PrinterSettings.PrintRange = PrintRange.SomePages; document.PrinterSettings.FromPage = 1; document.PrinterSettings.ToPage = ppt.Slides.Count - 1; //Set discontinuous print area //document.SelectSldiesForPrint("1", "2-6"); document.PrinterSettings.PrintToFile = true; document.PrinterSettings.PrintFileName = outputfile; ppt.Print(document); ppt.Dispose();
問(wèn)題修復(fù):
新功能:
Paragraph.Format.AutoSpaceDN;
Paragraph.Format.AutoSpaceDE;
問(wèn)題修復(fù):
新功能:
TextBoxShapeBase texbox = workbook.Worksheets[0].TextBoxes[0] as TextBoxShapeBase; texbox.InnerLeftMargin = 1; texbox.InnerRightMargin = 3; texbox.InnerTopMargin = 1; texbox.InnerBottomMargin = 3;
問(wèn)題修復(fù):
新功能:
spreadsheet.MenuLanguageConfigPath= "D:/SpreadsheetTest/MenuLanguageConfig.xml";
問(wèn)題修復(fù):
更多資源【Spire.Doc系列教程】【Spire.PDF系列教程】【Spire.XLS系列教程】【】幫助你玩轉(zhuǎn)Spire.Office!
還有一份為你精心準(zhǔn)備的文檔管理工具的學(xué)習(xí)大禮包哦~ 點(diǎn)擊查看詳情>>>
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都網(wǎng)