aspose file tools*
The moose likes Java in General and the fly likes Printing PDF files from a Java Program Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing PDF files from a Java Program" Watch "Printing PDF files from a Java Program" New topic
Author

Printing PDF files from a Java Program

chiranjeevi bigboss
Greenhorn

Joined: Aug 31, 2001
Posts: 12
hi...
Can anyone please let me know how to read and print the PDF files from a java program.
Adrian Ferreira
Ranch Hand

Joined: May 29, 2000
Posts: 118
Hello,
Do you need to interpret every kind of PDF file inside Java program? If so, I think you got a big problem.
Let me know if you got an easy solution.
Adrian
chiranjeevi bigboss
Greenhorn

Joined: Aug 31, 2001
Posts: 12
hi...
actually my task is to read a set of .pdf files from a directory on ur hard disk thru java code and print all of those .PDF files in a batch. That means i need to interpret all kinds of PDF files.
Can anyone please help me ...its very urgent....
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
I found a number of promising links by giong to www.google.com and searching for "java pdf". I'm completely unfamiliar with how PDF works, so I can't really offer any insight myself - other than to point out how invaluable google can be as a research tool. Good luck.


"I'm not back." - Bill Harding, Twister
mziegler
Greenhorn

Joined: Sep 21, 2001
Posts: 2
Two possibilities:
First: Use ghostscript as external program to print out pdf-files. (Open Source software available for different platforms). (If you use it on a unix-server without display attached use the nodisplay option.)
Second: Download the Acrobat Reader (www.adobe.com) in the java version and use this to print out the files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing PDF files from a Java Program