Add the ability to create pdf from existing files

Add the ability to create pdf from existing files in the filesystem.
This prevent previews double handling where the existing html file have to be convert it to a string and then pdf_to_string method would convert this string to a temp file to be converted to pdf.w