PclSaveOptions.FallbackFontName

PclSaveOptions FallbackFontName property. Name of the font that will be used if no expected font is found in printer and builtin fonts collections.

PclSaveOptions.FallbackFontName property

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

Remarks

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

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