How to display a page dependent on a url parameter supplied by a form/button page?

If you would show pdf in content dynamically, which page would you like to show page, post or wherever. You have to echo your shortcode in template file. For example, you have to print like below

<?php echo do_shortcode("[shortcode pdf=". $_REQUEST["pdf_id'] ."); ?>
http://yourwebsite.com/post-title/?pdf_id=20 //your url would be like that