Welcome to the ASP.NET Core feedback portal. We’re happy you’re here! If you have feedback on how to improve the ASP.NET Core, we’d love to hear it!>
Thanks for joining our community and helping improve Syncfusion products!
Is it possible to support conversion from a PdfPath to a PdfPolygon, given a value indicating the 'precision' for converting curves in the path to line segments?
My use case:
I have code that needs to be drawn inside non-rectangular bounds, and avoid simply clipping.
The code is supplied with a PdfPath, which will also be drawn around the content. As I wish to draw inside it, instead of drawing inside the RectangleF returned by PdfPath.GetBounds, and then clipping it, I need an object that defines and lets me read the approximate non-rectangular bounds of the path I need to draw in, which a PdfPolygon could give me, but a PdfPath can't. ( the distance of points/number of segments on one curve/arc in the path could be dependent on the angle/radius combined with a given input value, when converting them to line segments for the polygon)
I added simple example using an ellipse path with text inside to illustrate (aiming to achieve the right figure, not the left by determining for each Y value what the left and right X bounds are - I already have code that can do that, but can't get that information from a PdfPath, only from a polygon)
Thank you