Search code examples
phphtmldocument-view

Display document files in html


I am working on a job site where job seekers can upload their resume . When editing their profile , I want them to view their previous resume . I used <iframe> for this purpose , but instead of displaying the doc file,it shows an option to download . So how can I display their resume (in .doc,.docx and .odt format)


Solution

  • You can use php's fopen function, however there is a lot of unwanted code within a word doc file. Maybe a quick search could help you with what you want:

    Reading/Writing a MS Word file in PHP

    It would require a lot of effort. best bet is to create a wysiwyg editor instead of an upload that they can copy and paste to