Class PclSaveOptions

Class PclSaveOptions

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.3.0)

Can be used to specify additional options when saving a document into the Aspose.Words.SaveFormat.Pcl format.

To learn more, visit the Specify Save Options documentation article.

public class PclSaveOptions : FixedPageSaveOptions

Inheritance

objectSaveOptionsFixedPageSaveOptionsPclSaveOptions

Inherited Members

FixedPageSaveOptions.Equals(object), FixedPageSaveOptions.AssertValidIdPrefix(string), FixedPageSaveOptions.IsValidIdPrefix(string), FixedPageSaveOptions.PageSet, FixedPageSaveOptions.PageSavingCallback, FixedPageSaveOptions.NumeralFormat, FixedPageSaveOptions.MetafileRenderingOptions, FixedPageSaveOptions.JpegQuality, FixedPageSaveOptions.ColorMode, FixedPageSaveOptions.OptimizeOutput, SaveOptions.CreateSaveOptions(SaveFormat), SaveOptions.CreateSaveOptions(string), SaveOptions.SaveFormat, SaveOptions.ExportGeneratorName, SaveOptions.TempFolder, SaveOptions.PrettyFormat, SaveOptions.UseAntiAliasing, SaveOptions.UseHighQualityRendering, SaveOptions.DmlRenderingMode, SaveOptions.DmlEffectsRenderingMode, SaveOptions.ImlRenderingMode, SaveOptions.DefaultTemplate, SaveOptions.UpdateFields, SaveOptions.UpdateLastSavedTimeProperty, SaveOptions.UpdateLastPrintedProperty, SaveOptions.UpdateCreatedTimeProperty, SaveOptions.MemoryOptimization, SaveOptions.UpdateAmbiguousTextFont, SaveOptions.Dml3DEffectsRenderingMode, SaveOptions.ProgressCallback, SaveOptions.AllowEmbeddingPostScriptFonts, SaveOptions.CustomTimeZoneInfo, object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

PclSaveOptions()

public PclSaveOptions()

Properties

FallbackFontName

Name of the font that will be used if no expected font is found in printer and built-in fonts collections.

public string FallbackFontName { get; set; }

Property Value

string

Remarks

If no fallback is found, a warning is generated and “Arial” font is used.

RasterizeTransformedElements

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; }

Property 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.

SaveFormat

Specifies the format in which the document will be saved if this save options object is used. Can only be Aspose.Words.SaveFormat.Pcl.

public override SaveFormat SaveFormat { get; set; }

Property Value

SaveFormat

Methods

AddPrinterFont(string, string)

Adds information about font that is uploaded to the printer by manufacturer.

public void AddPrinterFont(string fontFullName, string fontPclName)

Parameters

fontFullName string

Full name of the font (e.g. “Times New Roman Bold Italic”).

fontPclName string

Name of the font that is used in Pcl document.

Remarks

There are 52 fonts that are to be built in any printer according to Pcl specification. However manufactures can add some other fonts to their devices.