We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Creating Rectangle From Height Widht x and Y

Hi
I am not be able to create the rectangle as i am having data like

X,Y,Height and Width

so how can i transform this into llx lly yrx and ury and create Exact rectangle

i am having Point like this

X=403
y=585
Width=171
Height=51

and i am calculating
double llx = x;
double lly = y - height;
double urx = x + width;
double ury = y ;

But it will not Giving me the exact rectangle Text so please help me with that


Thanks
Chintan Savariya

Hi Chintan,


Thanks for your inquiry. Please note Aspose.Pdf page origin is left bottom(0,0). So rectangle coordinates of page will be x=0,y=0,urx=page width and ury= page height. So coordinates of your rectangle will be as following.Furthermore, please note Aspose.Pdf measuring unit is point and where 1 inch = 72 points and 1 cm = 1/2.54 inch = 0.3937 inch = 28.3 points.

llx=x;
lly=y;
urx=x+width;
ury=y+height;

Please feel free to contact us for any further assistance.

Best Regards,