原創|產品更新|編輯:黃竹雯|2019-04-09 09:50:44.000|閱讀 387 次
概述:專業的office工具套包 Spire.Office更新至4.4.0,添加Spire.PDF支持查找和高亮跨行的文本等新功能。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
Spire.Office是一款企業級Office控件套包,為工廠智能制造提供最全面的office操作,無需安裝Microsoft Office也能完成辦公自動化。
Spire.Office 4.4.0已經正式發布了。該版本添加了許多新功能,例如,Spire.PDF支持查找和高亮跨行的文本,Spire.Presnetation支持對文本添加動畫,Spire.XLS支持設置文本框的內邊距,Spire.Spreadsheet支持自定義語言配置文件的路徑。此外,本次更新還修復了大量漏洞。
該版本涵蓋了最新版的Spire.Doc、Spire.PDF、Spire.XLS、Spire.Presentation、Spire.DataExport、Spire.Barcode、Spire.DocViewer、Spire.PDFViewer、Spire.OfficeViewer、Spire.Email。
版本信息如下:
新功能:
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);
問題修復:
新功能:
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();
問題修復:
新功能:
Paragraph.Format.AutoSpaceDN;
Paragraph.Format.AutoSpaceDE;
問題修復:
新功能:
TextBoxShapeBase texbox = workbook.Worksheets[0].TextBoxes[0] as TextBoxShapeBase; texbox.InnerLeftMargin = 1; texbox.InnerRightMargin = 3; texbox.InnerTopMargin = 1; texbox.InnerBottomMargin = 3;
問題修復:
新功能:
spreadsheet.MenuLanguageConfigPath= "D:/SpreadsheetTest/MenuLanguageConfig.xml";
問題修復:
更多資源【Spire.Doc系列教程】【Spire.PDF系列教程】【Spire.XLS系列教程】【】幫助你玩轉Spire.Office!
還有一份為你精心準備的文檔管理工具的學習大禮包哦~ 點擊查看詳情>>>
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都網