Area measurements and scale ratios

I'm currently experimenting with the pdfviewer and have realised that when the scale ratio is applied to the area, it's just multiplying the result by that number.

This doesn't seem correct as for example, if you have an area in the form of a square where all sides are 0.1 meters then it will calculate the total to be around 0.01 square meters which is seemingly correct. Now if you apply a scale ratio of 100, the total will now be 1 square meter, which does not make much sense because the sides will now be 10 meters so the area should be 100 meters.

Is this intended behaviour? I find it strange as the area tool should reflect/compliment the use of the other tools.

There may be other problems related to the area calculations. Can you please double check this for me?

Also is there a way to have multiple scale ratios set up instead of only one for the whole document? (for example one per page)


Attachment: Area_scale_ratio_examples_46144655.7z

3 Replies

VV Visvesvar Venkatesan Syncfusion Team July 25, 2023 10:38 PM UTC

"We have verified that the areas are accurately calculated based on the scale ratio, and we have included the image for your reference."

 

 

 

The image shows rectangles that measure 0.89 square meters, and this measurement is accurate.

 

 

By right-clicking on any page, you will discover various scale ratio factors. For your convenience, the image is provided as a reference.

 

 

Please attempt this method, and if there are any available videos demonstrating the process, kindly share them for reference so that we can analyze and provide further details.

 



BH Barney Hornsby July 31, 2023 02:38 AM UTC

Hey guys,

Thanks for the reply. The problem happens when you apply a scale ratio. In the situation you provided, if you applied a scale ratio of 10, the result would go to 0.089 because it seems to just multiply the area by the scale ratio.

However, it should be multiplying the sides of the rectangle by 10 (scale ratio) first and then doing the area calculation.
So instead of:
 (0.13 * 0.07)  * 10 = 0.089

It should be:
0.13 * 10 = 1.13
0.07 * 10 = 0.70
1.13 * 0.70 = 0.89

Otherwise it will not be consistent with other non-area measurements on the page.

Hope I was able to explain what I'm trying to say.



VV Visvesvar Venkatesan Syncfusion Team August 5, 2023 08:52 PM UTC

After carefully reviewing your explanation and calculations, we confirmed that they align with the results obtained in the PDF Viewer. Additionally, we included a video in the viewer that replicates the issue for better understanding.

 

Furthermore, we kindly ask you to examine the measurements using a millimeter-scale ratio rather than a meter-scale ratio. This approach is necessary because the display in decimal places might lead to rounding off inaccuracies.

 

16.1 mm * 5.62 mm = 90.482 mm²

56.25 mm * 160.96 mm = 9055.04 mm²

 

The calculations are done as mentioned by you.

Document: https://www.syncfusion.com/downloads/support/directtrac/general/PDFSUC~2-921451492.PDF

Video: https://www.syncfusion.com/downloads/support/directtrac/general/ze/scale_ratio1736251490.zip


Kindly try this and let us know if you have any concerns.


Loader.
Up arrow icon