This class can serve files for download with codes given to users. It looks up in database for codes associated to files to be made available for download to users that enter such codes in the Web site. The class serves the file associated to a code and it keeps track of the number of downloads. The files may optionally be served only a limited number of times or for a limited period of time. The class can also generate PDF documents as labels with the download codes written in them over custom logo images. The labels can be printed so they can be used to distribute the download codes to the users in printed materials.