Mirroring of PDF text

Asked

Viewed 157 times

0

I am trying to invert a text so that the mirrored text is saved in the PDF; however, I was unsuccessful, I tried in several ways and what made more sense was to rotate 360º and invert, but the text did not change. .. I also tried to turn 180º and it didn’t work, I need this mirroring, because when printing the printer reverses all the content, so I already have to send it reversed 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);

Final result -> ʇxːʇ ːɥʇ ʇɹːsuᴉ

  • If your printer prints reversed, don’t just flip the sheet?

  • the PDF is generated normal, and the printer prints reversed because the photo will be pasted on a shirt, there is other information in the print such as size, date and etc that it is necessary to read, no matter what when you turn the sheet Voce will not be able to read what is legible written

  • Put <p style="Transform: scaleX(-1);">05/02/2019 14:44 White shirt - M</p> in some html and tell me if it will be possible to read the information on the screen.. this is my problem, for the resolution I need it to be sent "wrong" to the printer that it will make the correction reversing the content.

1 answer

1

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

Tip for the people of the future, if they are to answer with ignorance, do not comment, we have all been beginners one day, if we are having difficulty in X thing do not answer with obvious things about the human world, we are here for codes and not solutions like "Just don’t print reversed".

Grateful.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.