The TPC Page Export is a button widget that allows you to download and save a web page (or any section on it) in a printer friendly format of your choosing. We support three file formats: PDF, SVG, and PNG.
If you drag and drop the Page Export widget to your page and click on edit, a modal will pop up. This is the designer view and it displays the Basic tab setting. Here you configure basic features to your Export widget, such as naming the button (more on this below).
If you choose a PDF export type, there are additional configurable options you can set on the actual PDF that your users will download upon click such applying a title to the document (more on this below).
The Button Text property allows you to change the text that appears inside of a button associated with the widget.
Sets the name of the file when user downloads it
If you have a specific area on your page that you want the user to download, then you use a CSS selector to target that (e.g., #printTicket or .printTicket), otherwise the entire html doc will get downloaded by default.
A dropdown of the formats you can choose to export the desired file.
Sets the title of the PDF file based on the file in question.
Sets who is responsible for the existence of the file e.g., author.
Specifies the keywords of the exported PDF file.
Specifies the margins of the page. Supported units are “mm”, “cm”, “in”, and “pt”. Defaults to 2cm.
Dropdown of common page sizes including in North America and A – C sizes. Defaults to auto which captures the entire content.
A dropdown choice between Portrait or Landscape display of file.
Specifies where you want a page to break or where you want it to start on a new page. You can target a specific page break by using a CSS selector.
Selecting this makes the links on any document unclickable. Optionally, you can target a specific link(s) using a CSS selector.
Advanced properties provide additional functionality. They can be accessed by clicking on the "Advanced" Button in the bottom right corner of the widget designer.
Removes added functionality from the button.
None
Shows the widget on the page.
Disables the widget on the page.
Returns the element of the widget.
jQuery Object
Returns the container element of the widget.
Toggles the visibility of the widget.
Hides the widget from the page.
Returns the model object of the widget, which contains several useful properties related to the widget.
Object
Enable the widget on the page.
Adds functionality to button on click.
Function