APM: PDF::API2

Tom Bakken tom.bakken at tx.usda.gov
Thu Oct 30 09:21:22 CST 2003


Bill,

I found my problem was that I hadn't included the proper header with the
document type of 'application/PDF'.  I also included a refresh of 1 second
for it to display properly in my browser.

Thanks for your help.

Tom Bakken


-----Original Message-----
From: Bill Raty [mailto:bill_raty at yahoo.com] 
Sent: Wednesday, October 29, 2003 11:34 AM
To: Tom Bakken
Subject: Re: APM: PDF::API2


Tom,

>From the doc (I haven't actually -used- the module before) I see on
search.cpan.org it looks like you can create the object without a file spec
with the 'new' constructor, then get the contents via the 'stringify'
method.

At the simplist you'd need your CGI/mod-perl/etc. to use the correct Mime
type before outputting the data from the stringify
method.   If that doesn't work you'd probably need to resort to
a multipart mime format.

-Bill

--- Tom Bakken <tom.bakken at tx.usda.gov> wrote:
> I just installed PDF::API2.  I created a valid pdf document.
> Works great.
> Then I wanted to be able to display perl generated PDF
> directly to the
> browser from my Apache web server without creating a
> temporary pdf file, but
> I don't know how to configure things to do that and the
> documentation
> minimal.  Also can't seem to find a man or perldoc entry
> after installation.
> I'm probably just looking in the wrong place.
> 
> Anybody know how to do this, and/or where to find some good 
> documentation?
> 
> Tom Bakken
> 
> _______________________________________________
> Austin mailing list
> Austin at mail.pm.org
> http://mail.pm.org/mailman/listinfo/austin


=====
"There let the pealing organ blow, 
To the full-voiced choir below, 
In service high, and anthems clear, 
As may with sweetness, through mine ear, 
Dissolve me into ecstasies, 
And bring all Heav'n before mine eyes". 
John Milton - Il Penseroso (1632).




More information about the Austin mailing list