Home › Forums › TWAIN Classic › Slow Scan (VC++ 6 DLL)
- This topic has 2 replies, 3 voices, and was last updated 8 years, 1 month ago by evanpan.
- AuthorPosts
Hi Everyone!
I have written a DLL which does only a modal scan-window with the following functions:
At first you have to select a scanner
Then you can scan pages in two preselected modes text (gray scale, 96dpi) and foto (24bit color, 360dpi) without the scanners manufacture dialog shown.
In the end all scanned pages are stored in a PDF-File (via libharu -> http://libharu.sourceforge.net/ )Now I use the DLL in a test-Application and everything works fine. A text scan takes 12sek and a fot-scan takes 50sek.
But when I use it in my final prgramm it takes about 3 Minutes for the text-scan and 7 Minutes for the same foto-scan. The final PDF-Document is exactly the same.
So my question is: How does this happens? All Scanner propertys are done in my dll, so theres only one entry-point to it that says int StartScan(FolderName);
Please help me
Thank you Philipp
Here are some more Informations:
– The processor usage is in both prgrams at 100% during the scan.
– I tried two differend computers: a 2.4GHz Intel Celeron Mobil and a 5-times faster AMD Athlon 2.400+. The same scan took exactly the same time on booth maschines, what I find very strange.
-The scanner is a Canon Lide 35I havent run across this so the following is just me thinking outload, Does your dll run on a seperate thread or does it share the messagepump with the dialog?
.
Hi, Phillip.
Thanks for sharing your problem. But I wonder did you have any exprience about extracting text from pdf files? I wonder whether there are any differences between pdf extraction and pdf to text conversion process? Whose way of processing is much simpler and faster? Any suggestion will be appreciated. Thanks in advance.Best regards,
Pan- AuthorPosts