i think what you are trying to ask is a barcode scanner.
because if it was a document, you can manually scan it using scanner/printer and save the pdf.
in case of barcode, you need to buy a barcode reader.
it has same functionality as a keyboard, so whatever you click to scan
will be recognized...