force utf-8 encoding on all data comming from file
[webpac2] / t / 2-input-pdf.t
index 6a2151a..84b5697 100755 (executable)
@@ -3,11 +3,20 @@
 use strict;
 use blib;
 
-use Test::More tests => 11;
+use Test::More;
 
 BEGIN {
-use_ok( 'WebPAC::Test' );
-use_ok( 'WebPAC::Input' );
+
+       eval "use CAM::PDF";
+
+       if ( $@ ) {
+               plan skip_all => "CAM::PDF required for WebPAC::Input::PDF";
+       } else {
+               plan tests => 11;
+       }
+
+       use_ok( 'WebPAC::Test' );
+       use_ok( 'WebPAC::Input' );
 }
 
 my $module = 'WebPAC::Input::PDF';