How can I print a document using a token?