You don't. We force downloading the raw views for security reasons. Specifically with HTML you can have problems where the JavaScript in the page within the security context of the Trac URL. There is no good cross-platform way to embed a PDF, as I already said. The way to do PDF previews would probably be to render to an image or flash file a la slideshare or google docs.
--Noah On May 24, 2009, at 7:38 PM, Ariel Balter wrote: > Here is a link to a PDF file: > http://myotherstuff.org/share/browser_test.pdf > When I paste that in my browser (latest FF), the PDF file opens in > my browser. > > Also, here is a link to an HTML file with a link to the above URL. > http://myotherstuff.org/share/browser_test.html > When I click on the link, FF opens the page in my browser. > > How can I get Trac to do that with PDF files? > > Thanks, Ariel > > P.S. Just tested in IE with same behavior. > > Noah Kantrowitz wrote: >> >> No, there is no cross-browser way to offer such a thing without >> rendering the PDFs to an image or something (which brings up its own >> portability issues). >> >> --Noah >> >> On May 24, 2009, at 12:10 PM, abalter wrote: >> >> >>> When you view an attached PDF file you get the "HTML preview not >>> available" message, and the suggestion to "Try downloading the file >>> instead.". >>> >>> Is there a way to make it so that pdf's try to open in the browser >>> window as they do when they are simply web files? >>> >> >> >> > > -- > /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ > > Ariel I Balter, Ph.D. > Postdoc > Biological Monitoring/Modeling > Fundamental and Computational Sciences Directorate > > Pacific Northwest National Laboratory > Mail: > PO Box 999, MS P7-58,Richland, WA 99352 > Shipping: > 790 6th Street, MS P7-58, Richland, WA 99354 > > Tel: 509-376-7605 > Cell: 509-713-0087 > [email protected] > www.arielbalter.com > www.pnl.gov > > > > <ariel.vcf> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
