How are u initiating FOP ? Is it thru an independent application ?

If it is then I guess u will have to get a hold of the system's runtime 
environment using something like below in u're Java application (assuming 
that u r using Java :-))

        String[] cmds = new String[2];
        cmds[0] = "iexplore"; // See that the system path is set so as to find 
the 
.exe , else set the string as "C:/Program Files/Internet Explorer/iexplore" 
or wherever  u're browser executable is.
        cmds[2] = "xml.apache.org";

        Process p = Runtime.getRuntime().exec(cmds);

But if u r anyway using a web based application then, all u need to do is 
pass on the url of the PDF to the browser as the response.

Hope this helps.
Anil.

-----Original Message-----
From:   MARTIN Franck [SMTP:[EMAIL PROTECTED]
Sent:   Friday, May 17, 2002 3:07 AM
To:     [EMAIL PROTECTED]
Subject:        Re: Open and print pdf files



> U can send the PDF url to the browser to be viewed.

How?

"Anil R. Pinto" a ecrit :

> U can send the PDF url to the browser to be viewed.
>
> Also I think u can print the PDF on a printer using the java print 
service (JPS).
>
> Anil.
>
> -----Original Message-----
> From:   MARTIN Franck [SMTP:[EMAIL PROTECTED]
> Sent:   Thursday, May 16, 2002 2:50 AM
> To:     [EMAIL PROTECTED]
> Subject:        Open and print pdf files
>
> Hi all,
>
> Fop is cool but once i have successfully created my pdf file it would be
> nice to open and print it. Does anyone know of a platform independent
> way to open a pdf file. So far the only way i have found is platform
> dependent ( for NT : Runtime.getRuntime().exec("cmd /c start
> "+txtPdf.getText()); ). I was thinking that if java provided a way to
> display an active http link it would be easy to open a pdf file via the
> default web browser. What do you think?
>
> Does anyone know how to send either ps or pdf directly to the printer
> (or via a print dialog)?
>
> Thank you for your help
>
> Franck




Reply via email to