Well If you're on a Windows machine then you can call the Adobe Reader
executable passing in the path to file that was just created.
The following should work:

Process p = Runtime.getRuntime().exec("path_to\AcroRd32.exe
path_to\file_just_created");

Liem

----- Original Message ----- 
From: "Tom Chiou" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, August 27, 2004 8:01 AM
Subject: [iText-questions] sample code for writing PDF to screen instead of
to a file


> Hi I want to thank to all of your replies.  But unfortunately I am running
a
> Java Application.  It's not in a web environment.  So the response object
does
> not apply here I don't think.
>
> It's just like the tutorial with absolute text positioning (chapter 10).
When
> I run the Java Application, it generates the result in a .pdf file.  Then
I
> will have to go to the folder and locate the file and open it to see the
> result.  I was hoping to find a way for the resulting pdf to be viewed
directly
> on the screen when i run the application.  Is there such a way?
>
> Thank you,
> Tom
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to