logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Post a reply
From:
Message:

Maximum number of characters in each post is: 32767
Bold Italic Underline   Highlight Quote Choose Language for Syntax Highlighting Insert Image Insert an existing Attachment or upload a new File... Create Link   Unordered List Ordered List   Left Justify Center Justify Right Justify   Outdent Indent   More BBCode Tags
Font Color Font Size
Security Image:
Enter The Letters From The Security Image:
  Preview Post Cancel

Last 10 Posts (In reverse order)
rhnatiuk Posted: Friday, June 14, 2019 2:43:40 AM(UTC)
 
You are a genius! And we are, obviously, dumb! :D Thank you!!!
Paul Rayman Posted: Friday, June 14, 2019 2:06:09 AM(UTC)
 
What do you mean under bounding box, the quadrilateral like this:
quadrilateral
or rectangle with coordinates (left/top) - (right/bottom) (x4, y3) - (x2,y1)

There is no easy way to get quadrilateral of rotated text object, but you can calculate it.
I can suggest the following workaround:
  1. Create clone of TextObject;
  2. Rotate it to the angle that is opposite to the angle of the source text object;
  3. Get bounding box of this text object;
  4. Rotate the bounding box to the original angle;
rhnatiuk Posted: Friday, June 7, 2019 3:03:47 AM(UTC)
 
Hi,

Yet another noob question :)

Is it possible to find out the rotated bounding box of a rotated PdfTextObject? By "rotated" bounding box I mean a bounding box aligned with the rotated text, i.e. that is rotated by the same angle.

Our old PDF library was able to produce such a bounding box, but I cannot figure out if it is possible with Pdfium.Net.

Best regards,
Roman