I want to create an online pdf library. Is there any free solution exist, CMS or something?
It should allow to upload pdfs, search documents and download them
You can use Google Docs API to handle this (upload, search and download). The server side code can be pretty minimal thereafter.