TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Web based scaning for java application

Forums › TWAIN Classic › Web based scaning for java application

  • This topic has 4 replies, 4 voices, and was last updated 2 weeks, 5 days ago by Bryanaab.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 1, 2009 at 9:57 am #22532 Reply
    goureddyvenkat
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hi,

    I have a requirement where I need to build a web based scan application which will be used to scan documents from any twain based scanners.
    I need help in understaning what all I need to build such solution
    Iam using j2ee as the programming language

    Thanks,
    venkat

    October 21, 2009 at 12:45 pm #25020 Reply
    jnicodemus
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    You might want to look at the following websites. There are a couple of pay sites where they have written packages that allow java to use twain and one open source site.

    Open Source
    http://www.mms-computing.co.uk/uk/co/mmscomputing/device/twain/

    Pay
    http://asprise.com/product/jid/jimagedialog.php
    http://www.twainconnect.com/Products.aspx

    How To Article
    http://www.javaworld.com/javaworld/jw-07-2002/jw-0726-twain.html

    Hope these help
    Jason

    October 26, 2009 at 11:44 am #25021 Reply
    goureddyvenkat
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hi,
    Thanks for the help,
    I used the Open Source
    http://www.mms-computing.co.uk/uk/co/mmscomputing/device/twain/
    and was able to build my application

    Can u tell to how upload the scanned documents to my server (Tomcat)
    and I want to convert scanned images to a single pdf.

    Thanks & Regards,
    venkat

    February 12, 2010 at 4:35 pm #25022 Reply
    mmotovsk
    Participant
    • Topics - 3
    • Replies - 13
    • Total Posts - 16

    You can also see the online MorenaStudio web scanning example from Gnome company:
    http://www.gnome.eu/Twain/examples/studio.html

    You can find the Java source code with the upload (save too) solution in the MorenaStudio.java file located in the examples directory of the distribution package. You can download the distribution package here:
    http://www.gnome.sk/Twain/jtp_try&buy.html

    Morena Framework is a commercial product, but it is free of charge for educational and personal home usage.

    To the PDF:
    Morena Framework delivers scanned data via standard Java ImageProducer interface. So the task is: “How to save acquired data to the PDF file format, if the they are produced via ImageProducer interface?” We have a feedback from our customers, that they have good experiences with iText, a free library for generating PDF files.

    Here is a snapshot demonstrating how to save to pdf file using iText library:

    TwainSource source = TwainManager.selectSource(null);
    MorenaImage morenaImage = new MorenaImage(source);
    Image image=Toolkit.getDefaultToolkit().createImage(morenaImage);

    com.lowagie.text.Image iTextImage=com.lowagie.text.Image.getInstance(image, null);
    iTextImage.setAbsolutePosition(0, 0);
    Document document=new Document(iTextImage);
    PdfWriter writer=PdfWriter.getInstance(document, tmp);
    document.open();
    PdfContentByte cb=writer.getDirectContent();
    cb.addImage(iTextImage);
    document.close();

    But, you can use your preferable PDF libraries.

    Martin Motovsky
    Member of Gnome’s technical support[/code]

    January 17, 2016 at 9:51 am #25023 Reply
    evanpan
    Participant
    • Topics - 0
    • Replies - 7
    • Total Posts - 7

    Hi, venkat.
    Thanks for sharing your problem. As for me, I have seldom tried to deal with that kind of problem before. Have you ever worked it out? I wonder whether you have any exprience about
    pdf extracting process. Because there is something wrong with my pdf reader. I need convert pdf to text or other formats. Any suggestion will be appreciated. Thanks in advance.

    Best regards,
    Pan

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Web based scaning for java application
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.