• Thanks for this plugin , But my client wants to convert contact form 7 output to PDF and email to the same person. I have used the code below but after submitting the form ajax loader just loading.

    add_action( 'wpcf7_before_send_mail', 'save_application_form');
    function save_application_form($cf7) {
    
    /* GET EXTERNAL CLASSES */
    require(TEMPLATEPATH.'/includes/fpdf.php');
    
    $pdf = new FPDF();
    $pdf->AddPage();
    $pdf->SetFont('Arial','B',16);
    $pdf->Write(5,"Hello, World!\n\n\n");
    $pdf->Output(TEMPLATEPATH.'/file/pdf.pdf', 'F');
    
    $cf7->uploaded_files = array (TEMPLATEPATH.'/file/pdf.pdf' );
    
    }

    Please help me out asap

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘output of contact form 7 to pdf form’ is closed to new replies.