简体   繁体   English

使用 ABCPdf 镜像字母

[英]Mirroring letters using ABCPdf

I am trying to invert a text so that the mirrored text is saved in the PDF, however, I was not successful, I tried in many ways and what made the most sense was to rotate 360º and invert, but the text has not changed ... I also tried to rotate 180º and it didn't work, I need this mirroring because when printing the printer inverts all content, so I already have to send it inverted so that it can be printed legibly.我正在尝试反转文本,以便将镜像文本保存在 PDF 中,但是,我没有成功,我尝试了很多方法,最有意义的是旋转 360º 并反转,但文本没有改变。 .. 我也尝试旋转 180º 但它没有用,我需要这种镜像,因为在打印打印机时会反转所有内容,所以我必须将其反转发送,以便可以清晰地打印。 I'm using ABCPDF's XTranform我正在使用 ABCPDF 的 XTranform

theDoc.Transform.Rotate(360, theDoc.Rect.Left, (theDoc.Rect.Bottom + theDoc.Rect.Width));
theDoc.Transform.Invert();
string textoPdf = "INSERT THE TEXT");
theDoc.FontSize = 8;
theDoc.AddText(textoPdf);

Example final result -> ʇxǝʇ ǝɥʇ ʇɹǝsuᴉ示例最终结果 -> ʇxǝʇ ǝɥʇ ʇɹǝsuᴉ

Solution:解决方案:

theDoc.Transform.Magnify(-1, 1, theDoc.Rect.Left, (theDoc.Rect.Bottom + theDoc.Rect.Width));
theDoc.Transform.Invert();
string textoPdf = "INSERT THE TEXT");
theDoc.FontSize = 8;
theDoc.AddText(textoPdf);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM