<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

//Helper: application/helpers/pdf_helper.php
function tcpdf(){
    require_once('tcpdf/tcpdf.php');
}

function pdf417($pdf417data){
    require_once('tcpdf/tcpdf_barcodes_2d.php');
    $barcodeobj = new TCPDF2DBarcode($pdf417data, 'PDF417');
    $barcode = $barcodeobj->getBarcodeSVGcode(1, 1);
    return $barcode;
}

?>