Checking out a document reserves it for your exclusive use. This ensures that you can edit the document without anyone else changing the document and placing it into the document management system.
{assign var=iDocumentId value=$context->oDocument->getId()}If you do not intend to edit the document, and you do not wish to prevent others from changing the document, you should cancel this checkout.