Hi,
I want to keep the layout and just to a link_to_remote to update the
div id ‘main’
Using this in the controller action
send_file “public/pdf/my.pdf”, :type => ‘application/pdf’, :disposition
=> ‘inline’, :stream => false
I get this.
The raw pdf code sent replacing the main div with :
%PDF-1.4 %ÿýÿýÿýÿý 2221 0 obj <> endobj
xref 2221 35 0000000016 00000 n
0000002153 00000 n 0000000996 00000
n 0000002322 00000 n 0000002802
00000 n 0000002914 00000 n
0000003055 00000 n 0000003191 00000
n 0000003329 00000 n 0000003443
00000 n 0000004101 00000 n
0000004129 00000 n 0000004157 00000
n 0000004780 00000 n 0000005171
00000 n 0000005199 00000 n
0000005959 00000 n 0000006629 00000
n 0000007349 00000 n
etc etc etc
Any clues?
Thanks
Bruce
On Apr 27, 2006, at 3:38 PM, bruce davison wrote:
%PDF-1.4 %ÿýÿýÿýÿý 2221 0 obj <> endobj xref 2221 35 0000000016
00000 n 0000002153 00000 n 0000000996 00000 n 0000002322 00000 n
0000002802 00000 n 0000002914 00000 n 0000003055 00000 n 0000003191
00000 n 0000003329 00000 n 0000003443 00000 n 0000004101 00000 n
0000004129 00000 n 0000004157 00000 n 0000004780 00000 n 0000005171
00000 n 0000005199 00000 n 0000005959 00000 n 0000006629 00000 n
0000007349 00000 n
etc etc etc
Any clues?
The browser doesn’t know what kind of data it’s receiving. Try :type
=> ‘application/x-pdf’
Best,
jeremy_______________________________________________
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
You wont be able to ‘implant’ a pdf like this into a page. The whole
output has to be the pdf file.
-Nick
Jeremy,
Thanks for the response
application/x-pdf doesn’t do it either … I guess the browser is
getting confused with multiple doc types … maybe iframe could help, or
just use Flex as the UI and be done with all of these problems.
Bruce
On 28/04/2006, at 8:54 AM, Jeremy K. wrote:
On Apr 27, 2006, at 3:38 PM, bruce davison wrote:
%PDF-1.4 %ÿýÿýÿýÿý 2221 0 obj <> endobj xref 2221 35 0000000016 00000
n 0000002153 00000 n 0000000996 00000 n 0000002322 00000 n 0000002802
00000 n 0000002914 00000 n 0000003055 00000 n 0000003191 00000 n
0000003329 00000 n 0000003443 00000 n 0000004101 00000 n 0000004129
00000 n 0000004157 00000 n 0000004780 00000 n 0000005171 00000 n
0000005199 00000 n 0000005959 00000 n 0000006629 00000 n 0000007349
00000 n
etc etc etc
Any clues?
The browser doesn’t know what kind of data it’s receiving. Try :type
=> ‘application/x-pdf’
Best,
jeremy_______________________________________________
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails
Ok answer my own question…
the partial _ pdf.rhtml
looks like this
This works!
Bruce
On 28/04/2006, at 8:55 AM, Nick S. wrote:
You wont be able to ‘implant’ a pdf like this into a page. The whole
output has to be the pdf file.
-Nick
On 4/27/06, bruce davison [email protected] wrote:
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails