Fetch and PDF

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Fetch and PDF

Post by Thunderstone »



I would like to Fetch a pdf file and then
present it on the screen inside the adobe plug-in.

Can this be done?

---------------------------------------------------------------
Larry Rudner mailto:rudner@ericae.net
ERIC Clearinghouse on 800 464-3742
Assessment and Evaluation 301 405-7449
1129 Shriver Laboratory
College Park, MD 20742 http://ericae.net


User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

Fetch and PDF

Post by Thunderstone »



When you say present it on the screen, I assume you mean send it back
to the user's web browser to display. So it would ultimately appear as
if the PDF from another webserver came directly from your server.

Use something like

<fetch THEPDFURL>
<fmt "%s" $ret>

You just need to use the ".pdf" extension instead of ".html" on your
texis url to get the mime type set correctly. If you're using the main
function with no extension, you'll need to use the <header> command so
set the correct mime type. See
http://www.thunderstone.com/site/vortexman/node101.html

<header name="Content-Type" value="application/pdf">




Post Reply