zl程序教程

您现在的位置是:首页 >  后端

当前栏目

2022-07-07:Spire.Office 7.7.2 for net 闪亮登场

Net for 2022 Office 07 SPIRE 登场
2023-09-14 09:04:11 时间

In this version, the most recent versions of Spire.Doc, Spire.PDF, Spire.XLS, Spire.Presentation, Spire.Email, Spire.DocViewer, Spire.PDFViewer, Spire.Spreadsheet, Spire.OfficeViewer, Spire.DataExport, Spire.Barcode are included.

Spire.Office for .NET is a combination of Enterprise-Level Office .NET API offered by E-iceblue. It includes Spire.Doc, Spire.XLS, Spire.Spreadsheet, Spire.Presentation, Spire.PDF, Spire.DataExport, Spire.OfficeViewer, Spire.PDFViewer, Spire.DocViewer, Spire.Barcode and Spire.Email. Spire.Office contains the most up-to-date versions of the above .NET API. 

Spire.Office for .NET can be linked into any type of a 32-bit or 64-bit .NET application including ASP.NET, Web Services and WinForms for .NET Framework version 2.0 to 4.5. Spire.Office also supports to work on .NET Core, .NET 5.0, .NET 6.0, Microsoft Azure, Mono Android and Xamarin.iOS.

With Spire.Office for .NET, developers can create a wide range of applications. It enables developers to open, create, modify, convert, print, View MS Word, Excel, PowerPoint and PDF documents. Furthermore, it allows users to export data to popular files such as MS Word/Excel/RTF/Access, PowerPoint, PDF, XPS, HTML, XML, Text, CSV, DBF, Clipboard, SYLK, PostScript, PCL, etc. 

Here is a list of changes made in this release
Spire.PDF
CategoryIDDescription
New featureSPIREPDF-5095Supports setting the author and subject for PDFLineAnnotation.
if (annotation is PdfLineAnnotationWidget)
{
    PdfLineAnnotationWidget lineAnn = annotation as PdfLineAnnotationWidget;
    //PdfLineAnnotation lineAnn = annotation as PdfLineAnnotation;
    lineAnn.Author = "Author_test";
    lineAnn.Subject = "Subject_test";
}
New featureSPIREPDF-5148Supports setting the ForeColor for CheckBox field.
checkboxField.ForeColor = new PdfRGBColor(Color.Red);
New featureSPIREPDF-5154Adjusts the interface find.ApplyHighLight()to find.HighLight(), and this method improves the highlighting effect.
   
New feature-Supports creating tagged structure PDF.
PdfStringFormat format = new PdfStringFormat();
PdfTrueTypeFont font = new PdfTrueTypeFont(new System.Drawing.Font("Times New Roman", 10));
PdfPen pen = PdfPens.Black;
PdfSolidBrush brush = new PdfSolidBrush(Color.Black);
 
PdfDocument doc = new PdfDocument("HelloWord.pdf");
PdfLogicalStructure tree = PdfLogicalStructure.CreateLogicalStructure(doc);
PdfStructureElement article = tree.AppendChildElement(PdfStandardStructTypes.Article);
article.Title = "create tagged pdf";
 
PdfStructureElement paragraph1 = article.AppendChildElement(PdfStandardStructTypes.Paragraph);
paragraph1.Title = "text paragraph1";
int mcid = 0;
paragraph1.BeginMarkedContentSequence(doc.Pages[0].Canvas, "paragraph1", mcid);
 
doc.Pages[0].Canvas.DrawString("paragraph1: PDF’s logical structure facilities (PDF 1.3) provide a mechanism for " +
    "incorporating structural information about a document’s content into a PDF file. Such information might include, " +
    "for example, the organization of the document into chapters and sections or the identification of special elements " +
    "such as figures, tables, and footnotes. The logical structure facilities are extensible, allowing applications that " +
    "produce PDF files to choose what structural information to include and how to represent it, while enabling PDF " +
    "consumers to navigate a file without knowing the producer’s structural conventions.",
   font, pen, brush, new Rectangle(40, 200, 480, 80), format);
paragraph1.EndMarkedContentSequence(doc.Pages[0].Canvas);
paragraph1.ReferenceContent(doc.Pages[0], mcid);
 
PdfStructureElement paragraph2 = article.AppendChildElement(PdfStandardStructTypes.Paragraph);
paragraph2.Title = "text paragraph2";
mcid = 1;
paragraph2.BeginMarkedContentSequence(doc.Pages[0].Canvas, "paragraph2", mcid);
doc.Pages[0].Canvas.DrawString("paragraph2: PDF logical structure shares basic features with standard document markup languages" +
    " such as HTML, SGML, and XML. A document’s logical structure is expressed as a hierarchy of structure elements, each" +
    " represented by a dictionary object. Like their counterparts in other markup languages, PDF structure elements can" +
    " have content and attributes. In PDF, rendered document content takes over the role occupied by text in HTML, SGML, and XML.",
   font, pen, brush, new Rectangle(40, 280, 480, 60), format);
paragraph2.EndMarkedContentSequence(doc.Pages[0].Canvas);
paragraph2.ReferenceContent(doc.Pages[0], mcid);
 
doc.SaveToFile("Tagged.pdf");
New featureSPIREPDF-5241Supports loading OFD file from stream
Stream stream = File.OpenRead(inputFile);
OfdConverter converter = new OfdConverter(stream);
MemoryStream ms = new MemoryStream();
converter.ToPdf(ms);
New featureSPIREPDF-5166Adds an interface that supports print settings in WPF assembly
PdfDocument.Print(PdfPrintSettings printSettings)
BugSPIREPDF-704Fixes the issue that the PdfX1A2001 converted from PDF didn't conform to the specification.
BugSPIREPDF-715Fixes the issue that the application threw the exception "Object reference not set to an instance of an object." when converting PDF to image.
BugSPIREPDF-737Fixes the issue that caused blurred barcode after converting PDF to image.
BugSPIREPDF-779Fixes the issue that the content was lost after converting XPS to PDF.
BugSPIREPDF-1397Optimizes the time when printing.
BugSPIREPDF-1443Fixes the issue that the barcode can't be scanned after printing
BugSPIREPDF-4884Fixes the issue that failed to find the cross-line text.
BugSPIREPDF-5096Fixes the issue that caused blurry barcode after converting PDF to image.
BugSPIREPDF-5204Fixes the issue that caused incorrect barcode after converting PDF to image.
BugSPIREPDF-5226Fixes the issue that the application threw the "NullReferenceException" when converting PDF to OFD.
BugSPIREPDF-5228Fixes the issue that outputs were incorrect after converting PDF layers to image.
BugSPIREPDF-5238Fixes the issue that the page number was lost after printing document.
BugSPIREPDF-5249Fixes the issue that when converting PDF to OFD, the invisible content failed to convert.
BugSPIREPDF-5255Fixes the issue that the application threw the "NullReferenceException" when merging PDF documents.
BugSPIREPDF-5264Fixes the issue that the application threw "ArgumentNullException" when converting PDF to image
BugSPIREPDF-5273Fixes the issue that the application threw "IndexOutOfRangeException" when compressing PDF.
BugSPIREPDF-5285Fixes the issue that the content was lost after converting PDF to image
BugSPIREPDF-5039Fixes the issue that the application threw "can not open an encrypted document, The password is invalid" when loading the stream that was saved from PDF with password .
BugSPIREPDF-1269Fixes the issue that caused incorrect field text after printing.
BugSPIREPDF-1280Improves the time to convert PDF to image.
BugSPIREPDF-1603Fixes the issue that failed to get the value from XFA field.
SPIREPDF-5022
BugSPIREPDF-4990Optimizes the memory consumption when manipulating PDF and resultant document size.
BugSPIREPDF-5018Fixes the issue that failed to find the text that contains superscripts..
BugSPIREPDF-5041Fixes the issue that the application threw the "post table issue" when converting PDF to Images.
BugSPIREPDF-5057Fixes the issue that failed to replace image in PDF.
BugSPIREPDF-5079Fixes the issue that failed to delete image from PDF.
BugSPIREPDF-5119Fixes the issue that caused incorrect format after converting PDF to Image.
BugSPIREPDF-5142Fixes the issue that failed to find vertical text in PDF.
BugSPIREPDF-5148Supports setting the ForeColor for CheckBox field.
BugSPIREPDF-5155Fixes the issue that caused incorrect text spacing after converting OFD to PDF.
BugSPIREPDF-5165Fxies the issue that the application threw the "NullReferenceException" when filling image in PdfButton field.
BugSPIREPDF-5168Fixes the issue that the PDFViewer failed to load the PDF stream converted from OFD.
BugSPIREPDF-5171Synchronizes the cell.getStyle().setCellPadding interface in JAVA (setting the padding of a cell) to .NET.
BugSPIREPDF-5175Fixes the issue that characters were incorrect after printing PDF.
BugSPIREPDF-5177Fixes the issue that setting the WordWrap for text in grid didn't take effect.
BugSPIREPDF-5179Fixes the issue that the size of image stamp became large after converting OFD to PDF.
SPIREPDF-5227
BugSPIREPDF-5183Fixes the issue that the application threw "The conversion provider cann't be found" exception when converting HTML to PDF using QT plugin.
BugSPIREPDF-5184Fixes the issue that the image was lost after converting SVG to PDF.
BugSPIREPDF-5199Fixes the issue that the image stamp was lost after converting OFD to PDF.
BugSPIREPDF-5207Fixes the issue that the text overlapped after adding in grid.
Spire.Doc
CategoryIDDescription
New feature-Supports converting table of contents into corresponding bookmarks in PDF when converting Word to PDF using NewEngine.
ToPdfParameterList toPdf = new ToPdfParameterList();
toPdf.CreateWordBookmarks = true;
toPdf.CreateWordBookmarksUsingHeadings = true;
document.setUseNewEngine(true);
document.saveToFile("output.pdf",toPdf);
New feature-Supports disabling hyperlinks in PDF when converting Word to PDF using NewEngine.
ToPdfParameterList toPdf = new ToPdfParameterList();
toPdf.DisableLink = true;
document.setUseNewEngine(true);
document.saveToFile("output.pdf",toPdf);
BugSPIREDOC-6917Fixes the issue that the color of table borders lost after converting HTML to Docx.
BugSPIREDOC-7600Fixes the issue that there were extra blank lines before the title after converting Word to PDF.
BugSPIREDOC-7659Fixes the issue that the table pagination was wrong after converting Word to PDF.
BugSPIREDOC-7678Fixes the issue that the application threw "System.FormatException" when converting Word to PDF under French locale settings.
BugSPIREDOC-7766Fixes the issue that image links would not work after saving a Docx file.
BugSPIREDOC-7771Fixes the issue that waterfall charts would be empty after replacing some paragraph text.
BugSPIREDOC-7773Fixes the issue that the application threw "System.ArgumentOutOfRangeException" when loading a Docx file.
BugSPIREDOC-7790Fixes the issue that the content format was inconsistent after converting Word to PDF.
BugSPIREDOC-7824Fixes the issue that waterfall charts changed to pictures after saving a Docx file.
BugSPIREDOC-7792Fixes the issue that the application threw "System.Collections.Generic.KeyNotFoundException" when saving a Docx file.
Spire.XLS
CategoryIDDescription
New featureSPIREXLS-3812Provides an interface that supports setting whether to apply styles to rows and columns.
worksheet.ApplyStyle(style, applyRowStyle, applyColumnStyle)
New feature-Supports converting new chart types in Excel 2016 like waterfall, treemap and boxandwhisker to PDF and image.
BugSPIREXLS-3888Fixes the issue that the content of cells in custom format was not correct after converting to PDF.
BugSPIREXLS-3890Fixes the issue that the header whose content contained carriage, its height was incorrect after converting to PDF.
BugSPIREXLS-3900Fixes the issue that the association between button and VBA was lost after copying sheet to another workbook.
BugSPIREXLS-3901Fixes the issue that the data of pivot table was incorrect after converting Excel to PDF.
BugSPIREXLS-3908Fixes the issue that caused blurry effect after inserting image in Excel with new versions.
BugSPIREXLS-3909Fixes the issue that failed to get the range of namedrange with non-contiguous ranges.
Spire.Presentation
CategoryIDDescription
BugSPIREPPT-1963Fixes the issue that the fill color obtained from a shape was incorrect.
BugSPIREPPT-1967Fixes the issue that the application threw exception "ArgumentOutOfRangeException" when HTML was inserted to PowerPoint.
Spire.Spreadsheet
CategoryIDDescription
BugSPREADSHEET-201Fixes the issue that adding and deleting rows would give incorrect results.
BugSPREADSHEET-202Fixes the issue that "NullReferenceException" occurred when Excel files were being loaded.
Spire.Barcode
CategoryIDDescription
BugSPIREBARCODE-214Fixes the issue that the rectangle added in barcode became square.
BugSPIREBARCODE-215Fixes the issue that the scanned data was inconsistent with the data scanned by mobile phone.