How can I open pdf file into browser? |
[eluser]suba[/eluser]
Hi all, am using DOMPDF. I don't want to open pdf file like as attachment file. I want to open pdf file inside the browser? So How can i get this result? Thanks for your assist. Thanks.
[eluser]egunay[/eluser]
Don't you need a PDF reader that has a plugin for the browser that you are using. For example I'm on Chrome and using Adobe Reader. When I try to open a pdf file it opens directly in my browser. Hope this is what you are asking.
[eluser]suba[/eluser]
hi , Thanks for your reply. Exactly am not asking this. am using DOMPDF Plugin to create PDF file. When I open browse my controller, pdf file has opened like attachment file. but I don't want to open like as attachment my file. Last time I used FPDF plugin. This plugin has two option one is attachment and one is browser. I want to use like FPDF plugin. What are option are available in DOMPDF? and How can I setup ? Please advise.
[eluser]egunay[/eluser]
Oh! Sorry about that, I didn't see the DOMPDF part. To tell the truth, unfortunately I don't have any idea as I didn't use DOMPDF before but I've done a quick search and came up with the offical FAQ of DOMPDF. http://www.digitaljunkies.ca/dompdf/faq.php#new_window Hope it works for you
[eluser]suba[/eluser]
Hi egunay, Thank you so much. You sent me correct link. Code: http://www.digitaljunkies.ca/dompdf/faq.php#new_window Exactly I was looking this result. Thanks for assist. I solved my problem using this link. Thank you & appreciate you.
[eluser]Unknown[/eluser]
Specifically, the code would this Code: $this->dompdf->stream("welcome.pdf", array("Attachment" => 0)); |
Welcome Guest, Not a member yet? Register Sign In |