[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



To deliver it, use the right content types 
header('Content-Type: application/pdf; name="report.pdf"');  
header('Content-Disposition: attachment; filename="report.pdf"');
(where header() is however j2ee presents headers to the browser)
and output the pdf. 

Good luck.

jenn

On 31 Mar 2004, Chris Fowler wrote:

> I'm creating a J2EE app in which the user can generate reports.  I want
> to generate a report in HTML format and store in /tmp as temp file.  I
> then want to somehow convert that to PDF maybe I have to go the PS
> first.  
> 
> After I do that I will send their browser headers that indicate I'm
> sending them a file.  The will then be prompted to save to disk or load
> in Acrobat or in our (ale.org) case xpdf.
> 
> Any pointers?
> 
> _______________________________________________
> Ale mailing list
> Ale at ale.org
&gt; <a  rel="nofollow" href="http://www.ale.org/mailman/listinfo/ale";>http://www.ale.org/mailman/listinfo/ale</a>
&gt; 
&gt; 

-- 
Jenn Taylor
jtaylor at onlinea.com

------------------------------------------------------------------------
Obviously, a man's judgement cannot be better than the information on which he
has based it.  Give him the truth and he may still go wrong when he has
the chance to be right, but give him no news or present him only with distorted
and incomplete data, with ignorant, sloppy or biased reporting, with propaganda
and deliberate falsehoods, and you destroy his whole reasoning processes, and
make him something less than a man.
-- Arthur Hays Sulzberger



</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="01156" href="msg01156.html">[ale] HTML -&gt; PS -&gt; PDF</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Chris Fowler)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg01158.html">[ale] HTML -&gt; PS -&gt; PDF</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg01160.html">[ale] HTML -&gt; PS -&gt; PDF</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg01158.html">[ale] HTML -&gt; PS -&gt; PDF</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg01160.html">[ale] HTML -&gt; PS -&gt; PDF</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#01159"><strong>Date</strong></a></li>
<li><a href="threads.html#01159"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>