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
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 ByteArrayOutputStream();
int ch;
[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
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).
If I use this code:
File inputFile = new File(pdfFile);
FileReader fr = new FileReader(inputFile);
int c;
while( (c = in.read()) != -1)
[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) {
2002 10:10
Para: [EMAIL PROTECTED]
Assunto: Re: How to show PDF file in jsp page ?
Thanks to all, this code works ...
File inputFile = new File(pdfFile);
FileReader fr = new FileReader(inputFile);
ByteArrayOutputStream baos
Gilson Nascimento Del Rei wrote:
I newbie question...
Why we have that read the pdf file ?
FOP's output is a stream and in order to set Content-Length you have to read
the whole stream to into memory or into a temporary file.
Doesn't is a simple link sufficient for
execute it ?
Link to where?
10 matches
Mail list logo