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

Re: Re:One touch scanning requirement

Forums › TWAIN Classic › One touch scanning requirement › Re: Re:One touch scanning requirement

February 12, 2010 at 5:41 pm #24929
mmotovsk
Participant
  • Topics - 3
  • Replies - 13
  • Total Posts - 16

Regarding to “One touch scanning”, you can see the online solution developed especially for that purpose:
http://www.gnome.eu/Twain/examples/capabilities.html
You can find more information here:
http://www.gnome.sk/Twain/jtp_capabilities.html

Regarding to PDF:
Morena – Image Acquisition Framework for Java 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?” It is the same task as if you produce image data from the image file. According the PDF file format, 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

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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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