Fixed a couple of pdf download issues.
Added capability to insert the download pdf as text back into the database.