Add download pdf button in popup view

Is it possible to add a custom button that downloads pdf in a popup window ? ive tried doing it but i only get a create button from this example: Link here

'searchInputs' => array(
        1 => 'payment_date',
        2 => 'payment_stage',
        3 => 'or_no',
    'create' =>
            'formBase' => 'PrintPayment.php',
            'formBaseClass' => 'PrintPayment',
            'getFormBodyParams' => array('', '', 'PrintPaymentSave'),
            'createButton' => $mod_strings['LNK_NEW_PAYMENT']


is there any other way to add a download functionality in popupview ?

if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

class PrintPayment extends FormBase {

    var $moduleName = 'PrintPayment';
    var $objectName = 'PrintPayment';

    function handleSave($prefix, $redirect=true, $useRequired=false){
        $focus = new PrintPayment();
        $focus = populateFromPost($prefix, $focus);


is there any experts who knows this ? thanks in advance.