A method of recording data in a data storage medium affixed to a document,
the document having a document ID printed thereon and the data storage
medium having the document ID stored therein, the method comprising
capturing data written onto the document by means of a digital pen, the
digital pen having an imaging system, determining, by means of the
imaging system of the digital pen, the document ID printed on the
document; comparing the document ID determined by the digital pen with
the document ID stored in the data storage medium and on if there is a
match transferring the captured data from the digital pen to the data
storage medium.