...I was just confused because file with same dimensions in cm allows me to create bigger or smaller rectangle depending on ppi...
Well that cannot happen unless you are re-sampling the document....adding or removing pixels.
You have to appreciate that a digital image consists of pixels and has NO linear measurement such as cm, inches, miles, gigaparsecs whatever.
The dimensions you see, (in cm), are the PRINT size and are CALCULATED from the pixels AND the erroneously named dpi value.....it should read ppi.
As such, changing ANY one of those means that at least ONE of the others also has to change to compensate.
If you keep the number of PIXELS constant and change the PPI then its PRINT size also has to change.
If you keep the number of PIXELS constant and change the PRINT size then the PPI also has to change.
If you keep the PPI constant and change the PIXELS then the PRINT size has to change.
If you keep the PPI constant and change the PRINT size then the number of PIXELS has to change.
If you keep the PRINT size constant and change the PIXELS then the PPI also has to change.
If you keep the PRINT size constant and change the PPI then the number of PIXELS also has to change.
You see how it works?
Ideally when creating a new document you should already know if the document is to be finally printed.
You should therefore set up your document with that in mind and if so base all your parameters off the ppi setting....by either then...
1. Entering the number of PIXELS and have PS calculate the PRINT size....OR...
2. Enter the PRINT size and let PS calculate the number of PIXELS....this is the usual approach.
If OTOH you know for sure that the image is ONLY ever going to be displayed in a digital format, ie, on an lcd screen then you can ignore ppi altogether.....it makes no difference.
The exception to that is that you could use it to re-sample an image. This shouldn't happen with a new document as it should have been set up correctly but may be required if working on an existing document which was never intended for print.
Setting up the document correctly from the start should mean that you would never even attempt to create something bigger than the canvas you have to work on....you wouldn't try to draw an A3 image on an A4 piece of paper so why do it in PS?
Does that shed any more light?
Its a fairly simple concept but not an easy one to explain,......not concisely anyway....sorry.
Regards.
MrToM.