Embedded font in PDF problem (FR 2019.2.xx)
Hello guys,
I have some strange problem with font while PDF generating.
I'm using font "Code39 15" to print some barcodes.
After upgrade to FastReport 2019.2.xx I have a problem, that the font isn't probably embedded or something is wrong and Adobe Reader throws an error, that the font cannot be found or created. The output then shows some dots instead of barcodes.
I tried to set "EmbeddingFonts" property manually, but it doesn't help.
FastReport.Report report = new FastReport.Report();
report.Load(inputPath);
...
report.Prepare();
FastReport.Export.Pdf.PDFExport pdfExport = new FastReport.Export.Pdf.PDFExport();
pdfExport.EmbeddingFonts = true;
report.Export(pdfExport, outputFileName);
In previous versions (< 2019.x.x) I had no problem like this.
Any idea? Thanks for replies.
I have some strange problem with font while PDF generating.
I'm using font "Code39 15" to print some barcodes.
After upgrade to FastReport 2019.2.xx I have a problem, that the font isn't probably embedded or something is wrong and Adobe Reader throws an error, that the font cannot be found or created. The output then shows some dots instead of barcodes.
I tried to set "EmbeddingFonts" property manually, but it doesn't help.
FastReport.Report report = new FastReport.Report();
report.Load(inputPath);
...
report.Prepare();
FastReport.Export.Pdf.PDFExport pdfExport = new FastReport.Export.Pdf.PDFExport();
pdfExport.EmbeddingFonts = true;
report.Export(pdfExport, outputFileName);
In previous versions (< 2019.x.x) I had no problem like this.
Any idea? Thanks for replies.
This discussion has been closed.
Comments
Hello!
Instead of the Code39 15 font in TextObject, use the built-in BarcodeObject vector component with the Barcode39 type (BarcodeObject renders barcodes using PDF vector graphics and does not depend on fonts installed on the client or in Adobe Reader).
If you specifically need a font, update FastReport .NET to the latest version 2027.1.x or test the behavior with EmbeddingFonts disabled or using a different Code39 TTF font.