Bulk Print to pdf custom module

SuiteCRM latest version.
What i did
/custom/modules/sl_ap_B2C_order/views/view.list.php (with <?php at the begining):

    require_once('include/MVC/View/views/view.list.php');
    require_once('modules/sl_ap_B2C_order/sl_ap_B2C_orderListViewSmarty.php');
    class sl_ap_B2C_orderViewList extends ViewList
    {
    /**
     * @see ViewList::preDisplay()
     */
    public function preDisplay()
    {
        require_once('modules/AOS_PDF_Templates/formLetter.php');
        formLetter::LVPopupHtml('sl_ap_B2C_order');
        parent::preDisplay();

        $this->lv = new ContactsListViewSmarty();
    }
    }

/custom/modules/sl_ap_B2C_order/sl_ap_B2C_orderListViewSmarty.php (with <?php at the begining):

	require_once('include/ListView/ListViewSmarty.php');
	require_once('modules/AOS_PDF_Templates/formLetter.php');


	class sl_ap_B2C_orderListViewSmarty extends ListViewSmarty
	{
	    public function __construct()
	    {
	        parent::__construct();
	        $this->targetList = true;
	    }

	    /**
	     * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
	     */
	    public function sl_ap_B2C_orderListViewSmarty()
	    {
	        $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
	        if (isset($GLOBALS['log'])) {
	            $GLOBALS['log']->deprecated($deprecatedMessage);
	        } else {
	            trigger_error($deprecatedMessage, E_USER_DEPRECATED);
	        }
	        self::__construct();
	    }


	    /**
	     *
	     * @param file $file Template file to use
	     * @param array $data from ListViewData
	     * @param string $htmlVar the corresponding html public in xtpl per row
	     * @return bool|void
	     */
	    public function process($file, $data, $htmlVar)
	    {
	        $configurator = new Configurator();
	        if ($configurator->isConfirmOptInEnabled()) {
	            $this->actionsMenuExtraItems[] = $this->buildSendConfirmOptInEmailToPersonAndCompany();
	        }

	        $ret = parent::process($file, $data, $htmlVar);

	        if (!ACLController::checkAccess($this->seed->module_dir, 'export', true) || !$this->export) {
	            $this->ss->assign('exportLink', $this->buildExportLink());
	        }

	        return $ret;
	    }

	    public function buildExportLink($id = 'export_link')
	    {
	        global $app_strings;
	        global $sugar_config;

	        $script = "";
	        if (ACLController::checkAccess($this->seed->module_dir, 'export', true)) {
	            if ($this->export) {
	                $script = parent::buildExportLink($id);
	            }
	        }

	        $script .= "<a href='javascript:void(0)' id='map_listview_top' " .
	                    " onclick=\"return sListView.send_form(true, 'jjwg_Maps', " .
	                    "'index.php?entryPoint=jjwg_Maps&display_module={$_REQUEST['module']}', " .
	                    "'{$app_strings['LBL_LISTVIEW_NO_SELECTED']}')\">{$app_strings['LBL_MAP']}</a>";

	        return formLetter::LVSmarty().$script;
	    }
	}

Please help