Search code examples
c#fastreport

getting error on export to PDF in fast report


when I open designer and simply bring a textbox then write a few words in it in Kurdish(somehow similar to Arabic characters). when I go to file-> preview its okay as in the figure

enter image description here

but when I go to SAVE and export to PDF I get 15 problems such as in the figure

enter image description here

of problem(font table checksum error)

Table ID "cvt" checksum error Table ID "PCLT" checksum error Table ID "cmap" checksum error Table ID "name" checksum error Table ID "hmtx" checksum error Table ID "maxp" checksum error Table ID "cvt" checksum error Table ID "post" checksum error Table ID "OS/2" checksum error Table ID "prep" checksum error Table ID "head" checksum error Table ID "fpgm" checksum error Table ID "hhea" checksum error Table ID "glyf" checksum error


Solution

  • I had a similar issue in Delphi, found this solution:

    In ExportPack\frxTrueTypeCollection.pas, replace

    ChecksumFaultAction_Warn

    with

    ChecksumFaultAction_IgnoreChecksum :

    Line 124:

    f := TrueTypeFont.Create( Pointer(FD), Pointer(FD), ChecksumFaultAction_IgnoreChecksum);
    

    Line 143:

    f := TrueTypeFont.Create(FD, subfont_ptr, ChecksumFaultAction_IgnoreChecksum);
    

    I guess for C# it should be very similar.