Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Finding rotation of degrees of text

$
0
0

Hi Test Screen Name,

Yes correct i went wrong in above.


The below calculation i have done now as per your guidance,kindly help where i went wrong?


(blx,bly) to (brx,bry)

String is Work[refer image] i am getting below values as


blx-81

bly-325

brx-149

bry-337


sprintf(xvalalerte,

"blx%-d,bly::%d,

brx::%d,bry::%d",

ASFixedRoundToInt16(cQuad.bl.h),ASFixedRoundToInt16(cQuad.bl.v),ASFixedRoundToInt16(cQuad. br.h),ASFixedRoundToInt16(cQuad.br.v));


After above values what i should need to do i have getting incorrect values.It will be greatly helpful if i get calculation instructions.


:::::::::::::::::::::::::::::::::::::::::::~~~~~~~~~~~~~~~~~~~:::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::


For Reference i done manual calculations

I manually work out based on 1 inches and 24 pixels[72/3] for string work


values on

width of word [7*24]-168

values on

height of word ,slanted as 30px from W char to k char from horizontal bottom


if i do manual 30/168=>.178

double deg= (.178) * (180 / Math.PI);=>10



The Output should be 10degree or -350degree

PDF height:768px,width:1024px

verify.jpg


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>