Does that code send my PDF file to a printer or does
it open up Adobe as soon as it's done writing it?

--- bruno <[EMAIL PROTECTED]> wrote:

> Angela Berk wrote:
> 
> >Could you give me an example of how to start Adobe
> >Reader from a JVM?  I read through the
> Executable.java
> >class, but I am a little confused as to how to do
> >this.
> >  
> >
> It's done like this:
> 
> String osName = System.getProperty("os.name" );
> //FOR WINDOWS 95 AND 98 USE COMMAND.COM
> if(osName.equals("Windows 95") ||
> osName.equals("Windows 98")){
>     Runtime.getRuntime().exec(
>               "command.com /C start acrord32 " + myfile.pdf);
> }
> //FOR WINDOWS NT/XP/2000 USE CMD.EXE
> else {
>     Runtime.getRuntime().exec("cmd.exe start /C
> acrord32 " + myfile.pdf);
> }
> 
> See also
> http://www.lowagie.com/iText/faq.html#printing
> but without the /p and /h (/p is for printing /h for
> hiding the dialog box)
> br,
> Bruno
> 
> 
>
-------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
>
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> iText-questions mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/itext-questions
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to