The Digital Library of India initiative has scanned and placed online, over 5,30,000 books on various subjects. They are available free of cost from the website of Digital Library of India and its mirror sites – http://220.127.116.11/, http://www.new1.dli.ernet.in/ and http://www.new.dli.gov.in/ where these books can be viewed as scanned images. Digital Library of India has recently launched a new site where books can be directly downloaded in PDF format.
More than 50,000 books touch upon Indology, Sanskrit literature and Hindu religious texts, including the Vedas and other scriptures. A lot of them are rare and not available elsewhere and come from University libraries like the TTD/RSVP Sanskrit university at Tirupati, Sringeri Math etc. You can directly get neatly formatted Adobe PDF books using the software, DLI Downloader hosted at https://code.google.com/p/dli-downloader/.