Saving report to PDF

edited 6:38PM in FastReport.Mono
Upgraded my application to the latest Mono DLL 2016.1.0.0, but now get a "Font parsing error". The Reports and application work fine with the previous older Mono DLL. Anyone seen this? Thanks...

Comments

  • Hello!

    If the report uses standard fonts (Arial, Times New Roman, Courier), which users are guaranteed to have, disable embedding:

    using (var pdf = new FastReport.Export.Pdf.PDFExport())
    {
      pdf.EmbeddingFonts = false;
      report.Export(pdf, ‘output.pdf’);
    }
    

    In the report designer, select the text objects and replace any non-standard fonts with standard TrueType fonts (DejaVu Sans, Liberation Sans, Arial). Ensure that the font files have the .ttf extension, rather than .otf or .ttc.

    In the latest versions of FastReport.Core\FastReport.Core.Skia, the font parser has been completely modernised, with support for OpenType/CFF fonts and rendering via SkiaSharp now implemented, which eliminates parsing errors.

This discussion has been closed.