Add test for content-type of pdf
Add API to readme