I need to know if it's possible to round only two corners of a rectangle in fpdf, I've been researching and couldn't find a way to do it. I have the following code:
$pdf->RoundedRect(10, 230, 15, 15, 3, '0.5', 'DF');
And what I need is to round only 2 corners. I don't know if this would be possible, I would really appreciate your help.
The RoundedRect function has a $corners parameter that allows you to do this. It is a string with values 1, 2, 3 or 4, where:
1 = top left
2 = top right
3 = bottom right
4 = bottom left
You can combine them. For example:
will create a rectangle with rounded top left and bottom right corners