在Python中壓縮HTML而不會損失質量。優化HTML內容,輕鬆減小文件大小。...cleanup() shapes = [node.as_shape() for node in doc.get_child_nodes(aw...NodeType.SHAPE, True )] for shape in shapes: if shape.isImage:...
## DocumentVisitor.VisitFootnoteStart method Called when enumeration of a footnote or endnote text has started. ```csharp public virtual VisitorAction VisitFootnoteStart(Footnote footnote) ``` | Pa......<summary> /// Called when a Shape is encountered in the document...VisitShapeStart(Shapeshape) { if (shape.Font.Hidden) shape.Remove();...
## HtmlSaveOptions.exportRoundtripInfor property Specifies whether to write the roundtrip information when saving to HTML, MHTML or EPUB. Default value is ``true`` for HTML and ``false`` for MHTML ......hidden bookmarks, original shape positions, // or footnotes will...hidden bookmarks and original shape positions. // If we set the...
## IChartDataPoint.explosion property Specifies the amount the data point shall be moved from the center of the pie. Can be negative, negative means that property is not set and no explosion should......DocumentBuilder(doc=doc) shape = builder.insert_chart(chart_type=aw...width=500, height=350) chart = shape.chart self.assertEqual(1, chart...
## LegendPosition enumeration Specifies the possible positions for a chart legend. ### Members | Name | Description | | --- | --- | | NONE | No legend will be shown for the chart. | | BOTTOM | Spec......DocumentBuilder(doc=doc) shape = builder.insert_chart(chart_type=aw...width=450, height=300) chart = shape.chart self.assertEqual(3, chart...
## remove() {#default} Removes itself from the parent. ```js remove() ``` ### Examples Shows how to remove all child nodes of a specific type from a composite node. ```js let doc = new aw.Document(......``` Shows how to delete all shapes with images from a document...docx"); let shapes = doc.getChildNodes(aw.NodeType.Shape, true).toArray()...
## ChartDataLabelCollec.font property Provides access to the font formatting of the data labels of the entire series. ```js get font(): Aspose.Words.Font ``` ### Remarks Value defined for this prop...... let shape = builder.insertChart(aw.Drawing...Line, 500, 300); let chart = shape.chart; chart.series.clear();...
## ChartDataLabelCollec.font property Provides access to the font formatting of the data labels of the entire series. ```python @property def font(self) -> aspose.words.Font: ... ``` ### Remarks Va...... shape = builder.insert_chart(chart_type=aw...width=500, height=300) chart = shape.chart chart.series.clear() chart...