[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.000153092{main}( )../index.php:0
20.000256532require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.229316856124require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.230816918704include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.266317036440the_content( )../single.php:16
60.266417038988apply_filters( )../post-template.php:169
70.270317047524call_user_func_array ( )../plugin.php:166
80.270317047708vim_color( )../plugin.php:0
90.270317048044preg_replace ( )../wp-vimcolor.php:143
100.270417062020preg_replace ( )../wp-vimcolor.php:143
110.270417063756vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:44
120.279117081528fread ( )../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