adding graphs with pdf extension