Shortcodes
In the previous part, we learned about the Customization Options of TNC PDF Viewer. Now it’s let's explore Shortcodes.
Embed a PDF viewer:
This shortcode will embed the PDF viewer in a page or post. Go to WordPress default editor and then search for PDF viewer block. Then there will be the following options:
Select PDF viewer to embed: Search for the name of the viewer and select the viewer that you want to show.
Width: Select the width of the viewer.
Height: Select the height of the viewer.
iFrame Title: Put the title of the iframe here
Jump to page: Put a number and the viewer will start from that number of page.
After that, click Insert PDF viewer
Link to a PDF viewer:
Select Viewer to Link to: Search for the name of the viewer and select the viewer that you want to show.
Link Text: Put the text that will show as the link.
Link CSS Class: Put the name of a class so that you can add additional CSS later.
Link Target: Choose between the same tab or a new tab to open the link.
Jump to page: Put a number, and the viewer will start from that number of page.
After that, click Insert PDF viewer.
Next: FAQ