Browse our Products Toggle navigation
If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
This API release has the ability to cache the header and footer shapes and reduce the output PDF file size.
With this API version now you have the option to create the structured document tags (SDT) as a child of a Table node among table rows.
The following C# code is a sample of creating group structured document tags at row level via API:
Document doc = new Document(); DocumentBuilder builder = new DocumentBuilder(doc); // Insert a table. Table table = builder.StartTable(); // Create a Group structured document tag at the Row level. StructuredDocumentTag groupSdt = new StructuredDocumentTag(doc, SdtType.Group, MarkupLevel.Row); table.AppendChild(groupSdt); groupSdt.IsShowingPlaceholderText = false; groupSdt.RemoveAllChildren(); // Create a child row of the structured document tag. Row row = new Row(doc); groupSdt.AppendChild(row); // Append a cell. Cell cell = new Cell(doc); row.AppendChild(cell); builder.EndTable(); // Insert cell contents. cell.EnsureMinimum(); builder.MoveTo(cell.LastParagraph); builder.Write("Some text 1"); // Insert text after the table. builder.MoveTo(table.NextSibling); builder.Write("Some text 2"); doc.Save(dir + "Out.docx");
TXT
The TxtLoadOptions class has been extended by an AutoNumberingDetection public property. This allows you to set the autonumbering detection mode upon loading of the TXT document.
TxtLoadOptions
AutoNumberingDetection
The following C# code demonstrates disabling automatic numbering detection on TXT loading:
// Disable automatic numbering detection. TxtLoadOptions options = new TxtLoadOptions { AutoNumberingDetection = false }; Document doc = new Document("input.txt", options); int listItemsCount = 0; foreach (Paragraph paragraph in doc.GetChildNodes(NodeType.Paragraph, true)) { if (paragraph.IsListItem) listItemsCount++; } Console.WriteLine( "The expected number of list items in document with 'AutoNumberingDetection' option disabled is 0." + " And the actual is: {0}.", listItemsCount); // The code produces the following output: // The expected number of list items in document with 'AutoNumberingDetection' option disabled is 0. And the actual is: 0.
For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.Words for .NET 22.9 Release Notes.