Checking an uploaded file’s sheet size in inches

Hello!

I am wondering if anybody knows of a way to check for the file size (in inches) of a specific document?

For ex, I need to check if a file given to me is exactly “36.0 x 24.0” inches.

Thank you!

Hi @BotMan24,

I’m assuming the file is an image that will be used for printing. You will need to have the height and the width in pixels of the file then divide it by 300 which is the standard ppi for photo printing, that will return the approximate inch dimensions.

If you don’t know it, that’s another story. I found a vb snippet in a popular dev website (not my code, didn’t test).

Get image Width and Height with VB.Net - Stack Overflow

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.