Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Convert a Tiff to postscript with J2ME

  • 01-04-2005 05:13PM
    #1
    Registered Users, Registered Users 2 Posts: 834 ✭✭✭


    I am developing a midlet that will run on the CDLC platform. It will be deployed to a Ricoh scanner that is running on an embedded port of the FreeBSD OS.
    When a page is scanned a Tiff is created in memory which I can access through the Ricoh Java SDK, there are a number of operations that I need to perform on this Tiff through the Ricoh SDK, then I need to convert it to Postscript for printing on the same machine. Unfortunately, the Ricoh SDK for the scanner does not yet have the functionality to convert from Tiff to Postscript and they do not expect to have it for at least another six months, so can anybody suggest a method to perform this conversion in J2ME?

    It may also be possible to perform the conversion using a native BSD tool such as tiff2ps, but I don't know yet if that will work on an embedded platform.

    Any ideas/suggestions would be greatly appreciated.


Comments

  • Registered Users, Registered Users 2 Posts: 21,264 ✭✭✭✭Hobbes


    Probably not doable.

    Used postscript years ago and afair you could try sending a binary stream to the postscript printer.

    But afaik J2ME does not have printer functionality.


  • Registered Users, Registered Users 2 Posts: 1,430 ✭✭✭Merrion


    I don't know how this would (or even could) be done in Java, but I'd suggest convert the TIFF to bitmaps and embed them in the postscript. There's probably stuff in the Ghostscript libabries you could use?


Advertisement