Aspose.Words for Python via .NET 24.4.0 injects a fresh wave of features and enhancements into your Python document processing toolkit. Boost the capabilities of your apps with these exciting additions on macOS ARM64 machines.
Embrace the Power of WEBP
Say hello to seamless WEBP image format support on macOS M1 machines! The new SaveFormat.WebP
enum member lets you effortlessly save Word documents as high-quality, static WEBP images – perfect for web optimization.
Chart Customization Galore
Unleash the full potential of the enhanced Chart API in your Word document processing apps. This update grants you greater control to customize the appearance of various chart elements, including the chart title and legend. Please check the Python code sample below for more:
import aspose.words as aw
doc = aw.Document()
builder = aw.DocumentBuilder(doc)
shape = builder.insert_chart(chart_type=aw.drawing.charts.ChartType.COLUMN, width=432, height=252)
chart = shape.chart
series = chart.series
series.clear()
categories = ["Category 1", "Category 2"]
series.add(series_name="Series 1", categories=categories, values=[1, 2])
series.add(series_name="Series 2", categories=categories, values=[3, 4])
chart.format.fill.solid(drawing.Color.dark_slate_gray)
chart.axis_x.tick_labels.position = aw.drawing.charts.AxisTickLabelPosition.NONE
chart.axis_y.tick_labels.position = aw.drawing.charts.AxisTickLabelPosition.NONE
chart.title.format.fill.solid(drawing.Color.light_goldenrod_yellow)
chart.axis_x.title.show = True
chart.axis_x.title.format.fill.solid(drawing.Color.light_goldenrod_yellow)
chart.legend.format.fill.solid(drawing.Color.light_goldenrod_yellow)
doc.save("Charts.ChartFormat.docx")
Source*
Secure Your Documents with Digital Signatures
Aspose.Words for Python via .NET 24.4.0 empowers you to add digital signatures directly into your Word documents on macOS M1. Specify signing options while saving and incorporate comments and timestamps for enhanced security. The provided Python code example demonstrates this functionality in action:
import aspose.words as aw
from datetime import datetime
doc = aw.Document("Document.docx")
certificate_holder = aw.digitalsignatures.CertificateHolder.create("morzal.pfx", "aw")
save_options = aw.saving.OoxmlSaveOptions()
sign_options = aw.digitalsignatures.SignOptions()
sign_options.comments = "Some comments"
sign_options.sign_time = datetime.now()
save_options.digital_signature_details = aw.saving.DigitalSignatureDetails(certificate_holder, sign_options)
doc.save("OoxmlSaveOptions.DigitalSignature.docx", save_options)
Source*
Shape Up Your Visuals
Freshen up your documents by applying glow and reflection effects to drawing objects with version 24.4.0 of the Python API. Create dynamic shapes that grab attention and enhance the visual appeal of your content. Explore the manipulation of glow effects through this Python code example:
import aspose.words as aw
import aspose.pydrawing
doc = aw.Document("Various shapes.docx")
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
shape.glow.color = aspose.pydrawing.Color.salmon
shape.glow.radius = 30
shape.glow.transparency = 0.15
doc.save("Shape.Glow.docx")
doc = aw.Document("Shape.Glow.docx")
shape = doc.get_child(aw.NodeType.SHAPE, 0, True).as_shape()
self.assertEqual(aspose.pydrawing.Color.from_argb(217, 250, 128, 114).to_argb(), shape.glow.color.to_argb())
self.assertEqual(30, shape.glow.radius)
self.assertAlmostEqual(0.15, shape.glow.transparency, delta=0.01)
shape.glow.remove()
self.assertEqual(aspose.pydrawing.Color.black.to_argb(), shape.glow.color.to_argb())
self.assertEqual(0, shape.glow.radius)
self.assertEqual(0, shape.glow.transparency)
Source*
Effortless Font Embedding
This update streamlines font handling within your Python apps on macOS M1. Now, you can embed fonts declared within @font-face rules when loading HTML documents and ensure consistent font rendering in the resulting Word document, as illustrated by the provided Python code example:
import aspose.words as aw
load_options = aw.loading.HtmlLoadOptions()
load_options.support_font_face_rules = True
doc = aw.Document("Html with FontFace.html", load_options)
self.assertEqual("Squarish Sans CT Regular", doc.font_infos[0].name)
Source*
You can view the list of all new features, enhancements, and bug fixes introduced in this release by visiting Aspose.Words for Python via .NET 24.4.0 Release Notes.