By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,468 Members | 1,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,468 IT Pros & Developers. It's quick & easy.

pdf printing

P: n/a
So I have a client program written in java and it needs to be able to print
pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf
file to a real printer. I have tried pdfgo and jpedal but both have their
small issues. Suggestions?
Jul 17 '05 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Liz

"memmmmm" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:Uo5xc.5455$wS2.1158@okepread03...
So I have a client program written in java and it needs to be able to print pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf
file to a real printer. I have tried pdfgo and jpedal but both have their
small issues. Suggestions?

Run Adobe Acrobat Reader via JNI.

Jul 17 '05 #2

P: n/a
we are doing that on our current c++ client and thats exactly what we are
trying to get away from, the 30 plugins it has, its ugly splash and the
constant check for updates, and some other issues are just too much for us.
Not to mention other issues like if we just call it with a command line to
print then the window it opens never goes away. If we programatically call
it to only show the print dialog then we get some wierd printing errors or
the dialog gets all deformed if its moved. Anyways I am not the one working
on that project so I dont know all the issues, I was just told to find a
java pdf printer that will work on macs and linux as well.


"Liz" <Li*@nospam.com> wrote in message
news:s%7xc.65597$Ly.37118@attbi_s01...

"memmmmm" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:Uo5xc.5455$wS2.1158@okepread03...
So I have a client program written in java and it needs to be able to

print
pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf file to a real printer. I have tried pdfgo and jpedal but both have their small issues. Suggestions?

Run Adobe Acrobat Reader via JNI.

Jul 17 '05 #3

P: n/a
> "Run Adobe Acrobat Reader via JNI."

Liz:

That makes no sense. Running it via a shell script "maybe" but other
than reinventing the wheel using JNI for this isn't where it's at.

Provided your external pdf reader has a command line argument to send to
the printer you can use something like this:

Runtime.exec("xpdf somefile.pdf >lpr");

Other than that you'll have to provide more specifics, are in what
platform you are on.

Cheers

- perry
Liz wrote:
"memmmmm" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:Uo5xc.5455$wS2.1158@okepread03...
So I have a client program written in java and it needs to be able to


print
pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf
file to a real printer. I have tried pdfgo and jpedal but both have their
small issues. Suggestions?



Jul 17 '05 #4

P: n/a
> Other than that you'll have to provide more specifics, are in what
platform you are on.


thats the main deal, we have to use this preferebly on windows, linux and
mac, and acrobat reader has some issues of their own. We have tried pdfgo
and jpedal and they both do a really good job, jpedal especailly. PDFGo
doesnt read the pdfs created by our pdf printer because they have embedded
fonts and jpedal only reads them on their enterprise version. The problem is
that jpedal wants to charge I think per copy of the program and we want to
pay a flat fee, mainly because our client software is free and we have no
control of how many people will use it, and we need some sort of predictable
cost.
Jul 17 '05 #5

P: n/a
have you checked into what gnu has to offer....

- perry

memmmmm wrote:
Other than that you'll have to provide more specifics, are in what
platform you are on.

thats the main deal, we have to use this preferebly on windows, linux and
mac, and acrobat reader has some issues of their own. We have tried pdfgo
and jpedal and they both do a really good job, jpedal especailly. PDFGo
doesnt read the pdfs created by our pdf printer because they have embedded
fonts and jpedal only reads them on their enterprise version. The problem is
that jpedal wants to charge I think per copy of the program and we want to
pay a flat fee, mainly because our client software is free and we have no
control of how many people will use it, and we need some sort of predictable
cost.


Jul 17 '05 #6

P: n/a
Liz

"perry" <pe***@cplusplus.org> wrote in message
news:dd*********************@news20.bellglobal.com ...
have you checked into what gnu has to offer....

- perry

memmmmm wrote:
Other than that you'll have to provide more specifics, are in what
platform you are on.

thats the main deal, we have to use this preferebly on windows, linux and mac, and acrobat reader has some issues of their own. We have tried pdfgo and jpedal and they both do a really good job, jpedal especailly. PDFGo
doesnt read the pdfs created by our pdf printer because they have embedded fonts and jpedal only reads them on their enterprise version. The problem is that jpedal wants to charge I think per copy of the program and we want to pay a flat fee, mainly because our client software is free and we have no control of how many people will use it, and we need some sort of predictable cost.

How about this. You write the pdf to a file then use the filename as
a URL that you send to another application that does the printing.
Jul 17 '05 #7

P: n/a

"Liz" <Li*@nospam.com> wrote in message
news:JNKxc.62438$3x.24854@attbi_s54...

"perry" <pe***@cplusplus.org> wrote in message
news:dd*********************@news20.bellglobal.com ...
have you checked into what gnu has to offer....

- perry

memmmmm wrote:
>Other than that you'll have to provide more specifics, are in what
>platform you are on.
thats the main deal, we have to use this preferebly on windows, linux and mac, and acrobat reader has some issues of their own. We have tried pdfgo and jpedal and they both do a really good job, jpedal especailly. PDFGo doesnt read the pdfs created by our pdf printer because they have embedded fonts and jpedal only reads them on their enterprise version. The problem is that jpedal wants to charge I think per copy of the program and we
want
to pay a flat fee, mainly because our client software is free and we have no control of how many people will use it, and we need some sort of predictable cost.

How about this. You write the pdf to a file then use the filename as
a URL that you send to another application that does the printing.


what would that application be?
the way we are doing this the user must never know there is a pdf in the
middle of the printing, they print somewhere, we save that printjob as a
pdf, transfer it, and then they get the pdf somewhere else and print it, but
the user shouldnt know its a pdf and/or what program to use to print it, our
program should take care of that.
Jul 17 '05 #8

P: n/a
Liz

"memmmmm" <[rem]casolorz[rem]@hot[rem]mail.com> wrote in message
news:IkNxc.6211$wS2.4264@okepread03...

"Liz" <Li*@nospam.com> wrote in message
news:JNKxc.62438$3x.24854@attbi_s54...

"perry" <pe***@cplusplus.org> wrote in message
news:dd*********************@news20.bellglobal.com ...
have you checked into what gnu has to offer....

- perry

memmmmm wrote:
>>Other than that you'll have to provide more specifics, are in what
>>platform you are on.
>
>
> thats the main deal, we have to use this preferebly on windows,
linux
and
> mac, and acrobat reader has some issues of their own. We have tried pdfgo
> and jpedal and they both do a really good job, jpedal especailly. PDFGo > doesnt read the pdfs created by our pdf printer because they have

embedded
> fonts and jpedal only reads them on their enterprise version. The

problem is
> that jpedal wants to charge I think per copy of the program and we

want
to
> pay a flat fee, mainly because our client software is free and we

have no
> control of how many people will use it, and we need some sort of

predictable
> cost.
>
>

How about this. You write the pdf to a file then use the filename as
a URL that you send to another application that does the printing.


what would that application be?
the way we are doing this the user must never know there is a pdf in the
middle of the printing, they print somewhere, we save that printjob as a
pdf, transfer it, and then they get the pdf somewhere else and print it,

but the user shouldnt know its a pdf and/or what program to use to print it, our program should take care of that.

If that's the case you don't need to use PDF at all, how about PostScript.
Many printers take PostScript directly and for those that don't you might
be able to find a driver.
Jul 17 '05 #9

P: n/a
On Thu, 10 Jun 2004 02:30:57 GMT, Liz wrote:
If that's the case you don't need to use PDF at all, how about PostScript.
Many printers take PostScript directly and for those that don't you might
be able to find a driver.


I haven't followed this thread so I really don't know what's being
discussed here, but Ghostscript can convert from Postscript or PDF to
"virtually any" common printer language. It's often used as a printing
filter for that reason, and it's available for most platforms:

http://www.cs.wisc.edu/~ghost/

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e
Jul 17 '05 #10

P: n/a

"Gordon Beaton" <no*@for.email> wrote in message
news:40********@news.wineasy.se...
On Thu, 10 Jun 2004 02:30:57 GMT, Liz wrote:
If that's the case you don't need to use PDF at all, how about PostScript. Many printers take PostScript directly and for those that don't you might be able to find a driver.


I haven't followed this thread so I really don't know what's being
discussed here, but Ghostscript can convert from Postscript or PDF to
"virtually any" common printer language. It's often used as a printing
filter for that reason, and it's available for most platforms:

http://www.cs.wisc.edu/~ghost/

/gordon

--
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e

honestly I dont know much about what the issues with acrobat or other
programs were, but I remember talk in the office about the licenses for
ghostcript, I think for their none gpl or afpl version they wanted a per
client fee which is a big no no for us, but like I said, I didnt pay much
atention to that so I am probably not giving you accurate information. I was
just told to find a pure java alternative with nice licensing!

Jul 17 '05 #11

P: n/a
thats funny, i have a pdf software vendor wanting me to beta test their
stuff....

- perry

memmmmm wrote:
So I have a client program written in java and it needs to be able to print
pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf
file to a real printer. I have tried pdfgo and jpedal but both have their
small issues. Suggestions?


Jul 17 '05 #12

P: n/a
wanna give out any more details?
"perry" <pe***@cplusplus.org> wrote in message
news:8a*********************@news20.bellglobal.com ...
thats funny, i have a pdf software vendor wanting me to beta test their
stuff....

- perry

memmmmm wrote:
So I have a client program written in java and it needs to be able to print pdfs. By print pdfs I dont mean print to a pdf file but rather print a pdf file to a real printer. I have tried pdfgo and jpedal but both have their small issues. Suggestions?

Jul 17 '05 #13

This discussion thread is closed

Replies have been disabled for this discussion.