new version with pdf example