WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7 Modules
Integrating PDF Hook (1 post)

  1. abehjat
    Member
    Posted 9 months ago #

    This is a wonderful plugin. Thank you very much for introducing it.

    I would like to add a PDF hook - based on the hook function, it would be a add_filter - where the data is captured, transformed into PDF from HTML, and then sent to the CRM as an attachment.

    I've used MPDF before (http://www.mpdf1.com/mpdf/index.php). Any recommendations you guys have based on your experience on what modules you would recommend?

    For MPDF, all I need to do is a function as such:

    <?php
    
    include('../mpdf.php');
    
    $mpdf=new mPDF();
    
    //capture all CF7 Fields into var $html
    
    $mpdf->WriteHTML($html,2);
    
    $content = $mpdf->Output('', 'S'); //basically, save the output as string
    
    $content = chunk_split(base64_encode($content)); //to have it emailed

    How can I return the $content to one of the fields or as "Is Value?"

    Thank you,

    http://wordpress.org/plugins/contact-form-7-modules/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.