我正在尝试反转文本,以便将镜像的文本保存在PDF中,但是,我没有成功,我尝试了很多方法,最有意义的是旋转360º并反转,但是文本没有改变了...我也试图旋转180º,但它不起作用,我需要此镜像,因为在打印打印机时,所有内容都将反转,因此我已经必须将其反转发送,以便可以清晰地打印。我正在使用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);
示例最终结果->ʇxʇɹǝsuʇɹǝ
解决方案:
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);