Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
SmartArt graphics are used to quickly and easily create a visual representation of information. You simply choose from a large number of layouts that best suits your situation. This ease of use makes SmartArt graphics quite popular for some purposes.
Microsoft Word generates and saves the pre-rendered drawing along with the SmartArt object. In most cases, the pre-rendered drawing is rendered well by Aspose.Words and no additional actions are required. However, if the document is saved by other applications, the pre-rendered SmartArt drawing may be missing or incorrect. In this case, the SmartArt object itself should be laid-out and rendered using Aspose.Words. We call this process the SmartArt Cold Rendering.
Aspose.Words allows you to use a pre-rendered drawing or perform cold rendering:
SmartArt object.SmartArt object.The following code example shows how to update drawings for all diagrams in the document:
Currently, only a limited number of standard Microsoft Word SmartArt layouts are supported. Also, some of these layouts are supported partially, meaning that significant nodes and shapes of the diagram are rendered, but there may be differences between the Microsoft Word and Aspose.Words diagram layout.
The table below lists the fully and partially supported layouts:
| SmartArt Layouts Group | Fully supported layouts | Partially supported layouts |
|---|---|---|
List |
|
|
Process |
|
|
Cycle |
– |
|
Hierarchy |
– |
|
Relationship |
|
|
Matrix |
|
– |
Pyramid |
– |
|
The table below shows example pictures of Aspose.Words Cold Rendering of some standard layouts compared to Microsoft Word output:
| Aspose.Words | Microsoft Word | |
|---|---|---|
| Basic Process | ![]() |
![]() |
| Circular Bending Process | ![]() |
![]() |
| Repeating Bending Process | ![]() |
![]() |
| Trapezoid List | ![]() |
![]() |
Q: What is SmartArt Cold Rendering in Aspose.Words for Node.js?
A: Cold Rendering is the process where Aspose.Words lays out and renders a SmartArt diagram itself when the pre‑rendered drawing stored in the document is missing or incorrect. This ensures the diagram appears correctly even if the source file did not contain a valid drawing.
Q: How can I force Aspose.Words to re‑render a SmartArt diagram that has an incorrect pre‑rendered drawing?
A: Call the Shape.updateSmartArtDrawing() method on each SmartArt shape. This explicitly triggers cold rendering for that diagram, replacing the faulty drawing with a newly generated one.
Q: Which method updates the SmartArt drawing programmatically?
A: The method is Shape.updateSmartArtDrawing(). It is available on the Shape class that represents a SmartArt object.
Q: Which SmartArt layout groups are fully supported by Aspose.Words?
A: Fully supported groups include List, Process, Matrix, and Relationship layouts. The documentation lists the exact layouts within each group that render completely.
Q: How can I determine whether a SmartArt diagram was rendered using cold rendering?
A: After loading the document, inspect the Shape object’s IsSmartArt property and compare the rendered appearance with the original. If the pre‑rendered drawing is missing or you have called updateSmartArtDrawing(), the diagram has been cold‑rendered.
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.