added PDF renderer and resource support