Bug 7941 : Fix version numbers in modules
[koha.git] / C4 / Creators / PDF.pm
index d181bdb..413b064 100644 (file)
@@ -23,7 +23,7 @@ use PDF::Reuse;
 use PDF::Reuse::Barcode;
 
 BEGIN {
-    use version; our $VERSION = qv('1.0.0_1');
+    use version; our $VERSION = qv('3.07.00.049');
 }
 
 sub _InitVars {
@@ -49,6 +49,8 @@ sub new {
 
 sub End {
     my $self = shift;
+    # if the pdf stream is utf8, explicitly set it to utf8; this avoids at lease some wide character errors -chris_n
+    utf8::encode($PDF::Reuse::stream) if utf8::is_utf8($PDF::Reuse::stream);
     prEnd();
 }