In the event that even after disabling the paper sensor, you still receive paper size errors from canon printer you can try the following setting.
There are 2 methods described in this article.
For systems that have elevated permissions try method 2
Checking the default settings
go to printer properties.
then go to Profile.
click on Default and click on View Setting. scroll down to check on the detect paper size.
Method 1
the value is different when you go into printing preferences.
you will create your own profile.
give the profile a name
change it to single side printing
then click on advanced setting and change the detect paper size to off.
you can confirm your setting by clicking the profile then view settings.
Next click on Printer preference and change the profile to the profile you just created.
you can check that your settings have been applied by doing a test print. you select the printer and you click on preference the default profile selected should be the profile you created.
Method 2
Go Printer properties -> Advance -> Printing Defaults
click Finishing -> Advance settings -> Detect paper size -> off
Click Add , then give the profile a name
Click on View setting to verify that it is saving the correct settings.
if you had done method 1, you will see 2 new profiles.
set the profile without the red dot.
Click Apply.
before printing do a check to see that you are using the profile you created.