Add metadata to pdf file upon conversion

i convert doc files in PDF via command line in Linux from my application using java runtime execute and need to add some info as name of Author and file name to metadata in PDF
how can i do it using?
which command can help me?