Esempio n. 1
0
 function prepare()
 {
     parent::prepare();
     // Generate custom encoding vector mappings
     $manager_encoding = ManagerEncoding::get();
     for ($i = 1, $size = $manager_encoding->get_custom_vector_index(); $i <= $size; $i++) {
         $encoding_name = $manager_encoding->get_custom_encoding_name($i);
         $filename = $this->generate_cpg($encoding_name, true);
         pdf_set_parameter($this->pdf, 'Encoding', sprintf('%s=%s', $encoding_name, $filename));
     }
 }
 function prepare()
 {
     parent::prepare();
     $filename = $this->generate_cpg('custom', true);
     pdf_set_parameter($this->pdf, 'Encoding', sprintf('custom=%s', $filename));
 }