resolves #267 how to convert to pdf