I am trying to create a page that directly dispalys the content of a PDF file stored as a BLOB in some table. I was able to do that using a link that shows the regular pop-up confirming if I want to save file or open directly, this works fine, but it is not what I want. I want to directly display the content of the pdf without needing to click on anything or save file.
I am pretty sure I am using the right code, but it is not showing the content of the file correctly, it shows ascii symbols instead such as:
Just trying to help here.. afaik, you'd have to wrap the data in an object tag (not sure if you could do it without it being a cached file on the client already..) so that the browser knows to invoke the adobe reader control IN the browser.. something like what is described here: http://stackoverflow.com/questions/2740297/display-adobe-pdf-inside-a-div
In the end, I think you'd get results using an IFRAME tag to hold the pdf code/pdf data inside the apex region you're working with.