简体   繁体   中英

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. I'm using ABCPDF's 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ᴉ

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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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