rasterize_transformed_elements property
PclSaveOptions.rasterize_transformed_elements property
Gets or sets a value determining whether or not complex transformed elements
should be rasterized before saving to PCL document.
Default is True
.
@property
def rasterize_transformed_elements(self) -> bool:
...
@rasterize_transformed_elements.setter
def rasterize_transformed_elements(self, value: bool):
...
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.
Examples
Shows how to rasterize complex elements while saving a document to PCL.
doc = aw.Document(file_name=MY_DIR + 'Rendering.docx')
save_options = aw.saving.PclSaveOptions()
save_options.save_format = aw.SaveFormat.PCL
save_options.rasterize_transformed_elements = True
doc.save(file_name=ARTIFACTS_DIR + 'PclSaveOptions.RasterizeElements.pcl', save_options=save_options)
See Also
- module aspose.words.saving
- class PclSaveOptions