[office] scantopdf revisited


( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105
Call Stack
#TimeMemoryFunctionLocation
10.000153060{main}( )../index.php:0
20.000256500require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.146613843644require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.147513906236include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:34
50.185614018040the_content( )../single.php:16
60.185914020776apply_filters( )../post-template.php:167
70.190714027000call_user_func_array ( )../plugin.php:166
80.190714027184vim_color( )../plugin.php:0
90.190714027520preg_replace ( )../wp-vimcolor.php:143
100.190814040292preg_replace ( )../wp-vimcolor.php:143
110.190814041840vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:44
120.197814059672fread ( )../wp-vimcolor.php:105

At the airport. Bored. Started hacking up my scantopdf script to cater for multiple page documents and a simple scanner.

It depends on some external tools though and I don’t really like the way their paths are hard-coded now, but it’s useful as is, still (and very easy to change). Make sure you have pdftk, scanimage, netpnm and ghostscript installed or it won’t work for you.

Curious if it will work when I return to the office. :-)

Add a Comment   Trackback  

Add a Comment