added PDF support