<?php 
if(function_exists('wp2pdf')):
    $args = array(
        id =>$post->ID, 
        template => 'my_pdf_template', 
        filename => 'PrintView-'.$post->ID),
        restricted => false,
        cache => true 
    );
    $pdf_url = wp2pdf($args);
endif;
?>
<a href="<?php echo $pdf_url; ?>" class="button">
    Download PDF&raquo;
</a>