[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 | 52980 | {main}( ) | ../index.php:0 |
| 2 | 0.0002 | 56420 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.1668 | 13842716 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1680 | 13910888 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/archive.php' ) | ../template-loader.php:52 |
| 5 | 0.1915 | 14003556 | the_content( ) | ../archive.php:35 |
| 6 | 0.1919 | 14006332 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.1968 | 14012556 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.1968 | 14012740 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.1968 | 14013076 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.1969 | 14025852 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.1969 | 14027400 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:44 |
| 12 | 0.2057 | 14045120 | 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. :-)
Posted in scripting No Comments »