Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
BLACK FRIDAY DEAL: Trust the World's Fastest VPN with Your Internet Security & Freedom--A Lifetime Subscription of PureVPN at $48 with coupon code "BFRIDAY20" ×
Programming IT Technology

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?"
This discussion has been archived. No new comments can be posted.

C++/Java Postscript Libraries?

Comments Filter:
  • by dnxthx ( 22324 )
    I could be remiss on this, but didn't NeXT cubes render to the display via Postscript commands? If this is so, then perhaps some component of GNUStep might help? Perhaps someone more deeply involved in OpenStep/GNUStep can comment.
  • Does it have to be PostScript first, or can you just print to the printer? If it doesn't have to be PostScript, Java 1.2 makes it pretty easy to print. Sun's tutorial [sun.com] diplays some graphics to the screen, then prints it.
  • by Anonymous Coward
    http://freshmeat.net/projects/pdflib/

  • by iMMersE ( 226214 ) on Thursday September 07, 2000 @11:54PM (#795902) Homepage
    ... will allow you to generate PDFs from

    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.

    .iMMersE
  • Hmm, I'll look at all the suggestions posted here... I really appreciate the input.
  • 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.

  • by FigWig ( 10981 ) on Friday September 08, 2000 @08:09AM (#795905) Homepage
    For Java you can use retepPDF [retep.org.uk]

    For C++ you can use ClipPDF [fastio.com].

    retepPDF is GPL, ClipPDF has its own license.

  • 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.

  • There's a really great Java UI library (different than Swing and AWT) that does lots of neat things. It was distributed by Netscape and is freely available with source.

    Read about Netscape IFC here: http://developer.netscape.com/docs/manuals/ifc/hom e.html

    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.
  • If PDF will do (which is, of course, directly convertible to PS), you might want to look at the XSL:FOP, which is supported by the Apache XML group xml.apache.org [apache.org].

    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.

  • Hey, thanks a lot guys!
    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

People are always available for work in the past tense.

Working...