Scanning documents is possible through the Google Drive app, but my brain is not thinking of opening a cloud storage app to scan a document. I usually just open the camera app and take a picture instead – and apparently I'm not the only one.
Google has added a feature to Pixel's Camera app (all pixel models with Google Camera Version 7.2 ) that allow you to scan documents without taking a photo. Once documents (a piece of paper, a business card, etc.) have been detected, the document can be scanned. After scanning, you can share it with either a cloud service or others via e-mail or a messaging app.
Open the default camera app and align the viewfinder with a document that you want to scan. You should be in a well-lit location for the camera to identify the document. You also want to get as close to the subject as possible while leaving the edges in the viewfinder.
A button asks if you want to scan the document. Touch this button. After a second or two, you're taken to a new page where Google Lens displays a grid that suspects the edges of the document. You can adjust the corners by drawing the circles and lines to match the edges of the document.
After adjusting, select "Done" in the lower left corner of the screen. Two new buttons are displayed: "share PDF" and "share image". The former converts the scanned document into a PDF file that you can share with other apps, including cloud services (where you can save it) or messaging apps (where you send it to someone). The latter offers the same sharing options, but converts the scanned document into an image file.