has your initial study permit/visa already expired ? If so, then you should leave Canada voluntarily and apply for PGWP from outside Canada. If your initial leave to remain is still valid then go ahead and file an in-country PGWP application.
I am not 100% confident of my opinion, so do check...