feature #4609 : Using the same code for previewing documents, versioned or not.