Aspose.Words for Node.js via .NET can help you with how to convert between measurement units, for example, inches to points and points to inches, pixels to points, points to pixels....and various distances, accept values in points, where 1 inch equals...pixelToPoint with the pixel value and the DPI you want to use...