You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Prashanth.S" <su...@yahoo.com> on 2003/12/04 03:56:22 UTC
Printing PDF Files in java
Hi all,
Is there any way in java tp print PDF files by getting stream out of PDF files and giving the same to printer????
I did lot of R&D on the above topic using javax.print package avilable in jdk1.4,third party libraries like PJX,itree and JFreeReport but nothing provided me the solution.My requirement is to print user selected files in his local printer.
Hope someone helps.
Thanks
Prashanth
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
RE: [OT] Re: Printing PDF Files in java
Posted by Andrew Hill <an...@gridnode.com>.
Have the server fax it to the logged in users fax number ;-)
-----Original Message-----
From: Prashanth.S [mailto:suman291857@yahoo.com]
Sent: Thursday, 4 December 2003 11:45
To: Struts Users Mailing List
Subject: Re: [OT] Re: Printing PDF Files in java
Hi kirk,
Thanks for the reply....Actually i planned to use signed applets with RMI
for remote printing but since i couldnt able to accomplish printing the PDF
file even if u get the original file[through applets saving in local
machine] i couldnt go ahead.......
Any ideas???? other than using JavaScript
Thanks
Prashanth
Kirk Wylie <kw...@m7.com> wrote:
Prashanth.S wrote:
> Hi all,
> Is there any way in java tp print PDF files by getting stream out of PDF
> files and giving the same to printer????
>
> I did lot of R&D on the above topic using javax.print package avilable
> in jdk1.4,third party libraries like PJX,itree and JFreeReport but
> nothing provided me the solution.My requirement is to print user
> selected files in his local printer.
The javax.print stuff is local to the JVM being executed. Assuming that
you're dealing with a server-side application (i.e. your question is
marginally relevant to the struts-user list), you can potentially
accomplish this using JavaScript.
But since essentially you'd have to (on the client using JavaScript):
1) Grab the file
2) Launch Acrobat Reader and instruct IT to print the file
This might be easier said than done.
But someone else might have experience with doing this using JavaScript.
The important thing I wanted to express is that you won't be able to do
it using Java raw because in a server-side application you don't
actually have any Java running on the client's machine: the java is
entirely executing on the server.
Kirk Wylie
M7 Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Re: Printing PDF Files in java
Posted by "Prashanth.S" <su...@yahoo.com>.
Hi kirk,
Thanks for the reply....Actually i planned to use signed applets with RMI for remote printing but since i couldnt able to accomplish printing the PDF file even if u get the original file[through applets saving in local machine] i couldnt go ahead.......
Any ideas???? other than using JavaScript
Thanks
Prashanth
Kirk Wylie <kw...@m7.com> wrote:
Prashanth.S wrote:
> Hi all,
> Is there any way in java tp print PDF files by getting stream out of PDF
> files and giving the same to printer????
>
> I did lot of R&D on the above topic using javax.print package avilable
> in jdk1.4,third party libraries like PJX,itree and JFreeReport but
> nothing provided me the solution.My requirement is to print user
> selected files in his local printer.
The javax.print stuff is local to the JVM being executed. Assuming that
you're dealing with a server-side application (i.e. your question is
marginally relevant to the struts-user list), you can potentially
accomplish this using JavaScript.
But since essentially you'd have to (on the client using JavaScript):
1) Grab the file
2) Launch Acrobat Reader and instruct IT to print the file
This might be easier said than done.
But someone else might have experience with doing this using JavaScript.
The important thing I wanted to express is that you won't be able to do
it using Java raw because in a server-side application you don't
actually have any Java running on the client's machine: the java is
entirely executing on the server.
Kirk Wylie
M7 Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
[OT] Re: Printing PDF Files in java
Posted by Kirk Wylie <kw...@m7.com>.
Prashanth.S wrote:
> Hi all,
> Is there any way in java tp print PDF files by getting stream out of PDF
> files and giving the same to printer????
>
> I did lot of R&D on the above topic using javax.print package avilable
> in jdk1.4,third party libraries like PJX,itree and JFreeReport but
> nothing provided me the solution.My requirement is to print user
> selected files in his local printer.
The javax.print stuff is local to the JVM being executed. Assuming that
you're dealing with a server-side application (i.e. your question is
marginally relevant to the struts-user list), you can potentially
accomplish this using JavaScript.
But since essentially you'd have to (on the client using JavaScript):
1) Grab the file
2) Launch Acrobat Reader and instruct IT to print the file
This might be easier said than done.
But someone else might have experience with doing this using JavaScript.
The important thing I wanted to express is that you won't be able to do
it using Java raw because in a server-side application you don't
actually have any Java running on the client's machine: the java is
entirely executing on the server.
Kirk Wylie
M7 Corporation
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org