Support » Plugin: PDF Forms Filler for Contact Form 7 » Download PDF rather than send

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author maximum.software

    (@maximumsoftware)

    You can use jquery and something like this,

    <script>
    $(document).ready(function(){
      $("button.download").click(function() {
        var data = {
          field1: $("input[name=field1]").val(),
          field2: $("input[name=field2]").val()
        };
        $.post("pdf-fill.php", {data: data});
      });
    });
    </script>
    
    <!-- generated by CF7 -->
    <input type="text" name="field1">
    
    <!-- generated by CF7 -->
    <input type="text" name="field2">
    
    <button class="download">submit</button>

    Assuming the ‘input’ HTML tags would be generated by CF7 with the correct names. You will need to add the button tag. Actually, you may be able to add the click event handler to the CF7 button and have it do both, download PDF and send an email.

    Disclaimer: I haven’t tested this code much.

    Hi,
    Can you please help me.my problem is i am all detail contact form fill up and i am click on submit button.but how can i am generated download pdf link.

    Second question is how to i can am remove pdf background this text “PDF.Ninja API with logo” in pdf.
    Thanks.

    • This reply was modified 3 months, 4 weeks ago by  kaushikd.
    • This reply was modified 3 months, 4 weeks ago by  kaushikd.
    Plugin Author maximum.software

    (@maximumsoftware)

    I am planning to implement the download functionality shortly. It should be released within a few months. If you would like to implement it yourself, you can use the information in the above posts to figure out how to do that.

    Please see https://pdf.ninja/ for questions regarding the API.

    Thank you for response.

    Plugin Author maximum.software

    (@maximumsoftware)

    I have the first working version of the download feature committed on GitHub. I would appreciate someone testing and giving me feedback. You can download the work in progress version of the plugin at the following URL,

    https://github.com/maximum-software/wpcf7-pdf-forms/archive/9377af242e114cdf25d686de5adb36545c153efe.zip

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.