How to pass filename to new page and embed the pdf in new page?
-
I want the generated pdf to be opened in a new tab (new page).
I saw the following previous answer:The above will allow you to create a download link in normal circumstances but it will not work due to your redirect configuration.
Unfortunately, there is no easy feature in the plugin right now to allow you to post a download link on the thank you page, however, you might be able to set it up manually.
What you can do is use the “save” feature to save the generated PDF on in your “wp-content/uploads” folder somewhere. Then, you can post a link to it on your thank you page. You will need to use CF7 mail-tags (in save path) and WP shortcodes (in download link) to make sure the link is unique per visitor.
…
Another idea is to pass your download link to your thank you page in javascript when you are doing your redirect action.
I do understand how have to save the pdf with the email shortcodes in the plugin menu. But I dont know how to set up the wordpress page so it gets the right file. There is mentioned shortcodes? Can you give me an example of how to build the url?
Another way would be javascript. How would I save the url in javascript and insert it in new page where I embed the pdf?
Is it right that all users will be able to access the pdfs?
- The topic ‘How to pass filename to new page and embed the pdf in new page?’ is closed to new replies.