PclSaveOptions.AddPrinterFont
PclSaveOptions AddPrinterFont method. Adds information about font that is uploaded to the printer by manufacturer.
PclSaveOptions.AddPrinterFont method
Adds information about font that is uploaded to the printer by manufacturer.
public void AddPrinterFont(string fontFullName, string fontPclName)
Parameter | Type | Description |
---|---|---|
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.
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