When I took a US ferry to Canada, Canada border officials were on the boat so we could do all the paperwork before we arrived.