Table of Contents
[pdf_embed url=”https://example.com/document.pdf” width=”100%” height=”842px” print=”true” title=”My PDF Document” download_btn=”true” fullscreen_btn_text=”View in Fullscreen” ]
Free Attributes
You can customize the PDF viewer using the following attributes:
- url (required): The URL of the PDF file.
- Default:
null - Example:
url="https://example.com/document.pdf"
- Default:
- width (optional): Width of the PDF viewer.
- Default:
"100%" - Example:
width="80%"
- Default:
- height (optional): Height of the PDF viewer.
- Default:
"842px" - Example:
height="600px"
- Default:
- print (optional): Display a print button.
- Accepted values: “true” | “false”
- Default:
"false" - Example:
print="true"
- title (optional): Title displayed above the PDF viewer.
- Default:
null - Example:
title="Document Title"
- Default:
- download_btn (optional): Display a download button.
- Accepted values: “true” | “false”
- Default:
"false" - Example:
download_btn="true"
- fullscreen_btn_text (optional): Text for the fullscreen button.
- Default:
"View Fullscreen" - Example:
fullscreen_btn_text="Open Fullscreen"
- Default:
Premium Attributes
- download_btn_text (optional): Download button text.
- Default:
null - Example:
download_btn_text="Download PDF"
- Default:
- align (optional): PDF alignment type.
- Accepted values: “none” | “wide” | “full”
- Default:
"none" - Example:
align="none"
- alignment (optional): Content alignment.
- Accepted values: “left” | “center” | “right”
- Default:
"left" - Example:
alignment="left"
- only_pdf (optional): Display only PDF without controls.
- Accepted values: “true” | “false”
- Default:
"false" - Example:
only_pdf="true"
- protect (optional): Protect PDF content.
- Accepted values: “true” | “false”
- Default:
false - Example:
protect="true"
- thumb_menu (optional): Show thumbnail menu.
- Accepted values: “true” | “false”
- Default:
false - Example:
thumb_menu="true"
- initial_page (optional): Starting page number.
- Default:
1 - Example:
initial_page="2"
- Default:
- hr_scroll (optional): Enable horizontal scroll.
- Accepted values: “true” | “false”
- Default:
"false" - Example:
hr_scroll="true"
- adobe (optional): Use Adobe PDF viewer.
- Accepted values: “true” | “false”
- Default:
"false" - Example:
adobe="true"
- class (optional): Custom CSS class.
- Default:
"" - Example:
class="my-custom-class"
- Default:
- new_window (optional): Open PDF in new window.
- Accepted values: “true” | “false”
- Default:
false - Example:
new_window="true"
- popup (optional): Open PDF in popup.
- Accepted values: “true” | “false”
- Default:
false - Example:
popup="true"
- popup_btn_text (optional): Popup button text.
- Default:
"Open PDF" - Example:
popup_btn_text="View PDF"
- Default:
- popup_btn_bg (optional): Popup button background color.
- Default:
null - Example:
popup_btn_bg="#000000"
- Default:
- popup_btn_color (optional): Popup button text color.
- Default:
null - Example:
popup_btn_color="#ffffff"
- Default:
- popup_btn_font_size (optional): Popup button font size.
- Default:
null - Example:
popup_btn_font_size="16px"
- Default:
- popup_btn_padding (optional): Popup button padding.
- Default:
"10px 20px" - Example:
popup_btn_padding="12px 24px"
- Default: