"C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe" /p /h "%1"
The /p option is the print. the /h is to use the default printer. If you skip the /h then you get the windows prompt for choosing a printer.
Duffer
At 09:29 AM 2/20/2003, Stefan Carlsson wrote:
It work on Windows too... I use it and have (some time ago)
sent a description how to do it, so search the list...
Regards,
Stefan
---
- -----Ursprungligt meddelande-----
- Från: Alastair Rodgers [mailto:[EMAIL PROTECTED]]
- Skickat: den 20 februari 2003 15:57
- Till: jdjlist
- Ämne: [jdjlist] RE: R: RE: How to print PDF from Java?
- I think Acrobat Reader used to have a command line option to allow you to print a PDF file from the command line without needing to start the Acrobat GUI. I don't know if this is still available, but if it is, you could invoke it using Runtime.exec(). It might have only been on Unix platforms though - I can't remember.
- Sorry I can't be more help.
- Al.
- -----Original Message-----
- From: Rathinavel Palaniappan [mailto:[EMAIL PROTECTED]]
- Sent: 20 February 2003 14:51
- To: jdjlist
- Subject: [jdjlist] R: RE: How to print PDF from Java?
- Rinaldo,
- We are using FOP to generate the PDF file, however we need a way to print the generated file. Could you let us know how we can print a given file using java API.
- thanks,
- Rathna.
- >>Also take a look at the fop project http://xml.apache.org/fop/
- >>Regards
- >>Rinaldo
- -----Messaggio originale-----
- Da: WHITESIDE, CHIP [mailto:[EMAIL PROTECTED]]
- Inviato: mercoledì 19 febbraio 2003 2.29
- A: jdjlist
- Oggetto: [jdjlist] RE: How to print PDF from Java?
- Take a look at iText - A Free Java-PDF library
- http://www.lowagie.com/iText/ <http://www.lowagie.com/iText/>
- -----Original Message-----
- From: Rathinavel Palaniappan [mailto:[EMAIL PROTECTED]]
- Sent: Tuesday, February 18, 2003 7:53 PM
- To: jdjlist
- Cc: Rathinavel Palaniappan
- Subject: [jdjlist] How to print PDF from Java?
- Hi all,
- I need to print PDF file from Java, I have checked java.awt.print API
- but could not figure out how exactly PDF can be printed. Can somebody
- through light on this? Any pointers or sample code will be helpful.
- Thanks for your time.
- --
- with regards,
- Rathna
- ---
- You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
- To unsubscribe send a blank email to [EMAIL PROTECTED]
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
NOTE the new email address above - please UPDATE your records.
Director, divine Advanced Web Technology (Chicago)
Work: 312-630-7664
http://www.divine.com
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk