I made a little mistake...
Actually I want to convert the document to .pdf first and whenever a user wants to download that document, a password (his user_id + version_id) is being enhanced to the existing .pdf!
The user downloading the .pdf will have to type in his user_id + version_id in order to open the .pdf...