SynPDF
SynPDF copied to clipboard
Diacritical Thai characters not displayed correctly
The term ชื่อบุคคลติดต่อ (copied from the software, so same UTF8 representation) looks correct on screen and prints correctly to a PDF when I use Microsoft PrintToPDF, but when using SynPDF, its PDF result is ชือบุคคลติดต่อ on screen and on paper. Another example is
การบ่งชี้สารเดี่ยวหรือสารผสม -> การบ่งชีสารเดียวหรือสารผสม
So I am quite sure it is not a font issue. Any ideas how I can get correct results?
DId you enable Uniscribe rendering in SynPDF?
Yes - this is the initializaton code:
FPdf := TPdfDocumentGDI.Create(True, 0, True);
FPdf.GeneratePDF15File := False;
FPdf.CompressionMethod := cmFlateDecode;
FPdf.EmbeddedTTF := True;
FPdf.EmbeddedWholeTTF := False;
FPdf.StandardFontsReplace := False;
FPdf.UseUniscribe := True; // http://blog.synopse.info/post/2010/05/06/Synopse-FPdf-engine-1.7.2
FPdf.ScreenLogPixels := Screen.PixelsPerInch;