[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 | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53092 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56532 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.2293 | 16856124 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.2308 | 16918704 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:43 |
| 5 | 0.2663 | 17036440 | the_content( ) | ../single.php:16 |
| 6 | 0.2664 | 17038988 | apply_filters( ) | ../post-template.php:169 |
| 7 | 0.2703 | 17047524 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.2703 | 17047708 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.2703 | 17048044 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.2704 | 17062020 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.2704 | 17063756 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:44 |
| 12 | 0.2791 | 17081528 | fread ( ) | ../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. :-)