PclSaveOptions.RasterizeTransformedElements
PclSaveOptions RasterizeTransformedElements property. Gets or sets a value determining whether or not complex transformed elements should be rasterized before saving to PCL document. Default is true.
PclSaveOptions.RasterizeTransformedElements property
Gets or sets a value determining whether or not complex transformed elements should be rasterized before saving to PCL document. Default is true
.
public bool RasterizeTransformedElements { get; set; }
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 configure exporting to PCL.
PclSaveOptions pclSaveOptions = new PclSaveOptions();
// Specify the font that the printer will use to print text when the expected font is not available.
pclSaveOptions.FallbackFontName = "Times New Roman";
// Disable rasterization of complex transformed elements before saving the document to PCL format.
pclSaveOptions.RasterizeTransformedElements = false;
// When printing this document, the printer will use the "Courier New" font
// to access places where our document used the "Courier" font.
pclSaveOptions.AddPrinterFont("Courier New", "Courier");
Converter.Create()
.From(MyDir + "Simple.docx")
.To(ArtifactsDir + "PclSaveOptions.pcl", pclSaveOptions)
.Execute();
See Also
- class PclSaveOptions
- namespace Wordize.Saving
- assembly Wordize