Viewing 6 replies - 1 through 6 (of 6 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.

    kaushikd

    (@kaushikd)

    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 6 years ago by kaushikd.
    • This reply was modified 6 years 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.

    kaushikd

    (@kaushikd)

    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

    Plugin Author maximum.software

    (@maximumsoftware)

    I’ve released a new version of the plugin that has the download feature. Please check it out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Download PDF rather than send’ is closed to new replies.