Fix PDF conversion and file opening under Windows