WPCubed Product Support

Incorrect special symbols export

wpsupport

In your case you use *wpe*as a name. Of course it is either TWPDFExport or TWPPDFPrinter.

#6 ♥ 0
5.4k Views 5 links 2 users read 2 min

I have installed wPDF4 purchased in 2018 but there is no "wPDF" component there, just "TWPPDFProperties" and "TWPPDFPrinter" while I use "TWPDFExport".

#5 ♥ 0
wpsupport

I was referring to wPDF V4 which was released on 19.3.2014

#4 ♥ 0
wpsupport

If you have a special font you can add its name to the list Type3Fonts. It will then be embedded as a glyph. This should help for the symbols.

#2 ♥ 0

I'm using a custom font special symbols in TWPRichText (twp in code below) document

🖼 wpdf_0.png (cosmic-matrix.com)

When I export this document with following code

var WPE: TWPPDFExport;
 
WPDF_Start(WPToolsUser, WPToolsPass);
twp.ReformatAll(true);
wpe.Source:= twp;
wpe.AutoLaunch:= TRUE;
wpe.Filename:= fn;
WPE.Print();

I get a PDF file that looks correct in case in Windows region settings the language for non-Unicode programs is set to English or Russian,

🖼 wpdf_1.png (cosmic-matrix.com)

but if a customer's computer has language for non-Unicode programs set to Japan,

the special character are displayed incorrectly like it uses absoluteley another font.

🖼 wpdf_2.png (cosmic-matrix.com)

I was trying all available FontMode properties in PDF component but have no luck.

#1 ✎ ♥ 0