473,249 Members | 1,674 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,249 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 5795
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: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.