Replies: 4   Views: 3176
Convert to pdf and view it in the browser instead of download
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 07-11-2016 - 10:54


You can use this header:

Content-Disposition: inline; filename="filename.pdf"

Or if you set it as a link tag all browsers should open it instead of download the file.