I tried it , it works, but I have one great suspicion:
Will it work even on remote server ?
response.sendRedirect(outPDF); // outPDF is C:/Program
Files/Apache Tomcat 4.0/Fop/TMP.PDF
I have Tomcat and browser on one PC . Doesn't the browser thus open the PDF
file directly, bypassing
Hi,
your PDF file has to be accessible for tomcat, for example:
Imagine your web application is stored under
%TOMCAT_ROOT%/webapps/yourapp
Then your PDF file has to be somewhere in your 'yourapp'
directory. It is the same as html pages: you referene them
(e.g. in html) with a href=foo.html -
[EMAIL PROTECTED] wrote:
I tried it , it works, but I have one great suspicion:
Will it work even on remote server ?
Why not? Just make sure you save it in a place browser has access to.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
[EMAIL PROTECTED] wrote:
Yesterday, after a few good advices there from fop users I successfuly used
this code to show pdf content in browser. It works in my JDeveloper 9i.
File inputFile = new File(pdfFile);
FileReader fr = new FileReader(inputFile);
ByteArrayOutputStream baos = new
[EMAIL PROTECTED] wrote:
I successfully created PDF , but now I don't know how to make browser show
it like PDF (Acrobat is installed, when I open file directly in browser,
all is ok).
Take a look at docs/examples/embedding/FopServlet.java as an example how to
return pdf.
What must I do, to make
Thanks to all, this code works ...
File inputFile = new File(pdfFile);
FileReader fr = new FileReader(inputFile);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
int ch;
while((ch = fr.read()) != -1) {