Home › Forums › TWAIN Classic › Save images to multi tiff
- This topic has 8 replies, 8 voices, and was last updated 1 year, 11 months ago by sunshine_ak.
- AuthorPosts
Hello,
I’ve been searching for the solution to my problem, but didn’t find anything.
I have scanner, which can save image to multi tiff file. After it makes a scan, the file is just overwritten. I thought that, if file exists, it append another page to .tiff file. I saved two page to tiff only once, but that was by accident and I don’t know how did it happen.
Is there any example for that kind of file?
Thanks in advance,
AgaYou don’t mention if you are trying to write an app to do this, or if you are just using a standard driver from windows, but you want to look for a checkbox that says ‘multi-page’ or possibly look for a different file format in a drop down menu called ‘multi page tiff’
If you are writing your own app, then you want to see if the scanners TWAIN driver returns TWFF_TIFFMULTI as one of the choices in response to an ICAP_IMAGEFILEFORMAT request. If it does, then you can set TWFF_TIFFMULTI to get multi page TIFF files.
Ok, I’m sorry I didn’t write precisely.
I have Epson DS-30 and I’m writting my own app to operate it. In state 4 I’m checking what file formats are supported and TWFF_TIFFMULTI is one of them. I set capability ICAP_XFERMECH to TWSX_FILE and ICAP_IMAGEFILEFORMAT to TWFF_TIFFMULTI. Number of pages (CAP_XFERCOUNT) is set to -1. After message XFERREADY I’m setting structure TW_SETUPFILEXFER with proper path and file format. Then I’m using of course DG_IMAGE / DAT_IMAGEFILEXFER / MSG_GET. While scanning a few times to the same path, the file is overwritten. Tiff file has only one page. The same happend with various compression types.
@sunshine_ak wrote:
Ok, I’m sorry I didn’t write precisely.
I have Epson DS-30 and I’m writting my own app to operate it. In state 4 I’m checking what file formats are supported and TWFF_TIFFMULTI is one of them. I set capability ICAP_XFERMECH to TWSX_FILE and ICAP_IMAGEFILEFORMAT to TWFF_TIFFMULTI. Number of pages (CAP_XFERCOUNT) is set to -1. After message XFERREADY I’m setting structure TW_SETUPFILEXFER with proper path and file format. Then I’m using of course DG_IMAGE / DAT_IMAGEFILEXFER / MSG_GET. While scanning a few times to the same path, the file is overwritten. Tiff file has only one page. The same happend with various compression types.
To creat an app that with feature of Multi-page TIFF processing,such as save ,resize, convert,compress ,library of TIFF procrssing may give you a hand.
You can paste the related code you are using here and see if we can help.
An easier way is to use a TWAIN SDK for document scanning, editing and save/upload. Are you writing a desktop or web app?
@Wallism wrote:
To creat an app that with feature of Multi-page TIFF processing,such as save ,resize, convert,compress ,library of TIFF procrssing may give you a hand.
thank you, i have seen your codes up here. i think it helps me a lot. thank you for sharing.
I use a tiff spliter driver found on the internet . Install it and it becomes a selectable option.Then you can split mutipage tiff into single ones in many formats in any program at all, including Adobe Acrobat . Just open the sdk, select tiff , and choice split, then you can split pdf in c#, vb, asp ,etc ,the task will be finished in several seconds. then you can save images to multi tiff. as for scanner , you can try this tiff scanner which can be allpied in vb, c#,etc. besides , it can be freely used for trial for 30 days, just have a check! if you haven´t found a good choice , you can have a try. best wishes
@danny rough wrote:
I use a tiff spliter driver found on the internet . Install it and it becomes a selectable option.Then you can split mutipage tiff into single ones in many formats in any program at all, including Adobe Acrobat . Just open the sdk, select tiff , and choice split, then you can split pdf in c#, vb, asp ,etc ,the task will be finished in several seconds. then you can save images to multi tiff. as for scanner , you can try this tiff scanner which can be allpied in vb, c#,etc. besides , it can be freely used for trial for 30 days, just have a check! if you haven´t found a good choice , you can have a try. best wishes
Thanks for your nice info. I wonder whether the tool you mentioned above can be customized by users according to our own favors. I want to select a manual one to help me read the saved Tiff files. Thanks in advance.
Best regards,
Peter@danny rough wrote:
I use a tiff spliter driver found on the internet . Install it and it becomes a selectable option.Then you can split mutipage tiff into single ones in many formats in any program at all, including Adobe Acrobat . Just open the sdk, select tiff , and choice split, then you can split pdf in c#, vb, asp ,etc ,the task will be finished in several seconds. then you can save images to multi tiff. as for scanner , you can try this tiff scannerwhich can be allpied in vb, c#,etc. besides , it can be freely used for trial for 30 days, just have a check! if you haven´t found a good choice , you can have a try. best wishes
Hi there
Thanks for your sharing.It helps me a lot.BTW.if it is possible to process the tiff files offline?
Thanks for any suggestion.- AuthorPosts