PclSaveOptionsRasterizeTransformedElements Property |
Gets or sets a value determining whether or not complex transformed elements
should be rasterized before saving to PCL document.
Default is true.
Namespace:
Aspose.Words.Saving
Assembly:
Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntaxpublic bool RasterizeTransformedElements { get; set; }
Public Property RasterizeTransformedElements As Boolean
Get
Set
public:
property bool RasterizeTransformedElements {
bool get ();
void set (bool value);
}
member RasterizeTransformedElements : bool with get, set
Property Value
Type:
Boolean
Remarks
PCL doesn't support some kind of transformations that are used by Aspose Words.
E.g. rotated, skewed images and texture brushes. To properly render such elements
rasterization process is used, i.e. saving to image and clipping.
This process can take additional time and memory.
If flag is set to false, some content in output may be different
as compared with the source document.
ExamplesShows how rasterized or not transformed elements before saving.
Document doc = new Document(MyDir + "Rendering.docx");
PclSaveOptions saveOptions = new PclSaveOptions
{
SaveFormat = SaveFormat.Pcl,
RasterizeTransformedElements = true
};
doc.Save(ArtifactsDir + "PclSaveOptions.RasterizeElements.pcl", saveOptions);
See Also