C++/Java Postscript Libraries? 11
myrkul asks: "I'm working on an application that takes vector graphics, text, and bitmapped pictures as well as layout info from a database, and converts it to postscript (PDF would work too) for printing. I've been looking for (preferably free) Postscript libraries for either C++ or Java which would allow me to lay out these elements, and haven't had much luck. Any suggestions?"
NeXT (Score:2)
Java can send directly to printer (Score:2)
Incoming (Score:1)
pdflib ... (Score:4)
ActiveX/COM for use with Visual Basic, Active Server Pages, Delphi etc.
ANSI C
Class wrapper for ANSI C++
Java (via Java Native Interface, JNI), including servlets
Perl
Python
Tcl
There is also a pdflib extension to PHP.
You can find it here [pdflib.com]
I hope this helps.
Thanks (Score:1)
Not free, but still good for Java (Score:1)
Check out KL Group's [klgroup.com] JClass PageLayout. [http] Quoting from the product page, it will "Output directly to the Java AWT Printer, Acrobat PDF, HTML, PostScript Level 2, or PCL 5."
I admit that I'm biased, but it's still worth checking out the eval.
Options (Score:3)
For C++ you can use ClipPDF [fastio.com].
retepPDF is GPL, ClipPDF has its own license.
Almost forgot -- there's one for C++ (Score:1)
This is primarily available on *NIX, but KL also has a C/C++ component called PageFormatter [klgroup.com] which has very similar functionality to JClass PageLayout.
Once again, it's not free and I admit that I'm biased, but it's still a good tool, and it can't hurt to download an eval to see for yourself.
Check out Netscape IFC (Score:1)
Read about Netscape IFC here: http://developer.netscape.com/docs/manuals/ifc/ho
Although not part of the original IFC distribution, I know that someone wrote a subclass of netscape.application.Graphics that generates Postscript/PDF instead of drawing on the screen.
IFC uses a very similar architecture to the old NeXT toolkit (since IFC was written by ex-NeXT folks). IFC even comes with the Constructor application to lay out your UI. Amazing stuff.
Unfortunately, I'm not sure where to find the Postscript output code, but someone else might know.
XML FOP (Score:1)
They have C and Java libraries which serve this stuff up from XML files in real time via the webserver, but the cool thing is that these libraries also contain stand-alone tools for converting XML to PDF via XSL:FOP. I've used it to produce invoices for web orders. It works great.
Many thanks (Score:1)
Also, to clarify a few things - there is no need to do this real time, on the fly, etc - the main purpose of this app is to take some information from a database, and use that info to lay out text, images, horizontal and vertical lines, as well as gradients and filled areas - in full color, at a very very high quality.
Anyways, I'm looking around at the links that were posted - some very nice stuff in here!
Jonas Courteau