What I thought to develop is to write a JDBC connection in the Stan-alone PDF template and access database.
example: PDF is designed in such a way that it should have "USERNAME" , "PASSWORD" , "LOGIN BUTTON" , so that PDF stand-alone template on every desktop should access the database on entering the correct credentials.