How to make an app that makes templates So that it can be printed?

Hey guys,I wanted to know how we can make an app that can make a definite length shape,like 5cm width and 10 cm length rectangle and that can be printed with the same dimension so we can cut it out after printing?