A metafile with text enclosed in double asterisks is not correctly converted to PDF using PlayEnhMetafile(WPPDFPrinter1.Canvas.Handle,pMetaFile,aRect). The text is rotated 180 deg and the font size is greatly increased.
text bracketed with double asterisks "** text **"
-
-
- Offizieller Beitrag
wPDF does not preprocess the text. I assume there is some other code interfering.
-
The problem must be in PlayEnhMetafile. I'll see what I can spot there. - Thanks
-
- Offizieller Beitrag
Please simply use DrawMetafile or DraTGraphic
wPDF can take a metafile a and convert it. It is not necessary to play it on its canvas.handle.
-
I had tried
WPPDFPrinter1.DrawMetafile(0, MFParams.POrgEx, pMetaFile);
but
aCanvas.Font.Orientation := -900;
rotated -90deg when the enhmetafile was viewed but rotated +90deg when it was wPDFed so I went looking for another way to get it to wPDF. PlayEnhMetafile produced PDFs with text rotated same as a viewer, but the quirky little ** text ** problem appeared.
i just try DrawTGraphic per your suggestion - same results as DrawMetafile. Thanks for the support.