473,385 Members | 1,829 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

pdf printing

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
12 5801
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
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
> "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
> 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
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
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

"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
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
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

"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
0
by: Programatix | last post by:
Hi, I am working on the PrintDocument, PrintDialog, PageSetupDialog and PrintPreviewControl components of Visual Studio .NET 2003. My developement machine is running Windows XP. There are...
9
by: Jody Gelowitz | last post by:
I am trying to find the definition of "Safe Printing" and cannot find out exactly what this entitles. The reason is that I am trying to print contents from a single textbox to no avail using the...
4
by: Suzanka | last post by:
Hello, I have an application written in C# on visual studio .NET. It is a web aplication. The application consists of many different forms, that users occassionaly want to print out for filing....
4
by: Arif | last post by:
I C# code prints very slow as compared to a third party barcode printing software. That software prints approximately 10 labels in 2 seconds while my C# code prints 10 labels in 5 to 6 seconds. And...
6
by: Siv | last post by:
Hi, I am getting into printing with VB.NET 2005 and want to implement the usual capability that a user can select a selection of pages. I have a report that is generated by my application that if...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
0
by: nikhilgargi | last post by:
Requirement: I need to provide printing capability in a C# desktop application that I am developing The documents that need to be printed can be in Rich Text Format (RTF) or HTML. Custom...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
it0ny
by: it0ny | last post by:
Hi guys, thanks I am fairly new to this forum so I hope I chose the right place to post this question. I try to make my program printout a deposit's report. I created a class to store the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.