You can apply for a TRV (Temporary Resident Visa) from within Canada if you meet the following criteria:
You must follow the process to apply for a visa from outside Canada instead of applying from within Canada.
You may face:
You can only return once you have received your new visitor visa.
Once your application to extend your work or study permit is approved, you can apply for your visitor visa. You’ll need to provide proof of approval, such as: