Spire.Office 7.9.2 已发布本次更新带来了一些新功能,如:Spire.PDF 支持设置书签的缩放类型为承前缩放及添加包含图片的数字签名;Spire.XLS 支持获取条件格式的颜色;Spire.Presentation 支持查找幻灯片中第一个出现的匹配文本并修改其样式此外,该版本还修复很多已知问题详情请阅读以下内容,我来为大家讲解一下关于wpsandroid4.4.4?跟着小编一起来看一看吧!

wpsandroid4.4.4(Spire.Office7.9.2已发布)

wpsandroid4.4.4

Spire.Office 7.9.2 已发布。本次更新带来了一些新功能,如:Spire.PDF 支持设置书签的缩放类型为承前缩放及添加包含图片的数字签名;Spire.XLS 支持获取条件格式的颜色;Spire.Presentation 支持查找幻灯片中第一个出现的匹配文本并修改其样式。此外,该版本还修复很多已知问题。详情请阅读以下内容。

该版本涵盖了最新版的 Spire.Doc,Spire.PDF,Spire.XLS,Spire.Email,Spire.DocViewer, Spire.PDFViewer,Spire.Presentation,Spire.Spreadsheet, Spire.OfficeViewer, Spire.DocViewer, Spire.Barcode, Spire.DataExport。

版本信息如下:

获取Spire.Office 7.9.2 请点击:

https://www.e-iceblue.cn/Downloads/Spire-Office-NET.html


Spire.PDF

新功能:

float width = PdfPageSize.A4.Width * 2; float height = PdfPageSize.A4.Height; Stream outputstreaml = File.Open(outputFile, FileMode.Create, FileAccess.ReadWrite, FileShare.Read); BookletOptions bookletOptions = new BookletOptions(); bookletOptions.BookletBinding = Spire.Pdf.Utilities.PdfBookletBindingMode.Left;//left是左装订,第一页靠右 SizeF size = new SizeF(width, height); PdfBookletCreator.CreateBooklet(doc, outputstreaml, size, bookletOptions);

PdfDocument pdf = new PdfDocument(); pdf.LoadFromFile(inputFile); PdfBookmarkCollection bookmarks = pdf.Bookmarks; for(int i = 0; i<bookmarks.Count; i ) { PdfBookmark bookmark = bookmarks[i]; SetBookmarkAction(bookmark); } pdf.SaveToFile(outputFile, FileFormat.PDF); private void SetBookmarkAction(PdfBookmark bookmark) { PdfDestination dest = bookmark.Destination; dest.Mode = PdfDestinationMode.Location; dest.Zoom = 0; for (int i = 0; i < bookmark.Count; i ) { PdfBookmark childbookmark = bookmark[i]; SetBookmarkAction(childbookmark); }

PdfDocument pdf = new PdfDocument(); pdf.LoadFromFile(inputFile); PdfAnnotationCollection annotations = pdf.Pages[0].AnnotationsWidget; for(int i = 0; i<annotations.Count; i ) { PdfDocumentLinkAnnotationWidget anno = annotations[i] as PdfDocumentLinkAnnotationWidget; PdfDestination dest = anno.Destination; dest.Mode = PdfDestinationMode.Location; dest.Zoom = 0; anno.Destination = dest; } pdf.SaveToFile(outputFile, FileFormat.PDF); pdf.Close();

static void Main(string[] args) { PdfDocument doc = new PdfDocument(); doc.LoadFromFile(@"test.pdf"); PdfPageBase pagebase = doc.Pages[0]; X509Certificate2 x509 = new X509Certificate2(@"gary.pfx", "e-iceblue"); PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, x509); IPdfSignatureAppearance signatureAppearance = new PdfCustomSignatureAppearance(); signatureMaker.MakeSignature("Signature", signatureAppearance); doc.SaveToFile(@"new.pdf", Spire.Pdf.FileFormat.PDF); doc.Close(); } public class PdfCustomSignatureAppearance : IPdfSignatureAppearance { public void Generate(PdfCanvas g) { Image image = Image.FromFile("test.png"); g.DrawImage(PdfImage.FromImage(image), new PointF(0, 0)); } }

问题修复:


Spire.XLS

新功能:

问题修复:


Spire.Presentation

新功能:

Presentation ppt = new Presentation(); ppt.LoadFromFile(inputFile); string text = "create"; TextRange textRange = ppt.Slides[0].FindFirstTextAsRange(text); textRange.Fill.FillType = FillFormatType.Solid; textRange.Fill.SolidColor.Color = Color.Red; textRange.FontHeight = 28; textRange.LatinFont = new TextFont("微软雅黑"); textRange.IsBold = TriState.True; textRange.IsItalic = TriState.True; textRange.TextUnderlineType = TextUnderlineType.Double; textRange.TextStrikethroughType = TextStrikethroughType.Single;

Presentation presentation = new Presentation(); presentation.LoadFromFile(input); presentation.SaveToPdfOption.ContainHiddenSlides = false; presentation.SaveToFile(output, FileFormat.PDF);

问题修复:


Spire.Doc

问题修复:


Spire.Spreadsheet

问题修复:

,