Re: .pdf files in a perl cgi application?

2007-04-24 Thread David Dorward
On Tue, Apr 24, 2007 at 08:58:52AM -0700, Mary Anderson wrote:

>> (Please keep this on the mailing list)

No, really. Please keep this on the mailing list. You do that by
emailing beginners-cgi@perl.org rather than my private address.
 
> Its not a cgi "macro image" but a "cgi macro" image.

Oh. The img method of the CGI object.

> Just the image function that expands into the html  tag.

That's an HTML issue, not a CGI issue.

PDF files aren't images, and aren't supported by browsers as images.

> It won't accept .pdf files.

No, you could try an object element, but PDFs are not nice things to
view in a browser window at the best of times, embedded inside a tiny
frame in a page - eugh.

> Is there anyway the user can download a file through the web without
> opening it?

They can configure their client to not use the plugin.

You could also look at sending a content disposition of
attachment. http://www.ietf.org/rfc/rfc2183.txt

-- 
David Dorward  http://dorward.me.uk


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: .pdf files in a perl cgi application?

2007-04-24 Thread David Dorward
(Please keep this on the mailing list)

Mary Anderson wrote:

> All I do with the files is to display them using the cgi.pm macro
> image.  Then the user can download them.  Do you know if this also works
> with a pdf file?  

What is a "macro image"? The phrase does not appear it the CGI.pm
documentation ( http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm ).



-- 
David Dorward   

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




Re: .pdf files in a perl cgi application?

2007-04-23 Thread David Dorward
Mary Anderson wrote:
>I have successfully put .gif, .jpg , etc. images into my application.  A
> user has just sent me some .pdf files, which must be read with Acrobat
> Reader, I assume.

No, there are plenty of libraries for dealing with PDFs that are not
Acrobat Reader.

>  How would I work these into my application?

In what sense? There are plenty of things you /could/ do with PDF files
in a CGI app. What do you actually want to do?

-- 
David Dorward   

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/




.pdf files in a perl cgi application?

2007-04-23 Thread Mary Anderson

Hi all,
   I have successfully put .gif, .jpg , etc. images into my application.  A
user has just sent me some .pdf files, which must be read with Acrobat
Reader, I assume.  How would I work these into my application?

Thanks
Mary

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/